| Modifier and Type | Field and Description |
|---|---|
| public static final int | CL_A
cl_channel_order |
| public static final int | CL_ADDRESS_CLAMP
cl_addressing_mode |
| public static final int | CL_ADDRESS_CLAMP_TO_EDGE
cl_addressing_mode |
| public static final int | CL_ADDRESS_NONE
cl_addressing_mode |
| public static final int | CL_ADDRESS_REPEAT
cl_addressing_mode |
| public static final int | CL_ARGB
cl_channel_order |
| public static final int | CL_BGRA
cl_channel_order |
| public static final int | CL_BUILD_ERROR
cl_build_status |
| public static final int | CL_BUILD_IN_PROGRESS
cl_build_status |
| public static final int | CL_BUILD_NONE
cl_build_status |
| public static final int | CL_BUILD_PROGRAM_FAILURE
Error Codes |
| public static final int | CL_BUILD_SUCCESS
cl_build_status |
| public static final int | CL_COMMAND_ACQUIRE_GL_OBJECTS
cl_command_type |
| public static final int | CL_COMMAND_COPY_BUFFER
cl_command_type |
| public static final int | CL_COMMAND_COPY_BUFFER_TO_IMAGE
cl_command_type |
| public static final int | CL_COMMAND_COPY_IMAGE
cl_command_type |
| public static final int | CL_COMMAND_COPY_IMAGE_TO_BUFFER
cl_command_type |
| public static final int | CL_COMMAND_MAP_BUFFER
cl_command_type |
| public static final int | CL_COMMAND_MAP_IMAGE
cl_command_type |
| public static final int | CL_COMMAND_MARKER
cl_command_type |
| public static final int | CL_COMMAND_NATIVE_KERNEL
cl_command_type |
| public static final int | CL_COMMAND_NDRANGE_KERNEL
cl_command_type |
| public static final int | CL_COMMAND_READ_BUFFER
cl_command_type |
| public static final int | CL_COMMAND_READ_IMAGE
cl_command_type |
| public static final int | CL_COMMAND_RELEASE_GL_OBJECTS
cl_command_type |
| public static final int | CL_COMMAND_TASK
cl_command_type |
| public static final int | CL_COMMAND_UNMAP_MEM_OBJECT
cl_command_type |
| public static final int | CL_COMMAND_WRITE_BUFFER
cl_command_type |
| public static final int | CL_COMMAND_WRITE_IMAGE
cl_command_type |
| public static final int | CL_COMPILER_NOT_AVAILABLE
Error Codes |
| public static final int | CL_COMPLETE
command execution status |
| public static final int | CL_CONTEXT_DEVICES
cl_context_info |
| public static final int | CL_CONTEXT_PLATFORM
cl_context_info + cl_context_properties |
| public static final int | CL_CONTEXT_PROPERTIES
cl_context_info |
| public static final int | CL_CONTEXT_REFERENCE_COUNT
cl_context_info |
| public static final int | CL_DEVICE_ADDRESS_BITS
cl_device_info |
| public static final int | CL_DEVICE_AVAILABLE
cl_device_info |
| public static final int | CL_DEVICE_COMPILER_AVAILABLE
cl_device_info |
| public static final int | CL_DEVICE_ENDIAN_LITTLE
cl_device_info |
| public static final int | CL_DEVICE_ERROR_CORRECTION_SUPPORT
cl_device_info |
| public static final int | CL_DEVICE_EXECUTION_CAPABILITIES
cl_device_info |
| public static final int | CL_DEVICE_EXTENSIONS
cl_device_info |
| public static final int | CL_DEVICE_GLOBAL_MEM_CACHE_SIZE
cl_device_info |
| public static final int | CL_DEVICE_GLOBAL_MEM_CACHE_TYPE
cl_device_info |
| public static final int | CL_DEVICE_GLOBAL_MEM_CACHELINE_SIZE
cl_device_info |
| public static final int | CL_DEVICE_GLOBAL_MEM_SIZE
cl_device_info |
| public static final int | CL_DEVICE_IMAGE2D_MAX_HEIGHT
cl_device_info |
| public static final int | CL_DEVICE_IMAGE2D_MAX_WIDTH
cl_device_info |
| public static final int | CL_DEVICE_IMAGE3D_MAX_DEPTH
cl_device_info |
| public static final int | CL_DEVICE_IMAGE3D_MAX_HEIGHT
cl_device_info |
| public static final int | CL_DEVICE_IMAGE3D_MAX_WIDTH
cl_device_info |
| public static final int | CL_DEVICE_IMAGE_SUPPORT
cl_device_info |
| public static final int | CL_DEVICE_LOCAL_MEM_SIZE
cl_device_info |
| public static final int | CL_DEVICE_LOCAL_MEM_TYPE
cl_device_info |
| public static final int | CL_DEVICE_MAX_CLOCK_FREQUENCY
cl_device_info |
| public static final int | CL_DEVICE_MAX_COMPUTE_UNITS
cl_device_info |
| public static final int | CL_DEVICE_MAX_CONSTANT_ARGS
cl_device_info |
| public static final int | CL_DEVICE_MAX_CONSTANT_BUFFER_SIZE
cl_device_info |
| public static final int | CL_DEVICE_MAX_MEM_ALLOC_SIZE
cl_device_info |
| public static final int | CL_DEVICE_MAX_PARAMETER_SIZE
cl_device_info |
| public static final int | CL_DEVICE_MAX_READ_IMAGE_ARGS
cl_device_info |
| public static final int | CL_DEVICE_MAX_SAMPLERS
cl_device_info |
| public static final int | CL_DEVICE_MAX_WORK_GROUP_SIZE
cl_device_info |
| public static final int | CL_DEVICE_MAX_WORK_ITEM_DIMENSIONS
cl_device_info |
| public static final int | CL_DEVICE_MAX_WORK_ITEM_SIZES
cl_device_info |
| public static final int | CL_DEVICE_MAX_WRITE_IMAGE_ARGS
cl_device_info |
| public static final int | CL_DEVICE_MEM_BASE_ADDR_ALIGN
cl_device_info |
| public static final int | CL_DEVICE_MIN_DATA_TYPE_ALIGN_SIZE
cl_device_info |
| public static final int | CL_DEVICE_NAME
cl_device_info |
| public static final int | CL_DEVICE_NOT_AVAILABLE
Error Codes |
| public static final int | CL_DEVICE_NOT_FOUND
Error Codes |
| public static final int | CL_DEVICE_PLATFORM
cl_device_info |
| public static final int | CL_DEVICE_PREFERRED_VECTOR_WIDTH_CHAR
cl_device_info |
| public static final int | CL_DEVICE_PREFERRED_VECTOR_WIDTH_DOUBLE
cl_device_info |
| public static final int | CL_DEVICE_PREFERRED_VECTOR_WIDTH_FLOAT
cl_device_info |
| public static final int | CL_DEVICE_PREFERRED_VECTOR_WIDTH_INT
cl_device_info |
| public static final int | CL_DEVICE_PREFERRED_VECTOR_WIDTH_LONG
cl_device_info |
| public static final int | CL_DEVICE_PREFERRED_VECTOR_WIDTH_SHORT
cl_device_info |
| public static final int | CL_DEVICE_PROFILE
cl_device_info |
| public static final int | CL_DEVICE_PROFILING_TIMER_RESOLUTION
cl_device_info |
| public static final int | CL_DEVICE_QUEUE_PROPERTIES
cl_device_info |
| public static final int | CL_DEVICE_SINGLE_FP_CONFIG
cl_device_info |
| public static final int | CL_DEVICE_TYPE
cl_device_info |
| public static final int | CL_DEVICE_TYPE_ACCELERATOR
cl_device_type - bitfield |
| public static final int | CL_DEVICE_TYPE_ALL
cl_device_type - bitfield |
| public static final int | CL_DEVICE_TYPE_CPU
cl_device_type - bitfield |
| public static final int | CL_DEVICE_TYPE_DEFAULT
cl_device_type - bitfield |
| public static final int | CL_DEVICE_TYPE_GPU
cl_device_type - bitfield |
| public static final int | CL_DEVICE_VENDOR
cl_device_info |
| public static final int | CL_DEVICE_VENDOR_ID
cl_device_info |
| public static final int | CL_DEVICE_VERSION
cl_device_info |
| public static final int | CL_DRIVER_VERSION
cl_device_info |
| public static final int | CL_EVENT_COMMAND_EXECUTION_STATUS
cl_event_info |
| public static final int | CL_EVENT_COMMAND_QUEUE
cl_event_info |
| public static final int | CL_EVENT_COMMAND_TYPE
cl_event_info |
| public static final int | CL_EVENT_REFERENCE_COUNT
cl_event_info |
| public static final int | CL_EXEC_KERNEL
cl_device_exec_capabilities - bitfield |
| public static final int | CL_EXEC_NATIVE_KERNEL
cl_device_exec_capabilities - bitfield |
| public static final int | CL_FALSE
cl_bool |
| public static final int | CL_FILTER_LINEAR
cl_filter_mode |
| public static final int | CL_FILTER_NEAREST
cl_filter_mode |
| public static final int | CL_FLOAT
cl_channel_type |
| public static final int | CL_FP_DENORM
cl_device_fp_config - bitfield |
| public static final int | CL_FP_FMA
cl_device_fp_config - bitfield |
| public static final int | CL_FP_INF_NAN
cl_device_fp_config - bitfield |
| public static final int | CL_FP_ROUND_TO_INF
cl_device_fp_config - bitfield |
| public static final int | CL_FP_ROUND_TO_NEAREST
cl_device_fp_config - bitfield |
| public static final int | CL_FP_ROUND_TO_ZERO
cl_device_fp_config - bitfield |
| public static final int | CL_GLOBAL
cl_device_local_mem_type |
| public static final int | CL_HALF_FLOAT
cl_channel_type |
| public static final int | CL_IMAGE_DEPTH
cl_image_info |
| public static final int | CL_IMAGE_ELEMENT_SIZE
cl_image_info |
| public static final int | CL_IMAGE_FORMAT
cl_image_info |
| public static final int | CL_IMAGE_FORMAT_MISMATCH
Error Codes |
| public static final int | CL_IMAGE_FORMAT_NOT_SUPPORTED
Error Codes |
| public static final int | CL_IMAGE_HEIGHT
cl_image_info |
| public static final int | CL_IMAGE_ROW_PITCH
cl_image_info |
| public static final int | CL_IMAGE_SLICE_PITCH
cl_image_info |
| public static final int | CL_IMAGE_WIDTH
cl_image_info |
| public static final int | CL_INTENSITY
cl_channel_order |
| public static final int | CL_INVALID_ARG_INDEX
Error Codes |
| public static final int | CL_INVALID_ARG_SIZE
Error Codes |
| public static final int | CL_INVALID_ARG_VALUE
Error Codes |
| public static final int | CL_INVALID_BINARY
Error Codes |
| public static final int | CL_INVALID_BUFFER_SIZE
Error Codes |
| public static final int | CL_INVALID_BUILD_OPTIONS
Error Codes |
| public static final int | CL_INVALID_COMMAND_QUEUE
Error Codes |
| public static final int | CL_INVALID_CONTEXT
Error Codes |
| public static final int | CL_INVALID_DEVICE
Error Codes |
| public static final int | CL_INVALID_DEVICE_TYPE
Error Codes |
| public static final int | CL_INVALID_EVENT
Error Codes |
| public static final int | CL_INVALID_EVENT_WAIT_LIST
Error Codes |
| public static final int | CL_INVALID_GLOBAL_OFFSET
Error Codes |
| public static final int | CL_INVALID_GLOBAL_WORK_SIZE
Error Codes |
| public static final int | CL_INVALID_HOST_PTR
Error Codes |
| public static final int | CL_INVALID_IMAGE_FORMAT_DESCRIPTOR
Error Codes |
| public static final int | CL_INVALID_IMAGE_SIZE
Error Codes |
| public static final int | CL_INVALID_KERNEL
Error Codes |
| public static final int | CL_INVALID_KERNEL_ARGS
Error Codes |
| public static final int | CL_INVALID_KERNEL_DEFINITION
Error Codes |
| public static final int | CL_INVALID_KERNEL_NAME
Error Codes |
| public static final int | CL_INVALID_MEM_OBJECT
Error Codes |
| public static final int | CL_INVALID_OPERATION
Error Codes |
| public static final int | CL_INVALID_PLATFORM
Error Codes |
| public static final int | CL_INVALID_PROGRAM
Error Codes |
| public static final int | CL_INVALID_PROGRAM_EXECUTABLE
Error Codes |
| public static final int | CL_INVALID_QUEUE_PROPERTIES
Error Codes |
| public static final int | CL_INVALID_SAMPLER
Error Codes |
| public static final int | CL_INVALID_VALUE
Error Codes |
| public static final int | CL_INVALID_WORK_DIMENSION
Error Codes |
| public static final int | CL_INVALID_WORK_GROUP_SIZE
Error Codes |
| public static final int | CL_INVALID_WORK_ITEM_SIZE
Error Codes |
| public static final int | CL_KERNEL_COMPILE_WORK_GROUP_SIZE
cl_kernel_work_group_info |
| public static final int | CL_KERNEL_CONTEXT
cl_kernel_info |
| public static final int | CL_KERNEL_FUNCTION_NAME
cl_kernel_info |
| public static final int | CL_KERNEL_LOCAL_MEM_SIZE
cl_kernel_work_group_info |
| public static final int | CL_KERNEL_NUM_ARGS
cl_kernel_info |
| public static final int | CL_KERNEL_PROGRAM
cl_kernel_info |
| public static final int | CL_KERNEL_REFERENCE_COUNT
cl_kernel_info |
| public static final int | CL_KERNEL_WORK_GROUP_SIZE
cl_kernel_work_group_info |
| public static final int | CL_LOCAL
cl_device_local_mem_type |
| public static final int | CL_LUMINANCE
cl_channel_order |
| public static final int | CL_MAP_FAILURE
Error Codes |
| public static final int | CL_MAP_READ
cl_map_flags - bitfield |
| public static final int | CL_MAP_WRITE
cl_map_flags - bitfield |
| public static final int | CL_MEM_ALLOC_HOST_PTR
cl_mem_flags - bitfield |
| public static final int | CL_MEM_CONTEXT
cl_mem_info |
| public static final int | CL_MEM_COPY_HOST_PTR
cl_mem_flags - bitfield |
| public static final int | CL_MEM_COPY_OVERLAP
Error Codes |
| public static final int | CL_MEM_FLAGS
cl_mem_info |
| public static final int | CL_MEM_HOST_PTR
cl_mem_info |
| public static final int | CL_MEM_MAP_COUNT
cl_mem_info |
| public static final int | CL_MEM_OBJECT_ALLOCATION_FAILURE
Error Codes |
| public static final int | CL_MEM_OBJECT_BUFFER
cl_mem_object_type |
| public static final int | CL_MEM_OBJECT_IMAGE2D
cl_mem_object_type |
| public static final int | CL_MEM_OBJECT_IMAGE3D
cl_mem_object_type |
| public static final int | CL_MEM_READ_ONLY
cl_mem_flags - bitfield |
| public static final int | CL_MEM_READ_WRITE
cl_mem_flags - bitfield |
| public static final int | CL_MEM_REFERENCE_COUNT
cl_mem_info |
| public static final int | CL_MEM_SIZE
cl_mem_info |
| public static final int | CL_MEM_TYPE
cl_mem_info |
| public static final int | CL_MEM_USE_HOST_PTR
cl_mem_flags - bitfield |
| public static final int | CL_MEM_WRITE_ONLY
cl_mem_flags - bitfield |
| public static final int | CL_NONE
cl_device_mem_cache_type |
| public static final int | CL_OUT_OF_HOST_MEMORY
Error Codes |
| public static final int | CL_OUT_OF_RESOURCES
Error Codes |
| public static final int | CL_PLATFORM_EXTENSIONS
cl_platform_info |
| public static final int | CL_PLATFORM_NAME
cl_platform_info |
| public static final int | CL_PLATFORM_PROFILE
cl_platform_info |
| public static final int | CL_PLATFORM_VENDOR
cl_platform_info |
| public static final int | CL_PLATFORM_VERSION
cl_platform_info |
| public static final int | CL_PROFILING_COMMAND_END
cl_profiling_info |
| public static final int | CL_PROFILING_COMMAND_QUEUED
cl_profiling_info |
| public static final int | CL_PROFILING_COMMAND_START
cl_profiling_info |
| public static final int | CL_PROFILING_COMMAND_SUBMIT
cl_profiling_info |
| public static final int | CL_PROFILING_INFO_NOT_AVAILABLE
Error Codes |
| public static final int | CL_PROGRAM_BINARIES
cl_program_info |
| public static final int | CL_PROGRAM_BINARY_SIZES
cl_program_info |
| public static final int | CL_PROGRAM_BUILD_LOG
cl_program_build_info |
| public static final int | CL_PROGRAM_BUILD_OPTIONS
cl_program_build_info |
| public static final int | CL_PROGRAM_BUILD_STATUS
cl_program_build_info |
| public static final int | CL_PROGRAM_CONTEXT
cl_program_info |
| public static final int | CL_PROGRAM_DEVICES
cl_program_info |
| public static final int | CL_PROGRAM_NUM_DEVICES
cl_program_info |
| public static final int | CL_PROGRAM_REFERENCE_COUNT
cl_program_info |
| public static final int | CL_PROGRAM_SOURCE
cl_program_info |
| public static final int | CL_QUEUE_CONTEXT
cl_command_queue_info |
| public static final int | CL_QUEUE_DEVICE
cl_command_queue_info |
| public static final int | CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE
cl_command_queue_properties - bitfield |
| public static final int | CL_QUEUE_PROFILING_ENABLE
cl_command_queue_properties - bitfield |
| public static final int | CL_QUEUE_PROPERTIES
cl_command_queue_info |
| public static final int | CL_QUEUE_REFERENCE_COUNT
cl_command_queue_info |
| public static final int | CL_QUEUED
command execution status |
| public static final int | CL_R
cl_channel_order |
| public static final int | CL_RA
cl_channel_order |
| public static final int | CL_READ_ONLY_CACHE
cl_device_mem_cache_type |
| public static final int | CL_READ_WRITE_CACHE
cl_device_mem_cache_type |
| public static final int | CL_RG
cl_channel_order |
| public static final int | CL_RGB
cl_channel_order |
| public static final int | CL_RGBA
cl_channel_order |
| public static final int | CL_RUNNING
command execution status |
| public static final int | CL_SAMPLER_ADDRESSING_MODE
cl_sampler_info |
| public static final int | CL_SAMPLER_CONTEXT
cl_sampler_info |
| public static final int | CL_SAMPLER_FILTER_MODE
cl_sampler_info |
| public static final int | CL_SAMPLER_NORMALIZED_COORDS
cl_sampler_info |
| public static final int | CL_SAMPLER_REFERENCE_COUNT
cl_sampler_info |
| public static final int | CL_SIGNED_INT16
cl_channel_type |
| public static final int | CL_SIGNED_INT32
cl_channel_type |
| public static final int | CL_SIGNED_INT8
cl_channel_type |
| public static final int | CL_SNORM_INT16
cl_channel_type |
| public static final int | CL_SNORM_INT8
cl_channel_type |
| public static final int | CL_SUBMITTED
command execution status |
| public static final int | CL_SUCCESS
Error Codes |
| public static final int | CL_TRUE
cl_bool |
| public static final int | CL_UNORM_INT16
cl_channel_type |
| public static final int | CL_UNORM_INT8
cl_channel_type |
| public static final int | CL_UNORM_INT_101010
cl_channel_type |
| public static final int | CL_UNORM_SHORT_555
cl_channel_type |
| public static final int | CL_UNORM_SHORT_565
cl_channel_type |
| public static final int | CL_UNSIGNED_INT16
cl_channel_type |
| public static final int | CL_UNSIGNED_INT32
cl_channel_type |
| public static final int | CL_UNSIGNED_INT8
cl_channel_type |
| public static final int | CL_VERSION_1_0
OpenCL Version |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the program object program, PointerBuffer a pointer to a list of devices associated with device_list, ByteBuffer program. If device_list is a NULL value, the program executable is built for all
devices associated with program for which a source or binary has been loaded. If device_list is a non-NULL value, the program
executable is built for devices specified in this list for which a source or binary has been loaded.a pointer to a null-terminated string of characters that describes the build options to be used for building the program executable options, CLProgramCallbackI a function pointer to a notification routine. The notification routine is a callback function that an application can register and which will be
called when the program executable has been built (successfully or unsuccessfully). If pfn_notify, long pfn_notify is not NULL, clBuildProgram does
not need to wait for the build to complete and can return immediately once the build operation can begin. The build operation can begin if the
context, program whose sources are being compiled and linked, list of devices and build options specified are all valid and appropriate host and
device resources needed to perform the build are available. If pfn_notify is NULL, clBuildProgram does not return until the build
has completed. This callback function may be called asynchronously by the OpenCL implementation. It is the application's responsibility to ensure
that the callback function is thread-safe.will be passed as an argument when user_data)pfn_notify is called. user_data can be NULL.Builds (compiles & links) a program executable from the program source or binary for all the devices or a specific device(s) in the OpenCL context
associated with | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the program object program, PointerBuffer a pointer to a list of devices associated with device_list, CharSequence program. If device_list is a NULL value, the program executable is built for all
devices associated with program for which a source or binary has been loaded. If device_list is a non-NULL value, the program
executable is built for devices specified in this list for which a source or binary has been loaded.a pointer to a null-terminated string of characters that describes the build options to be used for building the program executable options, CLProgramCallbackI a function pointer to a notification routine. The notification routine is a callback function that an application can register and which will be
called when the program executable has been built (successfully or unsuccessfully). If pfn_notify, long pfn_notify is not NULL, clBuildProgram does
not need to wait for the build to complete and can return immediately once the build operation can begin. The build operation can begin if the
context, program whose sources are being compiled and linked, list of devices and build options specified are all valid and appropriate host and
device resources needed to perform the build are available. If pfn_notify is NULL, clBuildProgram does not return until the build
has completed. This callback function may be called asynchronously by the OpenCL implementation. It is the application's responsibility to ensure
that the callback function is thread-safe.will be passed as an argument when user_data)pfn_notify is called. user_data can be NULL.Builds (compiles & links) a program executable from the program source or binary for all the devices or a specific device(s) in the OpenCL context
associated with | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the program object program, long device, CharSequence a pointer to a null-terminated string of characters that describes the build options to be used for building the program executable options, CLProgramCallbackI a function pointer to a notification routine. The notification routine is a callback function that an application can register and which will be
called when the program executable has been built (successfully or unsuccessfully). If pfn_notify, long pfn_notify is not NULL, clBuildProgram does
not need to wait for the build to complete and can return immediately once the build operation can begin. The build operation can begin if the
context, program whose sources are being compiled and linked, list of devices and build options specified are all valid and appropriate host and
device resources needed to perform the build are available. If pfn_notify is NULL, clBuildProgram does not return until the build
has completed. This callback function may be called asynchronously by the OpenCL implementation. It is the application's responsibility to ensure
that the callback function is thread-safe.will be passed as an argument when user_data)pfn_notify is called. user_data can be NULL.Builds (compiles & links) a program executable from the program source or binary for all the devices or a specific device(s) in the OpenCL context
associated with | |||||||||
| public static long | Returns: a valid non-zero buffer object anderrcode_ret is set to SUCCESS if the buffer object is created successfully. Otherwise, it returns a NULL value
with one of the following error values returned in errcode_ret:
a valid OpenCL context used to create the buffer object context, long a bit-field that is used to specify allocation and usage information such as the memory area that should be used to allocate the buffer object and
how it will be used. If value specified for flags is 0, the default is used which is flags, long MEM_READ_WRITE. One of:
the size in bytes of the buffer memory object to be allocated size, IntBuffer will return an appropriate error code. If errcode_ret)errcode_ret is NULL, no error code is returned.Creates a buffer object. | |||||||||
| public static long | Returns: a valid non-zero buffer object anderrcode_ret is set to SUCCESS if the buffer object is created successfully. Otherwise, it returns a NULL value
with one of the following error values returned in errcode_ret:
a valid OpenCL context used to create the buffer object context, long a bit-field that is used to specify allocation and usage information such as the memory area that should be used to allocate the buffer object and
how it will be used. If value specified for flags is 0, the default is used which is flags, ByteBuffer MEM_READ_WRITE. One of:
a pointer to the buffer data that may already be allocated by the application. The size of the buffer that host_ptr, IntBuffer host_ptr points to must be
≥ size bytes.will return an appropriate error code. If errcode_ret)errcode_ret is NULL, no error code is returned.Creates a buffer object. | |||||||||
| public static long | Returns: a valid non-zero buffer object anderrcode_ret is set to SUCCESS if the buffer object is created successfully. Otherwise, it returns a NULL value
with one of the following error values returned in errcode_ret:
a valid OpenCL context used to create the buffer object context, long a bit-field that is used to specify allocation and usage information such as the memory area that should be used to allocate the buffer object and
how it will be used. If value specified for flags is 0, the default is used which is flags, ShortBuffer MEM_READ_WRITE. One of:
a pointer to the buffer data that may already be allocated by the application. The size of the buffer that host_ptr, IntBuffer host_ptr points to must be
≥ size bytes.will return an appropriate error code. If errcode_ret)errcode_ret is NULL, no error code is returned.Creates a buffer object. | |||||||||
| public static long | Returns: a valid non-zero buffer object anderrcode_ret is set to SUCCESS if the buffer object is created successfully. Otherwise, it returns a NULL value
with one of the following error values returned in errcode_ret:
a valid OpenCL context used to create the buffer object context, long a bit-field that is used to specify allocation and usage information such as the memory area that should be used to allocate the buffer object and
how it will be used. If value specified for flags is 0, the default is used which is flags, IntBuffer MEM_READ_WRITE. One of:
a pointer to the buffer data that may already be allocated by the application. The size of the buffer that host_ptr, IntBuffer host_ptr points to must be
≥ size bytes.will return an appropriate error code. If errcode_ret)errcode_ret is NULL, no error code is returned.Creates a buffer object. | |||||||||
| public static long | Returns: a valid non-zero buffer object anderrcode_ret is set to SUCCESS if the buffer object is created successfully. Otherwise, it returns a NULL value
with one of the following error values returned in errcode_ret:
a valid OpenCL context used to create the buffer object context, long a bit-field that is used to specify allocation and usage information such as the memory area that should be used to allocate the buffer object and
how it will be used. If value specified for flags is 0, the default is used which is flags, FloatBuffer MEM_READ_WRITE. One of:
a pointer to the buffer data that may already be allocated by the application. The size of the buffer that host_ptr, IntBuffer host_ptr points to must be
≥ size bytes.will return an appropriate error code. If errcode_ret)errcode_ret is NULL, no error code is returned.Creates a buffer object. | |||||||||
| public static long | Returns: a valid non-zero buffer object anderrcode_ret is set to SUCCESS if the buffer object is created successfully. Otherwise, it returns a NULL value
with one of the following error values returned in errcode_ret:
a valid OpenCL context used to create the buffer object context, long a bit-field that is used to specify allocation and usage information such as the memory area that should be used to allocate the buffer object and
how it will be used. If value specified for flags is 0, the default is used which is flags, DoubleBuffer MEM_READ_WRITE. One of:
a pointer to the buffer data that may already be allocated by the application. The size of the buffer that host_ptr, IntBuffer host_ptr points to must be
≥ size bytes.will return an appropriate error code. If errcode_ret)errcode_ret is NULL, no error code is returned.Creates a buffer object. | |||||||||
| public static long | clCreateBuffer(long context, long flags, ByteBuffer host_ptr, int[] errcode_ret)
Array version of: | |||||||||
| public static long | clCreateBuffer(long context, long flags, short[] host_ptr, int[] errcode_ret)
Array version of: | |||||||||
| public static long | clCreateBuffer(long context, long flags, int[] host_ptr, int[] errcode_ret)
Array version of: | |||||||||
| public static long | clCreateBuffer(long context, long flags, float[] host_ptr, int[] errcode_ret)
Array version of: | |||||||||
| public static long | clCreateBuffer(long context, long flags, double[] host_ptr, int[] errcode_ret)
Array version of: | |||||||||
| public static long | Returns: a valid non-zero command-queue anderrcode_ret is set to SUCCESS if the command-queue is created successfully. Otherwise, it returns a NULL value
with one of the following error values returned in errcode_ret:
a valid OpenCL context context, long a device associated with context. It can either be in the list of devices specified when context is created using device, long CreateContext or have the same
device type as device type specified when context is created using CreateContextFromType.a bit-field of properties for the command-queue. One of: properties, IntBuffer
will return an appropriate error code. If errcode_ret)errcode_ret is NULL, no error code is returned.Creates a command-queue on a specific device. | |||||||||
| public static long | clCreateCommandQueue(long context, long device, long properties, int[] errcode_ret)
Array version of: | |||||||||
| public static long | Returns: a valid non-zero context anderrcode_ret is set to SUCCESS if the context is created successfully. Otherwise, it returns a NULL value with the
following error values returned in errcode_ret:
a list of context property names and their corresponding values. Each property name is immediately followed by the corresponding desired value. The
list is terminated with 0. One of: properties, PointerBuffer
a list of unique devices returned by devices, CLContextCallbackI GetDeviceIDs or sub-devices created by CreateSubDevices for a platforma callback function that can be registered by the application. This callback function will be used by the OpenCL implementation to report
information on errors during context creation as well as errors that occur at runtime in this context. This callback function may be called
asynchronously by the OpenCL implementation. It is the application's responsibility to ensure that the callback function is thread-safe.
pfn_notify, long If will be passed as the user_data, IntBuffer user_data argument when pfn_notify is called. user_data can be NULL.will return an appropriate error code. If errcode_ret)errcode_ret is NULL, no error code is returned.Creates an OpenCL context. | |||||||||
| public static long | Returns: a valid non-zero context anderrcode_ret is set to SUCCESS if the context is created successfully. Otherwise, it returns a NULL value with the
following error values returned in errcode_ret:
a list of context property names and their corresponding values. Each property name is immediately followed by the corresponding desired value. The
list is terminated with 0. One of: properties, long device, CLContextCallbackI
a callback function that can be registered by the application. This callback function will be used by the OpenCL implementation to report
information on errors during context creation as well as errors that occur at runtime in this context. This callback function may be called
asynchronously by the OpenCL implementation. It is the application's responsibility to ensure that the callback function is thread-safe.
pfn_notify, long If will be passed as the user_data, IntBuffer user_data argument when pfn_notify is called. user_data can be NULL.will return an appropriate error code. If errcode_ret)errcode_ret is NULL, no error code is returned.Creates an OpenCL context. | |||||||||
| public static long | clCreateContext(PointerBuffer properties, PointerBuffer devices, CLContextCallbackI pfn_notify, long user_data, int[] errcode_ret)
Array version of: | |||||||||
| public static long | clCreateContextFromType(PointerBuffer
a list of context property names and their corresponding values. Each property name is immediately followed by the corresponding desired value. The
list is terminated with 0. properties, long a bit-field that identifies the type of device. One of: device_type, CLContextCallbackI
a callback function that can be registered by the application pfn_notify, long will be passed as the user_data, IntBuffer user_data argument when pfn_notify is called. user_data can be NULL.will return an appropriate error code. If errcode_ret)errcode_ret is NULL, no error code is returned.Creates a context using devices of the specified type. | |||||||||
| public static long | clCreateContextFromType(PointerBuffer properties, long device_type, CLContextCallbackI pfn_notify, long user_data, int[] errcode_ret)
Array version of: | |||||||||
| public static long | Returns: a valid non-zero image object anderrcode_ret is set to SUCCESS if the image object is created successfully. Otherwise, it returns a NULL value
with one of the following error values returned in errcode_ret:
a valid OpenCL context on which the image object is to be created context, long a bit-field that is used to specify allocation and usage information about the image memory object being created. One of: flags, CLImageFormat
a pointer to a image_format, long CLImageFormat structure that describes format properties of the image to be allocatedthe width of the image in pixels image_width, long the height of the image in pixels image_height, long the scan-line pitch in bytes. This must be 0 if image_row_pitch, ByteBuffer host_ptr is NULL and can be either 0 or ≥ image_width * size of element in
bytes if host_ptr is not NULL. If host_ptr is not NULL and image_row_pitch = 0, image_row_pitch is calculated as
image_width * size of element in bytes. If image_row_pitch is not 0, it must be a multiple of the image element size in bytes.a pointer to the image data that may already be allocated by the application. The size of the buffer that host_ptr, IntBuffer host_ptr points to must be ≥
image_row_pitch * image_height. The size of each element in bytes must be a power of 2. The image data specified by host_ptr is
stored as a linear sequence of adjacent scanlines. Each scanline is stored as a linear sequence of image elements.will return an appropriate error code. If errcode_ret)errcode_ret is NULL, no error code is returned.Creates a 2D image object. | |||||||||
| public static long | Returns: a valid non-zero image object anderrcode_ret is set to SUCCESS if the image object is created successfully. Otherwise, it returns a NULL value
with one of the following error values returned in errcode_ret:
a valid OpenCL context on which the image object is to be created context, long a bit-field that is used to specify allocation and usage information about the image memory object being created. One of: flags, CLImageFormat
a pointer to a image_format, long CLImageFormat structure that describes format properties of the image to be allocatedthe width of the image in pixels image_width, long the height of the image in pixels image_height, long the scan-line pitch in bytes. This must be 0 if image_row_pitch, ShortBuffer host_ptr is NULL and can be either 0 or ≥ image_width * size of element in
bytes if host_ptr is not NULL. If host_ptr is not NULL and image_row_pitch = 0, image_row_pitch is calculated as
image_width * size of element in bytes. If image_row_pitch is not 0, it must be a multiple of the image element size in bytes.a pointer to the image data that may already be allocated by the application. The size of the buffer that host_ptr, IntBuffer host_ptr points to must be ≥
image_row_pitch * image_height. The size of each element in bytes must be a power of 2. The image data specified by host_ptr is
stored as a linear sequence of adjacent scanlines. Each scanline is stored as a linear sequence of image elements.will return an appropriate error code. If errcode_ret)errcode_ret is NULL, no error code is returned.Creates a 2D image object. | |||||||||
| public static long | Returns: a valid non-zero image object anderrcode_ret is set to SUCCESS if the image object is created successfully. Otherwise, it returns a NULL value
with one of the following error values returned in errcode_ret:
a valid OpenCL context on which the image object is to be created context, long a bit-field that is used to specify allocation and usage information about the image memory object being created. One of: flags, CLImageFormat
a pointer to a image_format, long CLImageFormat structure that describes format properties of the image to be allocatedthe width of the image in pixels image_width, long the height of the image in pixels image_height, long the scan-line pitch in bytes. This must be 0 if image_row_pitch, IntBuffer host_ptr is NULL and can be either 0 or ≥ image_width * size of element in
bytes if host_ptr is not NULL. If host_ptr is not NULL and image_row_pitch = 0, image_row_pitch is calculated as
image_width * size of element in bytes. If image_row_pitch is not 0, it must be a multiple of the image element size in bytes.a pointer to the image data that may already be allocated by the application. The size of the buffer that host_ptr, IntBuffer host_ptr points to must be ≥
image_row_pitch * image_height. The size of each element in bytes must be a power of 2. The image data specified by host_ptr is
stored as a linear sequence of adjacent scanlines. Each scanline is stored as a linear sequence of image elements.will return an appropriate error code. If errcode_ret)errcode_ret is NULL, no error code is returned.Creates a 2D image object. | |||||||||
| public static long | Returns: a valid non-zero image object anderrcode_ret is set to SUCCESS if the image object is created successfully. Otherwise, it returns a NULL value
with one of the following error values returned in errcode_ret:
a valid OpenCL context on which the image object is to be created context, long a bit-field that is used to specify allocation and usage information about the image memory object being created. One of: flags, CLImageFormat
a pointer to a image_format, long CLImageFormat structure that describes format properties of the image to be allocatedthe width of the image in pixels image_width, long the height of the image in pixels image_height, long the scan-line pitch in bytes. This must be 0 if image_row_pitch, FloatBuffer host_ptr is NULL and can be either 0 or ≥ image_width * size of element in
bytes if host_ptr is not NULL. If host_ptr is not NULL and image_row_pitch = 0, image_row_pitch is calculated as
image_width * size of element in bytes. If image_row_pitch is not 0, it must be a multiple of the image element size in bytes.a pointer to the image data that may already be allocated by the application. The size of the buffer that host_ptr, IntBuffer host_ptr points to must be ≥
image_row_pitch * image_height. The size of each element in bytes must be a power of 2. The image data specified by host_ptr is
stored as a linear sequence of adjacent scanlines. Each scanline is stored as a linear sequence of image elements.will return an appropriate error code. If errcode_ret)errcode_ret is NULL, no error code is returned.Creates a 2D image object. | |||||||||
| public static long | clCreateImage2D(long context, long flags, CLImageFormat image_format, long image_width, long image_height, long image_row_pitch, ByteBuffer host_ptr, int[] errcode_ret)
Array version of: | |||||||||
| public static long | clCreateImage2D(long context, long flags, CLImageFormat image_format, long image_width, long image_height, long image_row_pitch, short[] host_ptr, int[] errcode_ret)
Array version of: | |||||||||
| public static long | clCreateImage2D(long context, long flags, CLImageFormat image_format, long image_width, long image_height, long image_row_pitch, int[] host_ptr, int[] errcode_ret)
Array version of: | |||||||||
| public static long | clCreateImage2D(long context, long flags, CLImageFormat image_format, long image_width, long image_height, long image_row_pitch, float[] host_ptr, int[] errcode_ret)
Array version of: | |||||||||
| public static long | Returns: a valid non-zero image object anderrcode_ret is set to SUCCESS if the image object is created successfully. Otherwise, it returns a NULL value
with one of the following error values returned in errcode_ret:
a valid OpenCL context on which the image object is to be created context, long a bit-field that is used to specify allocation and usage information about the image memory object being created. One of: flags, CLImageFormat
a pointer to a image_format, long CLImageFormat structure that describes format properties of the image to be allocatedthe width of the image in pixels image_width, long the height of the image in pixels image_height, long the depth of the image in pixels. This must be a value > 1. image_depth, long the scan-line pitch in bytes. This must be 0 if image_row_pitch, long host_ptr is NULL and can be either 0 or ≥ image_width * size of element in
bytes if host_ptr is not NULL. If host_ptr is not NULL and image_row_pitch = 0, image_row_pitch is calculated as
image_width * size of element in bytes. If image_row_pitch is not 0, it must be a multiple of the image element size in bytes.the size in bytes of each 2D slice in the 3D image. This must be 0 if image_slice_pitch, ByteBuffer host_ptr is NULL and can be either 0 or ≥
image_row_pitch * image_height if host_ptr is not NULL. If host_ptr is not NULL and image_slice_pitch = 0,
image_slice_pitch is calculated as image_row_pitch * image_height. If image_slice_pitch is not 0, it must be a multiple of
the image_row_pitch.a pointer to the image data that may already be allocated by the application. The size of the buffer that host_ptr, IntBuffer host_ptr points to must be ≥
image_slice_pitch * image_depth. The size of each element in bytes must be a power of 2. The image data specified by host_ptr is
stored as a linear sequence of adjacent 2D slices. Each 2D slice is a linear sequence of adjacent scanlines. Each scanline is a linear sequence of
image elements.will return an appropriate error code. If errcode_ret)errcode_ret is NULL, no error code is returned.Creates a 3D image object. | |||||||||
| public static long | Returns: a valid non-zero image object anderrcode_ret is set to SUCCESS if the image object is created successfully. Otherwise, it returns a NULL value
with one of the following error values returned in errcode_ret:
a valid OpenCL context on which the image object is to be created context, long a bit-field that is used to specify allocation and usage information about the image memory object being created. One of: flags, CLImageFormat
a pointer to a image_format, long CLImageFormat structure that describes format properties of the image to be allocatedthe width of the image in pixels image_width, long the height of the image in pixels image_height, long the depth of the image in pixels. This must be a value > 1. image_depth, long the scan-line pitch in bytes. This must be 0 if image_row_pitch, long host_ptr is NULL and can be either 0 or ≥ image_width * size of element in
bytes if host_ptr is not NULL. If host_ptr is not NULL and image_row_pitch = 0, image_row_pitch is calculated as
image_width * size of element in bytes. If image_row_pitch is not 0, it must be a multiple of the image element size in bytes.the size in bytes of each 2D slice in the 3D image. This must be 0 if image_slice_pitch, ShortBuffer host_ptr is NULL and can be either 0 or ≥
image_row_pitch * image_height if host_ptr is not NULL. If host_ptr is not NULL and image_slice_pitch = 0,
image_slice_pitch is calculated as image_row_pitch * image_height. If image_slice_pitch is not 0, it must be a multiple of
the image_row_pitch.a pointer to the image data that may already be allocated by the application. The size of the buffer that host_ptr, IntBuffer host_ptr points to must be ≥
image_slice_pitch * image_depth. The size of each element in bytes must be a power of 2. The image data specified by host_ptr is
stored as a linear sequence of adjacent 2D slices. Each 2D slice is a linear sequence of adjacent scanlines. Each scanline is a linear sequence of
image elements.will return an appropriate error code. If errcode_ret)errcode_ret is NULL, no error code is returned.Creates a 3D image object. | |||||||||
| public static long | Returns: a valid non-zero image object anderrcode_ret is set to SUCCESS if the image object is created successfully. Otherwise, it returns a NULL value
with one of the following error values returned in errcode_ret:
a valid OpenCL context on which the image object is to be created context, long a bit-field that is used to specify allocation and usage information about the image memory object being created. One of: flags, CLImageFormat
a pointer to a image_format, long CLImageFormat structure that describes format properties of the image to be allocatedthe width of the image in pixels image_width, long the height of the image in pixels image_height, long the depth of the image in pixels. This must be a value > 1. image_depth, long the scan-line pitch in bytes. This must be 0 if image_row_pitch, long host_ptr is NULL and can be either 0 or ≥ image_width * size of element in
bytes if host_ptr is not NULL. If host_ptr is not NULL and image_row_pitch = 0, image_row_pitch is calculated as
image_width * size of element in bytes. If image_row_pitch is not 0, it must be a multiple of the image element size in bytes.the size in bytes of each 2D slice in the 3D image. This must be 0 if image_slice_pitch, IntBuffer host_ptr is NULL and can be either 0 or ≥
image_row_pitch * image_height if host_ptr is not NULL. If host_ptr is not NULL and image_slice_pitch = 0,
image_slice_pitch is calculated as image_row_pitch * image_height. If image_slice_pitch is not 0, it must be a multiple of
the image_row_pitch.a pointer to the image data that may already be allocated by the application. The size of the buffer that host_ptr, IntBuffer host_ptr points to must be ≥
image_slice_pitch * image_depth. The size of each element in bytes must be a power of 2. The image data specified by host_ptr is
stored as a linear sequence of adjacent 2D slices. Each 2D slice is a linear sequence of adjacent scanlines. Each scanline is a linear sequence of
image elements.will return an appropriate error code. If errcode_ret)errcode_ret is NULL, no error code is returned.Creates a 3D image object. | |||||||||
| public static long | Returns: a valid non-zero image object anderrcode_ret is set to SUCCESS if the image object is created successfully. Otherwise, it returns a NULL value
with one of the following error values returned in errcode_ret:
a valid OpenCL context on which the image object is to be created context, long a bit-field that is used to specify allocation and usage information about the image memory object being created. One of: flags, CLImageFormat
a pointer to a image_format, long CLImageFormat structure that describes format properties of the image to be allocatedthe width of the image in pixels image_width, long the height of the image in pixels image_height, long the depth of the image in pixels. This must be a value > 1. image_depth, long the scan-line pitch in bytes. This must be 0 if image_row_pitch, long host_ptr is NULL and can be either 0 or ≥ image_width * size of element in
bytes if host_ptr is not NULL. If host_ptr is not NULL and image_row_pitch = 0, image_row_pitch is calculated as
image_width * size of element in bytes. If image_row_pitch is not 0, it must be a multiple of the image element size in bytes.the size in bytes of each 2D slice in the 3D image. This must be 0 if image_slice_pitch, FloatBuffer host_ptr is NULL and can be either 0 or ≥
image_row_pitch * image_height if host_ptr is not NULL. If host_ptr is not NULL and image_slice_pitch = 0,
image_slice_pitch is calculated as image_row_pitch * image_height. If image_slice_pitch is not 0, it must be a multiple of
the image_row_pitch.a pointer to the image data that may already be allocated by the application. The size of the buffer that host_ptr, IntBuffer host_ptr points to must be ≥
image_slice_pitch * image_depth. The size of each element in bytes must be a power of 2. The image data specified by host_ptr is
stored as a linear sequence of adjacent 2D slices. Each 2D slice is a linear sequence of adjacent scanlines. Each scanline is a linear sequence of
image elements.will return an appropriate error code. If errcode_ret)errcode_ret is NULL, no error code is returned.Creates a 3D image object. | |||||||||
| public static long | clCreateImage3D(long context, long flags, CLImageFormat image_format, long image_width, long image_height, long image_depth, long image_row_pitch, long image_slice_pitch, ByteBuffer host_ptr, int[] errcode_ret)
Array version of: | |||||||||
| public static long | clCreateImage3D(long context, long flags, CLImageFormat image_format, long image_width, long image_height, long image_depth, long image_row_pitch, long image_slice_pitch, short[] host_ptr, int[] errcode_ret)
Array version of: | |||||||||
| public static long | clCreateImage3D(long context, long flags, CLImageFormat image_format, long image_width, long image_height, long image_depth, long image_row_pitch, long image_slice_pitch, int[] host_ptr, int[] errcode_ret)
Array version of: | |||||||||
| public static long | clCreateImage3D(long context, long flags, CLImageFormat image_format, long image_width, long image_height, long image_depth, long image_row_pitch, long image_slice_pitch, float[] host_ptr, int[] errcode_ret)
Array version of: | |||||||||
| public static long | Returns: a valid non-zero kernel object anderrcode_ret is set to SUCCESS if the kernel object is created successfully. Otherwise, it returns a NULL value
with one of the following error values returned in errcode_ret:
a program object with a successfully built executable program, ByteBuffer a function name in the program declared with the kernel_name, IntBuffer __kernel qualifierwill return an appropriate error code. If errcode_ret)errcode_ret is NULL, no error code is returned.Creates a kernel object. | |||||||||
| public static long | Returns: a valid non-zero kernel object anderrcode_ret is set to SUCCESS if the kernel object is created successfully. Otherwise, it returns a NULL value
with one of the following error values returned in errcode_ret:
a program object with a successfully built executable program, CharSequence a function name in the program declared with the kernel_name, IntBuffer __kernel qualifierwill return an appropriate error code. If errcode_ret)errcode_ret is NULL, no error code is returned.Creates a kernel object. | |||||||||
| public static long | clCreateKernel(long program, ByteBuffer kernel_name, int[] errcode_ret)
Array version of: | |||||||||
| public static long | clCreateKernel(long program, CharSequence kernel_name, int[] errcode_ret)
Array version of: | |||||||||
| public static int | Returns: SUCCESS if the kernel objects were successfully allocated. Otherwise, it returns one of the following errors:
a program object with a successfully built executable program, PointerBuffer the buffer where the kernel objects for kernels in kernels, IntBuffer program will be returned. If kernels is NULL, it is ignored. If kernels
is not NULL, num_kernels must be greater than or equal to the number of kernels in program.the number of kernels in num_kernels_ret)program. If num_kernels_ret is NULL, it is ignored.Creates kernel objects for all kernel functions in | |||||||||
| public static int | clCreateKernelsInProgram(long program, PointerBuffer kernels, int[] num_kernels_ret)
Array version of: | |||||||||
| public static long | Returns: a valid non-zero program object anderrcode_ret is set to SUCCESS if the program object is created successfully. Otherwise, it returns a NULL
value with one of the following error values returned in errcode_ret:
a valid OpenCL context context, PointerBuffer a pointer to a list of devices that are in device_list, PointerBuffer context. device_list must be a non-NULL value. The binaries are loaded for devices specified in
this list.an array of the size in bytes of the program binaries to be loaded for devices specified by lengths, PointerBuffer device_list.an array of pointers to program binaries to be loaded for devices specified by binaries, IntBuffer device_list. For each device given by device_list[i],
the pointer to the program binary for that device is given by binaries[i] and the length of this corresponding binary is given by
lengths[i]. lengths[i] cannot be zero and binaries[i] cannot be a NULL pointer.returns whether the program binary for each device specified in device_list was loaded successfully or not. It is an array of binary_status, IntBuffer num_devices
entries and returns SUCCESS in binary_status[i] if binary was successfully loaded for device specified by device_list[i];
otherwise returns INVALID_VALUE if lengths[i] is zero or if binaries[i] is a NULL value or INVALID_BINARY in
binary_status[i] if program binary is not a valid binary for the specified device. If binary_status is NULL, it is ignored.will return an appropriate error code. If errcode_ret)errcode_ret is NULL, no error code is returned.Creates a program object for a context, and loads the binary bits specified by | |||||||||
| public static long | Returns: a valid non-zero program object anderrcode_ret is set to SUCCESS if the program object is created successfully. Otherwise, it returns a NULL
value with one of the following error values returned in errcode_ret:
a valid OpenCL context context, PointerBuffer a pointer to a list of devices that are in device_list, ByteBuffer[] context. device_list must be a non-NULL value. The binaries are loaded for devices specified in
this list.an array of pointers to program binaries to be loaded for devices specified by binaries, IntBuffer device_list. For each device given by device_list[i],
the pointer to the program binary for that device is given by binaries[i] and the length of this corresponding binary is given by
lengths[i]. lengths[i] cannot be zero and binaries[i] cannot be a NULL pointer.returns whether the program binary for each device specified in device_list was loaded successfully or not. It is an array of binary_status, IntBuffer num_devices
entries and returns SUCCESS in binary_status[i] if binary was successfully loaded for device specified by device_list[i];
otherwise returns INVALID_VALUE if lengths[i] is zero or if binaries[i] is a NULL value or INVALID_BINARY in
binary_status[i] if program binary is not a valid binary for the specified device. If binary_status is NULL, it is ignored.will return an appropriate error code. If errcode_ret)errcode_ret is NULL, no error code is returned.Creates a program object for a context, and loads the binary bits specified by | |||||||||
| public static long | Returns: a valid non-zero program object anderrcode_ret is set to SUCCESS if the program object is created successfully. Otherwise, it returns a NULL
value with one of the following error values returned in errcode_ret:
a valid OpenCL context context, PointerBuffer a pointer to a list of devices that are in device_list, ByteBuffer binary, IntBuffer context. device_list must be a non-NULL value. The binaries are loaded for devices specified in
this list.returns whether the program binary for each device specified in device_list was loaded successfully or not. It is an array of binary_status, IntBuffer num_devices
entries and returns SUCCESS in binary_status[i] if binary was successfully loaded for device specified by device_list[i];
otherwise returns INVALID_VALUE if lengths[i] is zero or if binaries[i] is a NULL value or INVALID_BINARY in
binary_status[i] if program binary is not a valid binary for the specified device. If binary_status is NULL, it is ignored.will return an appropriate error code. If errcode_ret)errcode_ret is NULL, no error code is returned.Creates a program object for a context, and loads the binary bits specified by | |||||||||
| public static long | clCreateProgramWithBinary(long context, PointerBuffer device_list, PointerBuffer lengths, PointerBuffer binaries, int[] binary_status, int[] errcode_ret)
Array version of: | |||||||||
| public static long | Returns: a valid non-zero program object anderrcode_ret is set to SUCCESS if the program object is created successfully. Otherwise, it returns a NULL value
with one of the following error values returned in errcode_ret:
a valid OpenCL context context, PointerBuffer an array of strings, PointerBuffer count pointers to optionally null-terminated character strings that make up the source codean array with the number of chars in each string (the string length). If an element in lengths, IntBuffer lengths is zero, its accompanying string is
null-terminated. If lengths is NULL, all strings in the strings argument are considered null-terminated. Any length value passed in
that is greater than zero excludes the null terminator in its count.will return an appropriate error code. If errcode_ret)errcode_ret is NULL, no error code is returned.Creates a program object for a context, and loads the source code specified by the text strings in the strings array into the program object. | |||||||||
| public static long | Returns: a valid non-zero program object anderrcode_ret is set to SUCCESS if the program object is created successfully. Otherwise, it returns a NULL value
with one of the following error values returned in errcode_ret:
a valid OpenCL context context, CharSequence[] an array of strings, IntBuffer count pointers to optionally null-terminated character strings that make up the source codewill return an appropriate error code. If errcode_ret)errcode_ret is NULL, no error code is returned.Creates a program object for a context, and loads the source code specified by the text strings in the strings array into the program object. | |||||||||
| public static long | Returns: a valid non-zero program object anderrcode_ret is set to SUCCESS if the program object is created successfully. Otherwise, it returns a NULL value
with one of the following error values returned in errcode_ret:
a valid OpenCL context context, CharSequence string, IntBuffer will return an appropriate error code. If errcode_ret)errcode_ret is NULL, no error code is returned.Creates a program object for a context, and loads the source code specified by the text strings in the strings array into the program object. | |||||||||
| public static long | clCreateProgramWithSource(long context, PointerBuffer strings, PointerBuffer lengths, int[] errcode_ret)
Array version of: | |||||||||
| public static long | Returns: a valid non-zero sampler object anderrcode_ret is set to SUCCESS if the sampler object is created successfully. Otherwise, it returns a NULL value
with one of the following error values returned in errcode_ret:
a valid OpenCL context context, boolean determines if the image coordinates specified are normalized or not normalized_coords, int specifies how out-of-range image coordinates are handled when reading from an image. One of: addressing_mode, int
the type of filter that must be applied when reading an image. One of: filter_mode, IntBuffer
will return an appropriate error code. If errcode_ret)errcode_ret is NULL, no error code is returned.Creates a sampler object. | |||||||||
| public static long | clCreateSampler(long context, boolean normalized_coords, int addressing_mode, int filter_mode, int[] errcode_ret)
Array version of: | |||||||||
| public static int | Returns: SUCCESS if the function is successfully executed. Otherwise, it returns one of the following errors:
the command-queue to insert the barrier to command_queue)Enqueues a barrier operation. | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the command-queue in which the copy command will be queued. The OpenCL context associated with command_queue, long command_queue, src_buffer and
dst_buffer must be the same.the source buffer src_buffer, long the destination buffer dst_buffer, long the offset where to begin copying data from src_offset, long src_buffer.the offset where to begin copying data into dst_offset, long dst_bufferthe size in bytes to copy size, PointerBuffer a list of events that need to complete before this particular command can be executed. If event_wait_list, PointerBuffer event_wait_list is NULL, then this particular command
does not wait on any event to complete. The events specified in event_wait_list act as synchronization points. The context associated with events in
event_wait_list and command_queue must be the same.Returns an event object that identifies this particular command and can be used to query or queue a wait for this particular command to complete.
event)event can be NULL in which case it will not be possible for the application to query the status of this command or queue a wait for this command to
complete. If the event_wait_list and the event arguments are not NULL, the event argument should not refer to an element of the
event_wait_list array.Enqueues a command to copy a buffer object identified by | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
a valid command-queue. The OpenCL context associated with command_queue, long command_queue, src_buffer and dst_image must be the same.a valid buffer object src_buffer, long a valid image object dst_image, long the offset where to begin copying data from src_offset, PointerBuffer src_bufferthe dst_origin, PointerBuffer (x, y, z) offset in pixels in the 1D, 2D or 3D image, the (x, y) offset and the image index in the 2D image array or the
(x) offset and the image index in the 1D image array. If dst_image is a 2D image object, dst_origin[2] must be 0. If
dst_image is a 1D image or 1D image buffer object, dst_origin[1] and dst_origin[2] must be 0. If dst_image is a 1D
image array object, dst_origin[2] must be 0. If dst_image is a 1D image array object, dst_origin[1] describes the image
index in the 1D image array. If dst_image is a 2D image array object, dst_origin[2] describes the image index in the 2D image array.the region, PointerBuffer (width, height, depth) in pixels of the 1D, 2D or 3D rectangle, the (width, height) in pixels of the 2D rectangle and the number
of images of a 2D image array or the (width) in pixels of the 1D rectangle and the number of images of a 1D image array. If
dst_image is a 2D image object, region[2] must be 1. If dst_image is a 1D image or
1D image buffer object, region[1] and region[2] must be 1. If dst_image is a 1D image array object,
region[2] must be 1. The values in region cannot be 0.a list of events that need to complete before this particular command can be executed. If event_wait_list, PointerBuffer event_wait_list is NULL, then this particular command
does not wait on any event to complete. The events specified in event_wait_list act as synchronization points. The context associated with events in
event_wait_list and command_queue must be the same.Returns an event object that identifies this particular command and can be used to query or queue a wait for this particular command to complete.
event)event can be NULL in which case it will not be possible for the application to query the status of this command or queue a wait for this command to
complete. If the event_wait_list and the event arguments are not NULL, the event argument should not refer to an element of the
event_wait_list array.Enqueues a command to copy a buffer object to an image object. | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the command-queue in which the copy command will be queued. The OpenCL context associated with command_queue, long src_image, long dst_image, PointerBuffer command_queue, src_image and
dst_image must be the same.the src_origin, PointerBuffer (x, y, z) offset in pixels in the 1D, 2D or 3D image, the (x, y) offset and the image index in the 2D image array or the
(x) offset and the image index in the 1D image array. If src_image is a 2D image object, src_origin[2] must be 0. If
src_image is a 1D image object, src_origin[1] and src_origin[2] must be 0. If src_image is a 1D image array object,
src_origin[2] must be 0. If src_image is a 1D image array object, src_origin[1] describes the image index in the 1D image
array. If src_image is a 2D image array object, src_origin[2] describes the image index in the 2D image array.the dst_origin, PointerBuffer (x, y, z) offset in pixels in the 1D, 2D or 3D image, the (x, y) offset and the image index in the 2D image array or the
(x) offset and the image index in the 1D image array. If dst_image is a 2D image object, dst_origin[2] must be 0. If
dst_image is a 1D image or 1D image buffer object, dst_origin[1] and dst_origin[2] must be 0. If dst_image is a 1D
image array object, dst_origin[2] must be 0. If dst_image is a 1D image array object, dst_origin[1] describes the image
index in the 1D image array. If dst_image is a 2D image array object, dst_origin[2] describes the image index in the 2D image array.the region, PointerBuffer (width, height, depth) in pixels of the 1D, 2D or 3D rectangle, the (width, height) in pixels of the 2D rectangle and the number
of images of a 2D image array or the (width) in pixels of the 1D rectangle and the number of images of a 1D image array. If
src_image or dst_image is a 2D image object, region[2] must be 1. If src_image or dst_image is a 1D image or
1D image buffer object, region[1] and region[2] must be 1. If src_image or dst_image is a 1D image array object,
region[2] must be 1. The values in region cannot be 0.a list of events that need to complete before this particular command can be executed. If event_wait_list, PointerBuffer event_wait_list is NULL, then this particular command
does not wait on any event to complete. The events specified in event_wait_list act as synchronization points. The context associated with events in
event_wait_list and command_queue must be the same.Returns an event object that identifies this particular command and can be used to query or queue a wait for this particular command to complete.
event)event can be NULL in which case it will not be possible for the application to query the status of this command or queue a wait for this command to
complete. If the event_wait_list and the event arguments are not NULL, the event argument should not refer to an element of the
event_wait_list array.Enqueues a command to copy image objects. | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
a valid command-queue. The OpenCL context associated with command_queue, long command_queue, src_image and dst_buffer must be the same.a valid image object src_image, long a valid buffer object dst_buffer, PointerBuffer the src_origin, PointerBuffer (x, y, z) offset in pixels in the 1D, 2D or 3D image, the (x, y) offset and the image index in the 2D image array or the
(x) offset and the image index in the 1D image array. If src_image is a 2D image object, src_origin[2] must be 0. If
src_image is a 1D image object, src_origin[1] and src_origin[2] must be 0. If src_image is a 1D image array object,
src_origin[2] must be 0. If src_image is a 1D image array object, src_origin[1] describes the image index in the 1D image
array. If src_image is a 2D image array object, src_origin[2] describes the image index in the 2D image array.the region, long (width, height, depth) in pixels of the 1D, 2D or 3D rectangle, the (width, height) in pixels of the 2D rectangle and the number
of images of a 2D image array or the (width) in pixels of the 1D rectangle and the number of images of a 1D image array. If
src_image is a 2D image object, region[2] must be 1. If src_image is a 1D image or 1D image buffer object, region[1]
and region[2] must be 1. If src_image is a 1D image array object, region[2] must be 1. The values in region cannot
be 0.the offset where to begin copying data into dst_offset, PointerBuffer dst_buffer. The size in bytes of the region to be copied referred to as dst_cb is
computed as width * height * depth * bytes/image element if src_image is a 3D image object, is computed as
width * height * bytes/image element if src_image is a 2D image, is computed as
width * height * arraysize * bytes/image element if src_image is a 2D image array object, is computed as
width * bytes/image element if src_image is a 1D image or 1D image buffer object and is computed as
width * arraysize * bytes/image element if src_image is a 1D image array object.a list of events that need to complete before this particular command can be executed. If event_wait_list, PointerBuffer event_wait_list is NULL, then this particular command
does not wait on any event to complete. The events specified in event_wait_list act as synchronization points. The context associated with events in
event_wait_list and command_queue must be the same.Returns an event object that identifies this particular command and can be used to query or queue a wait for this particular command to complete.
event)event can be NULL in which case it will not be possible for the application to query the status of this command or queue a wait for this command to
complete. If the event_wait_list and the event arguments are not NULL, the event argument should not refer to an element of the
event_wait_list array.Enqueues a command to copy an image object to a buffer object. | |||||||||
| public static ByteBuffer | Returns: a pointer to the mapped region. Theerrcode_ret is set to SUCCESS. A NULL pointer is returned otherwise with one of the following error values
returned in errcode_ret:
a valid command-queue command_queue, long a valid buffer object. The OpenCL context associated with command_queue and buffer must be the same. buffer, boolean indicates if the map operation is blocking or non-blocking.
blocking_map, long If If a bit-field. One of: map_flags, long
the offset in bytes of the region in the buffer object that is being mapped offset, long the size in bytes of the region in the buffer object that is being mapped size, PointerBuffer a list of events that need to complete before this particular command can be executed. If event_wait_list, PointerBuffer event_wait_list is NULL, then this particular command
does not wait on any event to complete. The events specified in event_wait_list act as synchronization points. The context associated with events in
event_wait_list and command_queue must be the same.Returns an event object that identifies this particular command and can be used to query or queue a wait for this particular command to complete.
event, IntBuffer event can be NULL in which case it will not be possible for the application to query the status of this command or queue a wait for this command to
complete. If the event_wait_list and the event arguments are not NULL, the event argument should not refer to an element of the
event_wait_list array.will return an appropriate error code. If errcode_ret, ByteBuffer old_buffer)errcode_ret is NULL, no error code is returned.Enqueues a command to map a region of the buffer object given by buffer into the host address space and returns a pointer to this mapped region. | |||||||||
| public static ByteBuffer | clEnqueueMapBuffer(long command_queue, long buffer, boolean blocking_map, long map_flags, long offset, long size, PointerBuffer event_wait_list, PointerBuffer event, int[] errcode_ret, ByteBuffer old_buffer)
Array version of: | |||||||||
| public static ByteBuffer | Returns: a pointer to the mapped region. Theerrcode_ret is set to SUCCESS. A NULL pointer is returned otherwise with one of the following error values
returned in errcode_ret:
a valid command-queue command_queue, long a valid image object. The OpenCL context associated with image, boolean command_queue and image must be the same.indicates if the map operation is blocking or non-blocking.
blocking_map, long If If a bit-field. One of: map_flags, PointerBuffer
the origin, PointerBuffer (x, y, z) offset in pixels in the 1D, 2D or 3D image, the (x, y) offset and the image index in the 2D image array or the
(x) offset and the image index in the 1D image array. If image is a 2D image object, origin[2] must be 0. If image
is a 1D image or 1D image buffer object, origin[1] and origin[2] must be 0. If image is a 1D image array object,
origin[2] must be 0. If image is a 1D image array object, origin[1] describes the image index in the 1D image array. If
image is a 2D image array object, origin[2] describes the image index in the 2D image array.the region, PointerBuffer (width, height, depth) in pixels of the 1D, 2D or 3D rectangle, the (width, height) in pixels of the 2D rectangle and the number
of images of a 2D image array or the (width) in pixels of the 1D rectangle and the number of images of a 1D image array. If image is
a 2D image object, region[2] must be 1. If image is a 1D image or 1D image buffer object, region[1] and region[2]
must be 1. If image is a 1D image array object, region[2] must be 1. The values in region cannot be 0.the scan-line pitch in bytes for the mapped region. This must be a non- image_row_pitch, PointerBuffer NULL value.returns the size in bytes of each 2D slice of a 3D image or the size of each 1D or 2D image in a 1D or 2D image array for the mapped region. For a
1D and 2D image, zero is returned if this argument is not image_slice_pitch, PointerBuffer NULL. For a 3D image, 1D and 2D image array, image_slice_pitch must be a non-NULL
value.a list of events that need to complete before this particular command can be executed. If event_wait_list, PointerBuffer event_wait_list is NULL, then this particular command
does not wait on any event to complete. The events specified in event_wait_list act as synchronization points. The context associated with events in
event_wait_list and command_queue must be the same.Returns an event object that identifies this particular command and can be used to query or queue a wait for this particular command to complete.
event, IntBuffer event can be NULL in which case it will not be possible for the application to query the status of this command or queue a wait for this command to
complete. If the event_wait_list and the event arguments are not NULL, the event argument should not refer to an element of the
event_wait_list array.will return an appropriate error code. If errcode_ret, ByteBuffer old_buffer)errcode_ret is NULL, no error code is returned.Enqueues a command to map a region in the image object given by | |||||||||
| public static ByteBuffer | Returns: a pointer to the mapped region. Theerrcode_ret is set to SUCCESS. A NULL pointer is returned otherwise with one of the following error values
returned in errcode_ret:
a valid command-queue command_queue, long a valid image object. The OpenCL context associated with image, boolean command_queue and image must be the same.indicates if the map operation is blocking or non-blocking.
blocking_map, long If If a bit-field. One of: map_flags, PointerBuffer
the origin, PointerBuffer (x, y, z) offset in pixels in the 1D, 2D or 3D image, the (x, y) offset and the image index in the 2D image array or the
(x) offset and the image index in the 1D image array. If image is a 2D image object, origin[2] must be 0. If image
is a 1D image or 1D image buffer object, origin[1] and origin[2] must be 0. If image is a 1D image array object,
origin[2] must be 0. If image is a 1D image array object, origin[1] describes the image index in the 1D image array. If
image is a 2D image array object, origin[2] describes the image index in the 2D image array.the region, PointerBuffer (width, height, depth) in pixels of the 1D, 2D or 3D rectangle, the (width, height) in pixels of the 2D rectangle and the number
of images of a 2D image array or the (width) in pixels of the 1D rectangle and the number of images of a 1D image array. If image is
a 2D image object, region[2] must be 1. If image is a 1D image or 1D image buffer object, region[1] and region[2]
must be 1. If image is a 1D image array object, region[2] must be 1. The values in region cannot be 0.the scan-line pitch in bytes for the mapped region. This must be a non- image_row_pitch, PointerBuffer NULL value.returns the size in bytes of each 2D slice of a 3D image or the size of each 1D or 2D image in a 1D or 2D image array for the mapped region. For a
1D and 2D image, zero is returned if this argument is not image_slice_pitch, PointerBuffer NULL. For a 3D image, 1D and 2D image array, image_slice_pitch must be a non-NULL
value.a list of events that need to complete before this particular command can be executed. If event_wait_list, PointerBuffer event_wait_list is NULL, then this particular command
does not wait on any event to complete. The events specified in event_wait_list act as synchronization points. The context associated with events in
event_wait_list and command_queue must be the same.Returns an event object that identifies this particular command and can be used to query or queue a wait for this particular command to complete.
event, IntBuffer event can be NULL in which case it will not be possible for the application to query the status of this command or queue a wait for this command to
complete. If the event_wait_list and the event arguments are not NULL, the event argument should not refer to an element of the
event_wait_list array.will return an appropriate error code. If errcode_ret, long length, ByteBuffer old_buffer)errcode_ret is NULL, no error code is returned.Enqueues a command to map a region in the image object given by | |||||||||
| public static ByteBuffer | clEnqueueMapImage(long command_queue, long image, boolean blocking_map, long map_flags, PointerBuffer origin, PointerBuffer region, PointerBuffer image_row_pitch, PointerBuffer image_slice_pitch, PointerBuffer event_wait_list, PointerBuffer event, int[] errcode_ret, ByteBuffer old_buffer)
Array version of: | |||||||||
| public static ByteBuffer | clEnqueueMapImage(long command_queue, long image, boolean blocking_map, long map_flags, PointerBuffer origin, PointerBuffer region, PointerBuffer image_row_pitch, PointerBuffer image_slice_pitch, PointerBuffer event_wait_list, PointerBuffer event, int[] errcode_ret, long length, ByteBuffer old_buffer)
Array version of: | |||||||||
| public static int | Returns: SUCCESS if the function is successfully executed. Otherwise, it returns one of the following errors:
the command-queue to insert the marker to command_queue, PointerBuffer Returns an event object that identifies this particular command and can be used to query or queue a wait for this particular command to complete.
event)event can be NULL in which case it will not be possible for the application to query the status of this command or queue a wait for this command to
complete. If the event_wait_list and the event arguments are not NULL, the event argument should not refer to an element of the
event_wait_list array.Enqueues a marker command to | |||||||||
| public static int | Returns: SUCCESS if the user function execution instance was successfully queued. Otherwise, it returns one of the following errors:
a valid command-queue. A native user function can only be executed on a command-queue created on a device that has command_queue, CLNativeKernelI EXEC_NATIVE_KERNEL
capability set in DEVICE_EXECUTION_CAPABILITIES.a pointer to a host-callable user function user_func, ByteBuffer a pointer to the args list that args, PointerBuffer user_func should be called witha list of valid buffer objects, if mem_list, PointerBuffer num_mem_objects > 0. The buffer object values specified in mem_list are memory object handles
(cl_mem values) returned by CreateBuffer or NULL.a pointer to appropriate locations that args_mem_loc, PointerBuffer args points to where memory object handles (cl_mem values) are stored. Before the user function is
executed, the memory object handles are replaced by pointers to global memory.a list of events that need to complete before this particular command can be executed. If event_wait_list, PointerBuffer event_wait_list is NULL, then this particular command
does not wait on any event to complete. The events specified in event_wait_list act as synchronization points. The context associated with events in
event_wait_list and command_queue must be the same.Returns an event object that identifies this particular command and can be used to query or queue a wait for this particular command to complete.
event)event can be NULL in which case it will not be possible for the application to query the status of this command or queue a wait for this command to
complete. If the event_wait_list and the event arguments are not NULL, the event argument should not refer to an element of the
event_wait_list array.Enqueues a command to execute a native C/C++ function not compiled using the OpenCL compiler. | |||||||||
| public static int | Returns: SUCCESS if the user function execution instance was successfully queued. Otherwise, it returns one of the following errors:
a valid command-queue. A native user function can only be executed on a command-queue created on a device that has command_queue, CLNativeKernelI EXEC_NATIVE_KERNEL
capability set in DEVICE_EXECUTION_CAPABILITIES.a pointer to a host-callable user function user_func, ByteBuffer a pointer to the args list that args, long memobj, long memobj_loc, PointerBuffer user_func should be called witha list of events that need to complete before this particular command can be executed. If event_wait_list, PointerBuffer event_wait_list is NULL, then this particular command
does not wait on any event to complete. The events specified in event_wait_list act as synchronization points. The context associated with events in
event_wait_list and command_queue must be the same.Returns an event object that identifies this particular command and can be used to query or queue a wait for this particular command to complete.
event)event can be NULL in which case it will not be possible for the application to query the status of this command or queue a wait for this command to
complete. If the event_wait_list and the event arguments are not NULL, the event argument should not refer to an element of the
event_wait_list array.Enqueues a command to execute a native C/C++ function not compiled using the OpenCL compiler. | |||||||||
| public static int | Returns: SUCCESS if the kernel execution was successfully queued. Otherwise, it returns one of the following errors:
a valid command-queue. The kernel will be queued for execution on the device associated with command_queue, long command_queue.a valid kernel object. The OpenCL context associated with kernel, int kernel and command_queue must be the same.the number of dimensions used to specify the global work-items and work-items in the work-group. work_dim, PointerBuffer work_dim must be greater than zero and less
than or equal to DEVICE_MAX_WORK_ITEM_DIMENSIONS.can be used to specify an array of global_work_offset, PointerBuffer work_dim unsigned values that describe the offset used to calculate the global ID of a work-item. If
global_work_offset is NULL, the global IDs start at offset (0, 0, … 0).points to an array of global_work_size, PointerBuffer work_dim unsigned values that describe the number of global work-items in work_dim dimensions that will
execute the kernel function. The total number of global work-items is computed as global_work_size[0] * … * global_work_size[work_dim – 1].points to an array of local_work_size, PointerBuffer work_dim unsigned values that describe the number of work-items that make up a work-group (also referred to as the
size of the work-group) that will execute the kernel specified by kernel. The total number of work-items in a work-group is computed as
local_work_size[0] * … * local_work_size[work_dim – 1]. The total number of work-items in the work-group must be less than or equal to
the DEVICE_MAX_WORK_GROUP_SIZE value and the number of work-items specified in local_work_size[0], … local_work_size[work_dim – 1]
must be less than or equal to the corresponding values specified by DEVICE_MAX_WORK_ITEM_SIZES[0], …
DEVICE_MAX_WORK_ITEM_SIZES[work_dim – 1]. The explicitly specified local_work_size will be used to determine how to
break the global work-items specified by global_work_size into appropriate work-group instances. If local_work_size is specified, the
values specified in global_work_size[0], … global_work_size[work_dim - 1] must be evenly divisible by the corresponding values
specified in local_work_size[0], … local_work_size[work_dim – 1].
The work-group size to be used for kernel can also be specified in the program source using the
a list of events that need to complete before this particular command can be executed. If event_wait_list, PointerBuffer event_wait_list is NULL, then this particular command
does not wait on any event to complete. The events specified in event_wait_list act as synchronization points. The context associated with events in
event_wait_list and command_queue must be the same.Returns an event object that identifies this particular command and can be used to query or queue a wait for this particular command to complete.
event)event can be NULL in which case it will not be possible for the application to query the status of this command or queue a wait for this command to
complete. If the event_wait_list and the event arguments are not NULL, the event argument should not refer to an element of the
event_wait_list array.Enqueues a command to execute a kernel on a device. | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the command-queue in which the read command will be queued. command_queue, long command_queue and buffer must be created with the same OpenCL context.a valid buffer object buffer, boolean indicates if the read operation is blocking or non-blocking
blocking_read, long If If the offset in bytes in the buffer object to read from offset, ByteBuffer the pointer to buffer in host memory where data is to be read into ptr, PointerBuffer a list of events that need to complete before this particular command can be executed. If event_wait_list, PointerBuffer event_wait_list is NULL, then this particular command
does not wait on any event to complete. The events specified in event_wait_list act as synchronization points. The context associated with events in
event_wait_list and command_queue must be the same.Returns an event object that identifies this particular command and can be used to query or queue a wait for this particular command to complete.
event)event can be NULL in which case it will not be possible for the application to query the status of this command or queue a wait for this command to
complete. If the event_wait_list and the event arguments are not NULL, the event argument should not refer to an element of the
event_wait_list array.Enqueues a command to read from a buffer object to host memory. | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the command-queue in which the read command will be queued. command_queue, long command_queue and buffer must be created with the same OpenCL context.a valid buffer object buffer, boolean indicates if the read operation is blocking or non-blocking
blocking_read, long If If the offset in bytes in the buffer object to read from offset, ShortBuffer the pointer to buffer in host memory where data is to be read into ptr, PointerBuffer a list of events that need to complete before this particular command can be executed. If event_wait_list, PointerBuffer event_wait_list is NULL, then this particular command
does not wait on any event to complete. The events specified in event_wait_list act as synchronization points. The context associated with events in
event_wait_list and command_queue must be the same.Returns an event object that identifies this particular command and can be used to query or queue a wait for this particular command to complete.
event)event can be NULL in which case it will not be possible for the application to query the status of this command or queue a wait for this command to
complete. If the event_wait_list and the event arguments are not NULL, the event argument should not refer to an element of the
event_wait_list array.Enqueues a command to read from a buffer object to host memory. | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the command-queue in which the read command will be queued. command_queue, long command_queue and buffer must be created with the same OpenCL context.a valid buffer object buffer, boolean indicates if the read operation is blocking or non-blocking
blocking_read, long If If the offset in bytes in the buffer object to read from offset, IntBuffer the pointer to buffer in host memory where data is to be read into ptr, PointerBuffer a list of events that need to complete before this particular command can be executed. If event_wait_list, PointerBuffer event_wait_list is NULL, then this particular command
does not wait on any event to complete. The events specified in event_wait_list act as synchronization points. The context associated with events in
event_wait_list and command_queue must be the same.Returns an event object that identifies this particular command and can be used to query or queue a wait for this particular command to complete.
event)event can be NULL in which case it will not be possible for the application to query the status of this command or queue a wait for this command to
complete. If the event_wait_list and the event arguments are not NULL, the event argument should not refer to an element of the
event_wait_list array.Enqueues a command to read from a buffer object to host memory. | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the command-queue in which the read command will be queued. command_queue, long command_queue and buffer must be created with the same OpenCL context.a valid buffer object buffer, boolean indicates if the read operation is blocking or non-blocking
blocking_read, long If If the offset in bytes in the buffer object to read from offset, FloatBuffer the pointer to buffer in host memory where data is to be read into ptr, PointerBuffer a list of events that need to complete before this particular command can be executed. If event_wait_list, PointerBuffer event_wait_list is NULL, then this particular command
does not wait on any event to complete. The events specified in event_wait_list act as synchronization points. The context associated with events in
event_wait_list and command_queue must be the same.Returns an event object that identifies this particular command and can be used to query or queue a wait for this particular command to complete.
event)event can be NULL in which case it will not be possible for the application to query the status of this command or queue a wait for this command to
complete. If the event_wait_list and the event arguments are not NULL, the event argument should not refer to an element of the
event_wait_list array.Enqueues a command to read from a buffer object to host memory. | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the command-queue in which the read command will be queued. command_queue, long command_queue and buffer must be created with the same OpenCL context.a valid buffer object buffer, boolean indicates if the read operation is blocking or non-blocking
blocking_read, long If If the offset in bytes in the buffer object to read from offset, DoubleBuffer the pointer to buffer in host memory where data is to be read into ptr, PointerBuffer a list of events that need to complete before this particular command can be executed. If event_wait_list, PointerBuffer event_wait_list is NULL, then this particular command
does not wait on any event to complete. The events specified in event_wait_list act as synchronization points. The context associated with events in
event_wait_list and command_queue must be the same.Returns an event object that identifies this particular command and can be used to query or queue a wait for this particular command to complete.
event)event can be NULL in which case it will not be possible for the application to query the status of this command or queue a wait for this command to
complete. If the event_wait_list and the event arguments are not NULL, the event argument should not refer to an element of the
event_wait_list array.Enqueues a command to read from a buffer object to host memory. | |||||||||
| public static int | clEnqueueReadBuffer(long command_queue, long buffer, boolean blocking_read, long offset, short[] ptr, PointerBuffer event_wait_list, PointerBuffer event)
Array version of: | |||||||||
| public static int | clEnqueueReadBuffer(long command_queue, long buffer, boolean blocking_read, long offset, int[] ptr, PointerBuffer event_wait_list, PointerBuffer event)
Array version of: | |||||||||
| public static int | clEnqueueReadBuffer(long command_queue, long buffer, boolean blocking_read, long offset, float[] ptr, PointerBuffer event_wait_list, PointerBuffer event)
Array version of: | |||||||||
| public static int | clEnqueueReadBuffer(long command_queue, long buffer, boolean blocking_read, long offset, double[] ptr, PointerBuffer event_wait_list, PointerBuffer event)
Array version of: | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the command-queue in which the read command will be queued. command_queue, long command_queue and image must be created with the same OpenCL context.a valid image or image array object image, boolean indicates if the read operation is blocking or non-blocking.
blocking_read, PointerBuffer If If defines the origin, PointerBuffer (x, y, z) offset in pixels in the 1D, 2D or 3D image, the (x, y) offset and the image index in the 2D image array or the
(x) offset and the image index in the 1D image array. If image is a 2D image object, origin[2] must be 0. If image
is a 1D image or 1D image buffer object, origin[1] and origin[2] must be 0. If image is a 1D image array object,
origin[2] must be 0. If image is a 1D image array object, origin[1] describes the image index in the 1D image array. If
image is a 2D image array object, origin[2] describes the image index in the 2D image array.defines the region, long (width, height, depth) in pixels of the 1D, 2D or 3D rectangle, the (width, height) in pixels of the 2D rectangle and
the number of images of a 2D image array or the (width) in pixels of the 1D rectangle and the number of images of a 1D image array. If
image is a 2D image object, region[2] must be 1. If image is a 1D image or 1D image buffer object, region[1] and
region[2] must be 1. If image is a 1D image array object, region[2] must be 1. The values in region cannot be 0.the length of each row in bytes. This value must be greater than or equal to the row_pitch, long element size in bytes * width. If row_pitch is set
to 0, the appropriate row pitch is calculated based on the size of each element in bytes multiplied by width.the size in bytes of the 2D slice of the 3D region of a 3D image or each image of a 1D or 2D image array being read. This must be 0 if slice_pitch, ByteBuffer image
is a 1D or 2D image. This value must be greater than or equal to row_pitch * height. If slice_pitch is set to 0, the appropriate
slice pitch is calculated based on the row_pitch * height.the pointer to a buffer in host memory where image data is to be read to ptr, PointerBuffer a list of events that need to complete before this particular command can be executed. If event_wait_list, PointerBuffer event_wait_list is NULL, then this particular command
does not wait on any event to complete. The events specified in event_wait_list act as synchronization points. The context associated with events in
event_wait_list and command_queue must be the same.Returns an event object that identifies this particular command and can be used to query or queue a wait for this particular command to complete.
event)event can be NULL in which case it will not be possible for the application to query the status of this command or queue a wait for this command to
complete. If the event_wait_list and the event arguments are not NULL, the event argument should not refer to an element of the
event_wait_list array.Enqueues a command to read from an image or image array object to host memory. | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the command-queue in which the read command will be queued. command_queue, long command_queue and image must be created with the same OpenCL context.a valid image or image array object image, boolean indicates if the read operation is blocking or non-blocking.
blocking_read, PointerBuffer If If defines the origin, PointerBuffer (x, y, z) offset in pixels in the 1D, 2D or 3D image, the (x, y) offset and the image index in the 2D image array or the
(x) offset and the image index in the 1D image array. If image is a 2D image object, origin[2] must be 0. If image
is a 1D image or 1D image buffer object, origin[1] and origin[2] must be 0. If image is a 1D image array object,
origin[2] must be 0. If image is a 1D image array object, origin[1] describes the image index in the 1D image array. If
image is a 2D image array object, origin[2] describes the image index in the 2D image array.defines the region, long (width, height, depth) in pixels of the 1D, 2D or 3D rectangle, the (width, height) in pixels of the 2D rectangle and
the number of images of a 2D image array or the (width) in pixels of the 1D rectangle and the number of images of a 1D image array. If
image is a 2D image object, region[2] must be 1. If image is a 1D image or 1D image buffer object, region[1] and
region[2] must be 1. If image is a 1D image array object, region[2] must be 1. The values in region cannot be 0.the length of each row in bytes. This value must be greater than or equal to the row_pitch, long element size in bytes * width. If row_pitch is set
to 0, the appropriate row pitch is calculated based on the size of each element in bytes multiplied by width.the size in bytes of the 2D slice of the 3D region of a 3D image or each image of a 1D or 2D image array being read. This must be 0 if slice_pitch, ShortBuffer image
is a 1D or 2D image. This value must be greater than or equal to row_pitch * height. If slice_pitch is set to 0, the appropriate
slice pitch is calculated based on the row_pitch * height.the pointer to a buffer in host memory where image data is to be read to ptr, PointerBuffer a list of events that need to complete before this particular command can be executed. If event_wait_list, PointerBuffer event_wait_list is NULL, then this particular command
does not wait on any event to complete. The events specified in event_wait_list act as synchronization points. The context associated with events in
event_wait_list and command_queue must be the same.Returns an event object that identifies this particular command and can be used to query or queue a wait for this particular command to complete.
event)event can be NULL in which case it will not be possible for the application to query the status of this command or queue a wait for this command to
complete. If the event_wait_list and the event arguments are not NULL, the event argument should not refer to an element of the
event_wait_list array.Enqueues a command to read from an image or image array object to host memory. | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the command-queue in which the read command will be queued. command_queue, long command_queue and image must be created with the same OpenCL context.a valid image or image array object image, boolean indicates if the read operation is blocking or non-blocking.
blocking_read, PointerBuffer If If defines the origin, PointerBuffer (x, y, z) offset in pixels in the 1D, 2D or 3D image, the (x, y) offset and the image index in the 2D image array or the
(x) offset and the image index in the 1D image array. If image is a 2D image object, origin[2] must be 0. If image
is a 1D image or 1D image buffer object, origin[1] and origin[2] must be 0. If image is a 1D image array object,
origin[2] must be 0. If image is a 1D image array object, origin[1] describes the image index in the 1D image array. If
image is a 2D image array object, origin[2] describes the image index in the 2D image array.defines the region, long (width, height, depth) in pixels of the 1D, 2D or 3D rectangle, the (width, height) in pixels of the 2D rectangle and
the number of images of a 2D image array or the (width) in pixels of the 1D rectangle and the number of images of a 1D image array. If
image is a 2D image object, region[2] must be 1. If image is a 1D image or 1D image buffer object, region[1] and
region[2] must be 1. If image is a 1D image array object, region[2] must be 1. The values in region cannot be 0.the length of each row in bytes. This value must be greater than or equal to the row_pitch, long element size in bytes * width. If row_pitch is set
to 0, the appropriate row pitch is calculated based on the size of each element in bytes multiplied by width.the size in bytes of the 2D slice of the 3D region of a 3D image or each image of a 1D or 2D image array being read. This must be 0 if slice_pitch, IntBuffer image
is a 1D or 2D image. This value must be greater than or equal to row_pitch * height. If slice_pitch is set to 0, the appropriate
slice pitch is calculated based on the row_pitch * height.the pointer to a buffer in host memory where image data is to be read to ptr, PointerBuffer a list of events that need to complete before this particular command can be executed. If event_wait_list, PointerBuffer event_wait_list is NULL, then this particular command
does not wait on any event to complete. The events specified in event_wait_list act as synchronization points. The context associated with events in
event_wait_list and command_queue must be the same.Returns an event object that identifies this particular command and can be used to query or queue a wait for this particular command to complete.
event)event can be NULL in which case it will not be possible for the application to query the status of this command or queue a wait for this command to
complete. If the event_wait_list and the event arguments are not NULL, the event argument should not refer to an element of the
event_wait_list array.Enqueues a command to read from an image or image array object to host memory. | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the command-queue in which the read command will be queued. command_queue, long command_queue and image must be created with the same OpenCL context.a valid image or image array object image, boolean indicates if the read operation is blocking or non-blocking.
blocking_read, PointerBuffer If If defines the origin, PointerBuffer (x, y, z) offset in pixels in the 1D, 2D or 3D image, the (x, y) offset and the image index in the 2D image array or the
(x) offset and the image index in the 1D image array. If image is a 2D image object, origin[2] must be 0. If image
is a 1D image or 1D image buffer object, origin[1] and origin[2] must be 0. If image is a 1D image array object,
origin[2] must be 0. If image is a 1D image array object, origin[1] describes the image index in the 1D image array. If
image is a 2D image array object, origin[2] describes the image index in the 2D image array.defines the region, long (width, height, depth) in pixels of the 1D, 2D or 3D rectangle, the (width, height) in pixels of the 2D rectangle and
the number of images of a 2D image array or the (width) in pixels of the 1D rectangle and the number of images of a 1D image array. If
image is a 2D image object, region[2] must be 1. If image is a 1D image or 1D image buffer object, region[1] and
region[2] must be 1. If image is a 1D image array object, region[2] must be 1. The values in region cannot be 0.the length of each row in bytes. This value must be greater than or equal to the row_pitch, long element size in bytes * width. If row_pitch is set
to 0, the appropriate row pitch is calculated based on the size of each element in bytes multiplied by width.the size in bytes of the 2D slice of the 3D region of a 3D image or each image of a 1D or 2D image array being read. This must be 0 if slice_pitch, FloatBuffer image
is a 1D or 2D image. This value must be greater than or equal to row_pitch * height. If slice_pitch is set to 0, the appropriate
slice pitch is calculated based on the row_pitch * height.the pointer to a buffer in host memory where image data is to be read to ptr, PointerBuffer a list of events that need to complete before this particular command can be executed. If event_wait_list, PointerBuffer event_wait_list is NULL, then this particular command
does not wait on any event to complete. The events specified in event_wait_list act as synchronization points. The context associated with events in
event_wait_list and command_queue must be the same.Returns an event object that identifies this particular command and can be used to query or queue a wait for this particular command to complete.
event)event can be NULL in which case it will not be possible for the application to query the status of this command or queue a wait for this command to
complete. If the event_wait_list and the event arguments are not NULL, the event argument should not refer to an element of the
event_wait_list array.Enqueues a command to read from an image or image array object to host memory. | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the command-queue in which the read command will be queued. command_queue, long command_queue and image must be created with the same OpenCL context.a valid image or image array object image, boolean indicates if the read operation is blocking or non-blocking.
blocking_read, PointerBuffer If If defines the origin, PointerBuffer (x, y, z) offset in pixels in the 1D, 2D or 3D image, the (x, y) offset and the image index in the 2D image array or the
(x) offset and the image index in the 1D image array. If image is a 2D image object, origin[2] must be 0. If image
is a 1D image or 1D image buffer object, origin[1] and origin[2] must be 0. If image is a 1D image array object,
origin[2] must be 0. If image is a 1D image array object, origin[1] describes the image index in the 1D image array. If
image is a 2D image array object, origin[2] describes the image index in the 2D image array.defines the region, long (width, height, depth) in pixels of the 1D, 2D or 3D rectangle, the (width, height) in pixels of the 2D rectangle and
the number of images of a 2D image array or the (width) in pixels of the 1D rectangle and the number of images of a 1D image array. If
image is a 2D image object, region[2] must be 1. If image is a 1D image or 1D image buffer object, region[1] and
region[2] must be 1. If image is a 1D image array object, region[2] must be 1. The values in region cannot be 0.the length of each row in bytes. This value must be greater than or equal to the row_pitch, long element size in bytes * width. If row_pitch is set
to 0, the appropriate row pitch is calculated based on the size of each element in bytes multiplied by width.the size in bytes of the 2D slice of the 3D region of a 3D image or each image of a 1D or 2D image array being read. This must be 0 if slice_pitch, DoubleBuffer image
is a 1D or 2D image. This value must be greater than or equal to row_pitch * height. If slice_pitch is set to 0, the appropriate
slice pitch is calculated based on the row_pitch * height.the pointer to a buffer in host memory where image data is to be read to ptr, PointerBuffer a list of events that need to complete before this particular command can be executed. If event_wait_list, PointerBuffer event_wait_list is NULL, then this particular command
does not wait on any event to complete. The events specified in event_wait_list act as synchronization points. The context associated with events in
event_wait_list and command_queue must be the same.Returns an event object that identifies this particular command and can be used to query or queue a wait for this particular command to complete.
event)event can be NULL in which case it will not be possible for the application to query the status of this command or queue a wait for this command to
complete. If the event_wait_list and the event arguments are not NULL, the event argument should not refer to an element of the
event_wait_list array.Enqueues a command to read from an image or image array object to host memory. | |||||||||
| public static int | clEnqueueReadImage(long command_queue, long image, boolean blocking_read, PointerBuffer origin, PointerBuffer region, long row_pitch, long slice_pitch, short[] ptr, PointerBuffer event_wait_list, PointerBuffer event)
Array version of: | |||||||||
| public static int | clEnqueueReadImage(long command_queue, long image, boolean blocking_read, PointerBuffer origin, PointerBuffer region, long row_pitch, long slice_pitch, int[] ptr, PointerBuffer event_wait_list, PointerBuffer event)
Array version of: | |||||||||
| public static int | clEnqueueReadImage(long command_queue, long image, boolean blocking_read, PointerBuffer origin, PointerBuffer region, long row_pitch, long slice_pitch, float[] ptr, PointerBuffer event_wait_list, PointerBuffer event)
Array version of: | |||||||||
| public static int | clEnqueueReadImage(long command_queue, long image, boolean blocking_read, PointerBuffer origin, PointerBuffer region, long row_pitch, long slice_pitch, double[] ptr, PointerBuffer event_wait_list, PointerBuffer event)
Array version of: | |||||||||
| public static int | Returns: SUCCESS if the kernel execution was successfully queued. Otherwise, see EnqueueNDRangeKernel.a valid command-queue. The kernel will be queued for execution on the device associated with command_queue, long command_queue.a valid kernel object. The OpenCL context associated with kernel, PointerBuffer kernel and command_queue must be the same.a list of events that need to complete before this particular command can be executed. If event_wait_list, PointerBuffer event_wait_list is NULL, then this particular command
does not wait on any event to complete. The events specified in event_wait_list act as synchronization points. The context associated with events in
event_wait_list and command_queue must be the same.Returns an event object that identifies this particular command and can be used to query or queue a wait for this particular command to complete.
event)event can be NULL in which case it will not be possible for the application to query the status of this command or queue a wait for this command to
complete. If the event_wait_list and the event arguments are not NULL, the event argument should not refer to an element of the
event_wait_list array.Enqueues a command to execute a kernel on a device. | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
a valid command-queue command_queue, long a valid memory object. The OpenCL context associated with memobj, ByteBuffer mapped_ptr, PointerBuffer command_queue and memobj must be the same.a list of events that need to complete before this particular command can be executed. If event_wait_list, PointerBuffer event_wait_list is NULL, then this particular command
does not wait on any event to complete. The events specified in event_wait_list act as synchronization points. The context associated with events in
event_wait_list and command_queue must be the same.Returns an event object that identifies this particular command and can be used to query or queue a wait for this particular command to complete.
event)event can be NULL in which case it will not be possible for the application to query the status of this command or queue a wait for this command to
complete. If the event_wait_list and the event arguments are not NULL, the event argument should not refer to an element of the
event_wait_list array.Enqueues a command to unmap a previously mapped region of a memory object. | |||||||||
| public static int | Returns: SUCCESS if the function was successfully executed. Otherwise, it returns one of the following errors:
the command-queue command_queue, PointerBuffer the list of events event_list)Enqueues a wait for a specific event or a list of events to complete before any future commands queued in the command-queue are executed. | |||||||||
| public static int | Returns: SUCCESS if the function was successfully executed. Otherwise, it returns one of the following errors:
the command-queue command_queue, long event)Enqueues a wait for a specific event or a list of events to complete before any future commands queued in the command-queue are executed. | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the command-queue in which the write command will be queued. command_queue, long command_queue and buffer must be created with the same OpenCL context.a valid buffer object buffer, boolean indicates if the write operation is blocking or non-blocking
blocking_write, long If If the offset in bytes in the buffer object to write to offset, ByteBuffer the pointer to buffer in host memory where data is to be written from ptr, PointerBuffer a list of events that need to complete before this particular command can be executed. If event_wait_list, PointerBuffer event_wait_list is NULL, then this particular command
does not wait on any event to complete. The events specified in event_wait_list act as synchronization points. The context associated with events in
event_wait_list and command_queue must be the same.Returns an event object that identifies this particular command and can be used to query or queue a wait for this particular command to complete.
event)event can be NULL in which case it will not be possible for the application to query the status of this command or queue a wait for this command to
complete. If the event_wait_list and the event arguments are not NULL, the event argument should not refer to an element of the
event_wait_list array.Enqueues a command to write to a buffer object from host memory. | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the command-queue in which the write command will be queued. command_queue, long command_queue and buffer must be created with the same OpenCL context.a valid buffer object buffer, boolean indicates if the write operation is blocking or non-blocking
blocking_write, long If If the offset in bytes in the buffer object to write to offset, ShortBuffer the pointer to buffer in host memory where data is to be written from ptr, PointerBuffer a list of events that need to complete before this particular command can be executed. If event_wait_list, PointerBuffer event_wait_list is NULL, then this particular command
does not wait on any event to complete. The events specified in event_wait_list act as synchronization points. The context associated with events in
event_wait_list and command_queue must be the same.Returns an event object that identifies this particular command and can be used to query or queue a wait for this particular command to complete.
event)event can be NULL in which case it will not be possible for the application to query the status of this command or queue a wait for this command to
complete. If the event_wait_list and the event arguments are not NULL, the event argument should not refer to an element of the
event_wait_list array.Enqueues a command to write to a buffer object from host memory. | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the command-queue in which the write command will be queued. command_queue, long command_queue and buffer must be created with the same OpenCL context.a valid buffer object buffer, boolean indicates if the write operation is blocking or non-blocking
blocking_write, long If If the offset in bytes in the buffer object to write to offset, IntBuffer the pointer to buffer in host memory where data is to be written from ptr, PointerBuffer a list of events that need to complete before this particular command can be executed. If event_wait_list, PointerBuffer event_wait_list is NULL, then this particular command
does not wait on any event to complete. The events specified in event_wait_list act as synchronization points. The context associated with events in
event_wait_list and command_queue must be the same.Returns an event object that identifies this particular command and can be used to query or queue a wait for this particular command to complete.
event)event can be NULL in which case it will not be possible for the application to query the status of this command or queue a wait for this command to
complete. If the event_wait_list and the event arguments are not NULL, the event argument should not refer to an element of the
event_wait_list array.Enqueues a command to write to a buffer object from host memory. | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the command-queue in which the write command will be queued. command_queue, long command_queue and buffer must be created with the same OpenCL context.a valid buffer object buffer, boolean indicates if the write operation is blocking or non-blocking
blocking_write, long If If the offset in bytes in the buffer object to write to offset, FloatBuffer the pointer to buffer in host memory where data is to be written from ptr, PointerBuffer a list of events that need to complete before this particular command can be executed. If event_wait_list, PointerBuffer event_wait_list is NULL, then this particular command
does not wait on any event to complete. The events specified in event_wait_list act as synchronization points. The context associated with events in
event_wait_list and command_queue must be the same.Returns an event object that identifies this particular command and can be used to query or queue a wait for this particular command to complete.
event)event can be NULL in which case it will not be possible for the application to query the status of this command or queue a wait for this command to
complete. If the event_wait_list and the event arguments are not NULL, the event argument should not refer to an element of the
event_wait_list array.Enqueues a command to write to a buffer object from host memory. | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the command-queue in which the write command will be queued. command_queue, long command_queue and buffer must be created with the same OpenCL context.a valid buffer object buffer, boolean indicates if the write operation is blocking or non-blocking
blocking_write, long If If the offset in bytes in the buffer object to write to offset, DoubleBuffer the pointer to buffer in host memory where data is to be written from ptr, PointerBuffer a list of events that need to complete before this particular command can be executed. If event_wait_list, PointerBuffer event_wait_list is NULL, then this particular command
does not wait on any event to complete. The events specified in event_wait_list act as synchronization points. The context associated with events in
event_wait_list and command_queue must be the same.Returns an event object that identifies this particular command and can be used to query or queue a wait for this particular command to complete.
event)event can be NULL in which case it will not be possible for the application to query the status of this command or queue a wait for this command to
complete. If the event_wait_list and the event arguments are not NULL, the event argument should not refer to an element of the
event_wait_list array.Enqueues a command to write to a buffer object from host memory. | |||||||||
| public static int | clEnqueueWriteBuffer(long command_queue, long buffer, boolean blocking_write, long offset, short[] ptr, PointerBuffer event_wait_list, PointerBuffer event)
Array version of: | |||||||||
| public static int | clEnqueueWriteBuffer(long command_queue, long buffer, boolean blocking_write, long offset, int[] ptr, PointerBuffer event_wait_list, PointerBuffer event)
Array version of: | |||||||||
| public static int | clEnqueueWriteBuffer(long command_queue, long buffer, boolean blocking_write, long offset, float[] ptr, PointerBuffer event_wait_list, PointerBuffer event)
Array version of: | |||||||||
| public static int | clEnqueueWriteBuffer(long command_queue, long buffer, boolean blocking_write, long offset, double[] ptr, PointerBuffer event_wait_list, PointerBuffer event)
Array version of: | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the command-queue in which the write command will be queued. command_queue, long command_queue and image must be created with the same OpenCL context.a valid image or image array object image, boolean indicates if the read operation is blocking or non-blocking.
blocking_write, PointerBuffer If If defines the origin, PointerBuffer (x, y, z) offset in pixels in the 1D, 2D or 3D image, the (x, y) offset and the image index in the 2D image array or the
(x) offset and the image index in the 1D image array. If image is a 2D image object, origin[2] must be 0. If image
is a 1D image or 1D image buffer object, origin[1] and origin[2] must be 0. If image is a 1D image array object,
origin[2] must be 0. If image is a 1D image array object, origin[1] describes the image index in the 1D image array. If
image is a 2D image array object, origin[2] describes the image index in the 2D image array.defines the region, long (width, height, depth) in pixels of the 1D, 2D or 3D rectangle, the (width, height) in pixels of the 2D rectangle and
the number of images of a 2D image array or the (width) in pixels of the 1D rectangle and the number of images of a 1D image array. If
image is a 2D image object, region[2] must be 1. If image is a 1D image or 1D image buffer object, region[1] and
region[2] must be 1. If image is a 1D image array object, region[2] must be 1. The values in region cannot be 0.the length of each row in bytes. This value must be greater than or equal to the input_row_pitch, long element size in bytes * width. If input_row_pitch is set
to 0, the appropriate row pitch is calculated based on the size of each element in bytes multiplied by width.the size in bytes of the 2D slice of the 3D region of a 3D image or each image of a 1D or 2D image array being written. This must be 0 if input_slice_pitch, ByteBuffer image
is a 1D or 2D image. This value must be greater than or equal to input_row_pitch * height. If input_slice_pitch is set to 0, the appropriate
slice pitch is calculated based on the input_row_pitch * height.the pointer to a buffer in host memory where image data is to be written from ptr, PointerBuffer a list of events that need to complete before this particular command can be executed. If event_wait_list, PointerBuffer event_wait_list is NULL, then this particular command
does not wait on any event to complete. The events specified in event_wait_list act as synchronization points. The context associated with events in
event_wait_list and command_queue must be the same.Returns an event object that identifies this particular command and can be used to query or queue a wait for this particular command to complete.
event)event can be NULL in which case it will not be possible for the application to query the status of this command or queue a wait for this command to
complete. If the event_wait_list and the event arguments are not NULL, the event argument should not refer to an element of the
event_wait_list array.Enqueues a command to write to an image or image array object from host memory. | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the command-queue in which the write command will be queued. command_queue, long command_queue and image must be created with the same OpenCL context.a valid image or image array object image, boolean indicates if the read operation is blocking or non-blocking.
blocking_write, PointerBuffer If If defines the origin, PointerBuffer (x, y, z) offset in pixels in the 1D, 2D or 3D image, the (x, y) offset and the image index in the 2D image array or the
(x) offset and the image index in the 1D image array. If image is a 2D image object, origin[2] must be 0. If image
is a 1D image or 1D image buffer object, origin[1] and origin[2] must be 0. If image is a 1D image array object,
origin[2] must be 0. If image is a 1D image array object, origin[1] describes the image index in the 1D image array. If
image is a 2D image array object, origin[2] describes the image index in the 2D image array.defines the region, long (width, height, depth) in pixels of the 1D, 2D or 3D rectangle, the (width, height) in pixels of the 2D rectangle and
the number of images of a 2D image array or the (width) in pixels of the 1D rectangle and the number of images of a 1D image array. If
image is a 2D image object, region[2] must be 1. If image is a 1D image or 1D image buffer object, region[1] and
region[2] must be 1. If image is a 1D image array object, region[2] must be 1. The values in region cannot be 0.the length of each row in bytes. This value must be greater than or equal to the input_row_pitch, long element size in bytes * width. If input_row_pitch is set
to 0, the appropriate row pitch is calculated based on the size of each element in bytes multiplied by width.the size in bytes of the 2D slice of the 3D region of a 3D image or each image of a 1D or 2D image array being written. This must be 0 if input_slice_pitch, ShortBuffer image
is a 1D or 2D image. This value must be greater than or equal to input_row_pitch * height. If input_slice_pitch is set to 0, the appropriate
slice pitch is calculated based on the input_row_pitch * height.the pointer to a buffer in host memory where image data is to be written from ptr, PointerBuffer a list of events that need to complete before this particular command can be executed. If event_wait_list, PointerBuffer event_wait_list is NULL, then this particular command
does not wait on any event to complete. The events specified in event_wait_list act as synchronization points. The context associated with events in
event_wait_list and command_queue must be the same.Returns an event object that identifies this particular command and can be used to query or queue a wait for this particular command to complete.
event)event can be NULL in which case it will not be possible for the application to query the status of this command or queue a wait for this command to
complete. If the event_wait_list and the event arguments are not NULL, the event argument should not refer to an element of the
event_wait_list array.Enqueues a command to write to an image or image array object from host memory. | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the command-queue in which the write command will be queued. command_queue, long command_queue and image must be created with the same OpenCL context.a valid image or image array object image, boolean indicates if the read operation is blocking or non-blocking.
blocking_write, PointerBuffer If If defines the origin, PointerBuffer (x, y, z) offset in pixels in the 1D, 2D or 3D image, the (x, y) offset and the image index in the 2D image array or the
(x) offset and the image index in the 1D image array. If image is a 2D image object, origin[2] must be 0. If image
is a 1D image or 1D image buffer object, origin[1] and origin[2] must be 0. If image is a 1D image array object,
origin[2] must be 0. If image is a 1D image array object, origin[1] describes the image index in the 1D image array. If
image is a 2D image array object, origin[2] describes the image index in the 2D image array.defines the region, long (width, height, depth) in pixels of the 1D, 2D or 3D rectangle, the (width, height) in pixels of the 2D rectangle and
the number of images of a 2D image array or the (width) in pixels of the 1D rectangle and the number of images of a 1D image array. If
image is a 2D image object, region[2] must be 1. If image is a 1D image or 1D image buffer object, region[1] and
region[2] must be 1. If image is a 1D image array object, region[2] must be 1. The values in region cannot be 0.the length of each row in bytes. This value must be greater than or equal to the input_row_pitch, long element size in bytes * width. If input_row_pitch is set
to 0, the appropriate row pitch is calculated based on the size of each element in bytes multiplied by width.the size in bytes of the 2D slice of the 3D region of a 3D image or each image of a 1D or 2D image array being written. This must be 0 if input_slice_pitch, IntBuffer image
is a 1D or 2D image. This value must be greater than or equal to input_row_pitch * height. If input_slice_pitch is set to 0, the appropriate
slice pitch is calculated based on the input_row_pitch * height.the pointer to a buffer in host memory where image data is to be written from ptr, PointerBuffer a list of events that need to complete before this particular command can be executed. If event_wait_list, PointerBuffer event_wait_list is NULL, then this particular command
does not wait on any event to complete. The events specified in event_wait_list act as synchronization points. The context associated with events in
event_wait_list and command_queue must be the same.Returns an event object that identifies this particular command and can be used to query or queue a wait for this particular command to complete.
event)event can be NULL in which case it will not be possible for the application to query the status of this command or queue a wait for this command to
complete. If the event_wait_list and the event arguments are not NULL, the event argument should not refer to an element of the
event_wait_list array.Enqueues a command to write to an image or image array object from host memory. | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the command-queue in which the write command will be queued. command_queue, long command_queue and image must be created with the same OpenCL context.a valid image or image array object image, boolean indicates if the read operation is blocking or non-blocking.
blocking_write, PointerBuffer If If defines the origin, PointerBuffer (x, y, z) offset in pixels in the 1D, 2D or 3D image, the (x, y) offset and the image index in the 2D image array or the
(x) offset and the image index in the 1D image array. If image is a 2D image object, origin[2] must be 0. If image
is a 1D image or 1D image buffer object, origin[1] and origin[2] must be 0. If image is a 1D image array object,
origin[2] must be 0. If image is a 1D image array object, origin[1] describes the image index in the 1D image array. If
image is a 2D image array object, origin[2] describes the image index in the 2D image array.defines the region, long (width, height, depth) in pixels of the 1D, 2D or 3D rectangle, the (width, height) in pixels of the 2D rectangle and
the number of images of a 2D image array or the (width) in pixels of the 1D rectangle and the number of images of a 1D image array. If
image is a 2D image object, region[2] must be 1. If image is a 1D image or 1D image buffer object, region[1] and
region[2] must be 1. If image is a 1D image array object, region[2] must be 1. The values in region cannot be 0.the length of each row in bytes. This value must be greater than or equal to the input_row_pitch, long element size in bytes * width. If input_row_pitch is set
to 0, the appropriate row pitch is calculated based on the size of each element in bytes multiplied by width.the size in bytes of the 2D slice of the 3D region of a 3D image or each image of a 1D or 2D image array being written. This must be 0 if input_slice_pitch, FloatBuffer image
is a 1D or 2D image. This value must be greater than or equal to input_row_pitch * height. If input_slice_pitch is set to 0, the appropriate
slice pitch is calculated based on the input_row_pitch * height.the pointer to a buffer in host memory where image data is to be written from ptr, PointerBuffer a list of events that need to complete before this particular command can be executed. If event_wait_list, PointerBuffer event_wait_list is NULL, then this particular command
does not wait on any event to complete. The events specified in event_wait_list act as synchronization points. The context associated with events in
event_wait_list and command_queue must be the same.Returns an event object that identifies this particular command and can be used to query or queue a wait for this particular command to complete.
event)event can be NULL in which case it will not be possible for the application to query the status of this command or queue a wait for this command to
complete. If the event_wait_list and the event arguments are not NULL, the event argument should not refer to an element of the
event_wait_list array.Enqueues a command to write to an image or image array object from host memory. | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the command-queue in which the write command will be queued. command_queue, long command_queue and image must be created with the same OpenCL context.a valid image or image array object image, boolean indicates if the read operation is blocking or non-blocking.
blocking_write, PointerBuffer If If defines the origin, PointerBuffer (x, y, z) offset in pixels in the 1D, 2D or 3D image, the (x, y) offset and the image index in the 2D image array or the
(x) offset and the image index in the 1D image array. If image is a 2D image object, origin[2] must be 0. If image
is a 1D image or 1D image buffer object, origin[1] and origin[2] must be 0. If image is a 1D image array object,
origin[2] must be 0. If image is a 1D image array object, origin[1] describes the image index in the 1D image array. If
image is a 2D image array object, origin[2] describes the image index in the 2D image array.defines the region, long (width, height, depth) in pixels of the 1D, 2D or 3D rectangle, the (width, height) in pixels of the 2D rectangle and
the number of images of a 2D image array or the (width) in pixels of the 1D rectangle and the number of images of a 1D image array. If
image is a 2D image object, region[2] must be 1. If image is a 1D image or 1D image buffer object, region[1] and
region[2] must be 1. If image is a 1D image array object, region[2] must be 1. The values in region cannot be 0.the length of each row in bytes. This value must be greater than or equal to the input_row_pitch, long element size in bytes * width. If input_row_pitch is set
to 0, the appropriate row pitch is calculated based on the size of each element in bytes multiplied by width.the size in bytes of the 2D slice of the 3D region of a 3D image or each image of a 1D or 2D image array being written. This must be 0 if input_slice_pitch, DoubleBuffer image
is a 1D or 2D image. This value must be greater than or equal to input_row_pitch * height. If input_slice_pitch is set to 0, the appropriate
slice pitch is calculated based on the input_row_pitch * height.the pointer to a buffer in host memory where image data is to be written from ptr, PointerBuffer a list of events that need to complete before this particular command can be executed. If event_wait_list, PointerBuffer event_wait_list is NULL, then this particular command
does not wait on any event to complete. The events specified in event_wait_list act as synchronization points. The context associated with events in
event_wait_list and command_queue must be the same.Returns an event object that identifies this particular command and can be used to query or queue a wait for this particular command to complete.
event)event can be NULL in which case it will not be possible for the application to query the status of this command or queue a wait for this command to
complete. If the event_wait_list and the event arguments are not NULL, the event argument should not refer to an element of the
event_wait_list array.Enqueues a command to write to an image or image array object from host memory. | |||||||||
| public static int | clEnqueueWriteImage(long command_queue, long image, boolean blocking_write, PointerBuffer origin, PointerBuffer region, long input_row_pitch, long input_slice_pitch, short[] ptr, PointerBuffer event_wait_list, PointerBuffer event)
Array version of: | |||||||||
| public static int | clEnqueueWriteImage(long command_queue, long image, boolean blocking_write, PointerBuffer origin, PointerBuffer region, long input_row_pitch, long input_slice_pitch, int[] ptr, PointerBuffer event_wait_list, PointerBuffer event)
Array version of: | |||||||||
| public static int | clEnqueueWriteImage(long command_queue, long image, boolean blocking_write, PointerBuffer origin, PointerBuffer region, long input_row_pitch, long input_slice_pitch, float[] ptr, PointerBuffer event_wait_list, PointerBuffer event)
Array version of: | |||||||||
| public static int | clEnqueueWriteImage(long command_queue, long image, boolean blocking_write, PointerBuffer origin, PointerBuffer region, long input_row_pitch, long input_slice_pitch, double[] ptr, PointerBuffer event_wait_list, PointerBuffer event)
Array version of: | |||||||||
| public static int | clFinish(long
the command-queue command_queue)Blocks until all previously queued OpenCL commands in | |||||||||
| public static int | Returns: SUCCESS if the function call was executed successfully. Otherwise, it returns one of the following errors:
the command-queue command_queue)Issues all previously queued OpenCL commands in | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the command-queue being queried command_queue, int the information to query. One of: param_name, ByteBuffer
a pointer to memory where the appropriate result being queried is returned. If param_value, PointerBuffer param_value is NULL, it is ignored.the actual size in bytes of data being queried by param_value_size_ret)param_value. If NULL, it is ignored.Queries information about a command-queue. | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the command-queue being queried command_queue, int the information to query. One of: param_name, IntBuffer
a pointer to memory where the appropriate result being queried is returned. If param_value, PointerBuffer param_value is NULL, it is ignored.the actual size in bytes of data being queried by param_value_size_ret)param_value. If NULL, it is ignored.Queries information about a command-queue. | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the command-queue being queried command_queue, int the information to query. One of: param_name, LongBuffer
a pointer to memory where the appropriate result being queried is returned. If param_value, PointerBuffer param_value is NULL, it is ignored.the actual size in bytes of data being queried by param_value_size_ret)param_value. If NULL, it is ignored.Queries information about a command-queue. | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the command-queue being queried command_queue, int the information to query. One of: param_name, PointerBuffer
a pointer to memory where the appropriate result being queried is returned. If param_value, PointerBuffer param_value is NULL, it is ignored.the actual size in bytes of data being queried by param_value_size_ret)param_value. If NULL, it is ignored.Queries information about a command-queue. | |||||||||
| public static int | clGetCommandQueueInfo(long command_queue, int param_name, int[] param_value, PointerBuffer param_value_size_ret)
Array version of: | |||||||||
| public static int | clGetCommandQueueInfo(long command_queue, int param_name, long[] param_value, PointerBuffer param_value_size_ret)
Array version of: | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the OpenCL context being queried context, int an enumeration constant that specifies the information to query. One of: param_name, ByteBuffer
a pointer to memory where the appropriate result being queried is returned. If param_value, PointerBuffer param_value is NULL, it is ignored.the actual size in bytes of data being queried by param_value_size_ret)param_value. If NULL, it is ignored.Queries information about a context. | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the OpenCL context being queried context, int an enumeration constant that specifies the information to query. One of: param_name, IntBuffer
a pointer to memory where the appropriate result being queried is returned. If param_value, PointerBuffer param_value is NULL, it is ignored.the actual size in bytes of data being queried by param_value_size_ret)param_value. If NULL, it is ignored.Queries information about a context. | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the OpenCL context being queried context, int an enumeration constant that specifies the information to query. One of: param_name, PointerBuffer
a pointer to memory where the appropriate result being queried is returned. If param_value, PointerBuffer param_value is NULL, it is ignored.the actual size in bytes of data being queried by param_value_size_ret)param_value. If NULL, it is ignored.Queries information about a context. | |||||||||
| public static int | clGetContextInfo(long context, int param_name, int[] param_value, PointerBuffer param_value_size_ret)
Array version of: | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the platform to query platform, long a bitfield that identifies the type of OpenCL device. The device_type, PointerBuffer device_type can be used to query specific OpenCL devices or all OpenCL devices
available. One or more of:
returns a list of OpenCL devices found. The devices, IntBuffer cl_device_id values returned in devices can be used to identify a specific OpenCL
device. If devices argument is NULL, this argument is ignored. The number of OpenCL devices returned is the minimum of the value specified
by num_entries or the number of OpenCL devices whose type matches device_type.returns the number of OpenCL devices available that match num_devices)device_type. If num_devices is NULL, this argument is ignored.Obtains the list of devices available on a platform. | |||||||||
| public static int | clGetDeviceIDs(long platform, long device_type, PointerBuffer devices, int[] num_devices)
Array version of: | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the device to query device, int an enumeration constant tha identifies the device information being queried. One of: param_name, ByteBuffer a pointer to memory where the appropriate result being queried is returned. If param_value, PointerBuffer param_value is NULL, it is ignored.the actual size in bytes of data being queried by param_value_size_ret)param_value. If NULL, it is ignored.Returns specific information about an OpenCL device. | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the device to query device, int an enumeration constant tha identifies the device information being queried. One of: param_name, IntBuffer a pointer to memory where the appropriate result being queried is returned. If param_value, PointerBuffer param_value is NULL, it is ignored.the actual size in bytes of data being queried by param_value_size_ret)param_value. If NULL, it is ignored.Returns specific information about an OpenCL device. | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the device to query device, int an enumeration constant tha identifies the device information being queried. One of: param_name, LongBuffer a pointer to memory where the appropriate result being queried is returned. If param_value, PointerBuffer param_value is NULL, it is ignored.the actual size in bytes of data being queried by param_value_size_ret)param_value. If NULL, it is ignored.Returns specific information about an OpenCL device. | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the device to query device, int an enumeration constant tha identifies the device information being queried. One of: param_name, PointerBuffer a pointer to memory where the appropriate result being queried is returned. If param_value, PointerBuffer param_value is NULL, it is ignored.the actual size in bytes of data being queried by param_value_size_ret)param_value. If NULL, it is ignored.Returns specific information about an OpenCL device. | |||||||||
| public static int | clGetDeviceInfo(long device, int param_name, int[] param_value, PointerBuffer param_value_size_ret)
Array version of: | |||||||||
| public static int | clGetDeviceInfo(long device, int param_name, long[] param_value, PointerBuffer param_value_size_ret)
Array version of: | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the event object being queried event, int the information to query. One of: param_name, ByteBuffer
a pointer to memory where the appropriate result being queried is returned. If param_value, PointerBuffer param_value is NULL, it is ignored.the actual size in bytes of data being queried by param_value_size_ret)param_value. If NULL, it is ignored.Returns information about an event object. | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the event object being queried event, int the information to query. One of: param_name, IntBuffer
a pointer to memory where the appropriate result being queried is returned. If param_value, PointerBuffer param_value is NULL, it is ignored.the actual size in bytes of data being queried by param_value_size_ret)param_value. If NULL, it is ignored.Returns information about an event object. | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the event object being queried event, int the information to query. One of: param_name, PointerBuffer
a pointer to memory where the appropriate result being queried is returned. If param_value, PointerBuffer param_value is NULL, it is ignored.the actual size in bytes of data being queried by param_value_size_ret)param_value. If NULL, it is ignored.Returns information about an event object. | |||||||||
| public static int | clGetEventInfo(long event, int param_name, int[] param_value, PointerBuffer param_value_size_ret)
Array version of: | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully and the profiling information has been recorded. Otherwise, it returns one of the following errors:
the event object event, int the profiling data to query. One of: param_name, ByteBuffer
a pointer to memory where the appropriate result being queried is returned. If param_value, PointerBuffer param_value is NULL, it is ignored.the actual size in bytes of data being queried by param_value_size_ret)param_value. If NULL, it is ignored.Returns profiling information for the command associated with | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully and the profiling information has been recorded. Otherwise, it returns one of the following errors:
the event object event, int the profiling data to query. One of: param_name, LongBuffer
a pointer to memory where the appropriate result being queried is returned. If param_value, PointerBuffer param_value is NULL, it is ignored.the actual size in bytes of data being queried by param_value_size_ret)param_value. If NULL, it is ignored.Returns profiling information for the command associated with | |||||||||
| public static int | clGetEventProfilingInfo(long event, int param_name, long[] param_value, PointerBuffer param_value_size_ret)
Array version of: | |||||||||
| public static long | Returns: the extension function addressthe extension function name funcname)Returns the address of the extension function named by | |||||||||
| public static long | Returns: the extension function addressthe extension function name funcname)Returns the address of the extension function named by | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the image object being queried image, int param_name, ByteBuffer a pointer to memory where the appropriate result being queried is returned. If param_value, PointerBuffer param_value is NULL, it is ignored.the actual size in bytes of data being queried by param_value_size_ret)param_value. If NULL, it is ignored.Returns information specific to an image object. | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the image object being queried image, int param_name, IntBuffer a pointer to memory where the appropriate result being queried is returned. If param_value, PointerBuffer param_value is NULL, it is ignored.the actual size in bytes of data being queried by param_value_size_ret)param_value. If NULL, it is ignored.Returns information specific to an image object. | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the image object being queried image, int param_name, PointerBuffer a pointer to memory where the appropriate result being queried is returned. If param_value, PointerBuffer param_value is NULL, it is ignored.the actual size in bytes of data being queried by param_value_size_ret)param_value. If NULL, it is ignored.Returns information specific to an image object. | |||||||||
| public static int | clGetImageInfo(long image, int param_name, int[] param_value, PointerBuffer param_value_size_ret)
Array version of: | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the kernel object being queried kernel, int the information to query. One of: param_name, ByteBuffer
a pointer to memory where the appropriate result being queried is returned. If param_value, PointerBuffer param_value is NULL, it is ignored.the actual size in bytes of data being queried by param_value_size_ret)param_value. If NULL, it is ignored.Returns information about a kernel object. | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the kernel object being queried kernel, int the information to query. One of: param_name, IntBuffer
a pointer to memory where the appropriate result being queried is returned. If param_value, PointerBuffer param_value is NULL, it is ignored.the actual size in bytes of data being queried by param_value_size_ret)param_value. If NULL, it is ignored.Returns information about a kernel object. | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the kernel object being queried kernel, int the information to query. One of: param_name, PointerBuffer
a pointer to memory where the appropriate result being queried is returned. If param_value, PointerBuffer param_value is NULL, it is ignored.the actual size in bytes of data being queried by param_value_size_ret)param_value. If NULL, it is ignored.Returns information about a kernel object. | |||||||||
| public static int | clGetKernelInfo(long kernel, int param_name, int[] param_value, PointerBuffer param_value_size_ret)
Array version of: | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the kernel object being queried kernel, long identifies a specific device in the list of devices associated with device, int param_name, ByteBuffer kernel. The list of devices is the list of devices in the OpenCL context
that is associated with kernel. If the list of devices associated with kernel is a single device, device can be a NULL value.a pointer to memory where the appropriate result being queried is returned. If param_value, PointerBuffer param_value is NULL, it is ignored.the actual size in bytes of data being queried by param_value_size_ret)param_value. If NULL, it is ignored.Returns information about the kernel object that may be specific to a device. | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the kernel object being queried kernel, long identifies a specific device in the list of devices associated with device, int param_name, IntBuffer kernel. The list of devices is the list of devices in the OpenCL context
that is associated with kernel. If the list of devices associated with kernel is a single device, device can be a NULL value.a pointer to memory where the appropriate result being queried is returned. If param_value, PointerBuffer param_value is NULL, it is ignored.the actual size in bytes of data being queried by param_value_size_ret)param_value. If NULL, it is ignored.Returns information about the kernel object that may be specific to a device. | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the kernel object being queried kernel, long identifies a specific device in the list of devices associated with device, int param_name, LongBuffer kernel. The list of devices is the list of devices in the OpenCL context
that is associated with kernel. If the list of devices associated with kernel is a single device, device can be a NULL value.a pointer to memory where the appropriate result being queried is returned. If param_value, PointerBuffer param_value is NULL, it is ignored.the actual size in bytes of data being queried by param_value_size_ret)param_value. If NULL, it is ignored.Returns information about the kernel object that may be specific to a device. | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the kernel object being queried kernel, long identifies a specific device in the list of devices associated with device, int param_name, PointerBuffer kernel. The list of devices is the list of devices in the OpenCL context
that is associated with kernel. If the list of devices associated with kernel is a single device, device can be a NULL value.a pointer to memory where the appropriate result being queried is returned. If param_value, PointerBuffer param_value is NULL, it is ignored.the actual size in bytes of data being queried by param_value_size_ret)param_value. If NULL, it is ignored.Returns information about the kernel object that may be specific to a device. | |||||||||
| public static int | clGetKernelWorkGroupInfo(long kernel, long device, int param_name, int[] param_value, PointerBuffer param_value_size_ret)
Array version of: | |||||||||
| public static int | clGetKernelWorkGroupInfo(long kernel, long device, int param_name, long[] param_value, PointerBuffer param_value_size_ret)
Array version of: | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the memory object being queried memobj, int param_name, ByteBuffer a pointer to memory where the appropriate result being queried is returned. If param_value, PointerBuffer param_value is NULL, it is ignored.the actual size in bytes of data being queried by param_value_size_ret)param_value. If NULL, it is ignored.Returns information that is common to all memory objects (buffer and image objects). | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the memory object being queried memobj, int param_name, IntBuffer a pointer to memory where the appropriate result being queried is returned. If param_value, PointerBuffer param_value is NULL, it is ignored.the actual size in bytes of data being queried by param_value_size_ret)param_value. If NULL, it is ignored.Returns information that is common to all memory objects (buffer and image objects). | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the memory object being queried memobj, int param_name, LongBuffer a pointer to memory where the appropriate result being queried is returned. If param_value, PointerBuffer param_value is NULL, it is ignored.the actual size in bytes of data being queried by param_value_size_ret)param_value. If NULL, it is ignored.Returns information that is common to all memory objects (buffer and image objects). | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the memory object being queried memobj, int param_name, PointerBuffer a pointer to memory where the appropriate result being queried is returned. If param_value, PointerBuffer param_value is NULL, it is ignored.the actual size in bytes of data being queried by param_value_size_ret)param_value. If NULL, it is ignored.Returns information that is common to all memory objects (buffer and image objects). | |||||||||
| public static int | clGetMemObjectInfo(long memobj, int param_name, int[] param_value, PointerBuffer param_value_size_ret)
Array version of: | |||||||||
| public static int | clGetMemObjectInfo(long memobj, int param_name, long[] param_value, PointerBuffer param_value_size_ret)
Array version of: | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
returns a list of OpenCL platforms found. The platforms, IntBuffer cl_platform_id values returned in platforms can be used to identify a specific OpenCL
platform. If platforms argument is NULL, this argument is ignored. The number of OpenCL platforms returned is the minimum of the value
specified by num_entries or the number of OpenCL platforms available.returns the number of OpenCL platforms available. If num_platforms)num_platforms is NULL, this argument is ignored.Obtains the list of available platforms. | |||||||||
| public static int | ||||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the platform to query platform, int the parameter to query. One of: param_name, ByteBuffer
the memory location where appropriate values for a given param_value, PointerBuffer param_name will be returnedthe actual size in bytes of data being queried by param_value_size_ret)param_value. If NULL, it is ignored.Returns information about the specified OpenCL platform. | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the platform to query platform, int the parameter to query. One of: param_name, LongBuffer
the memory location where appropriate values for a given param_value, PointerBuffer param_name will be returnedthe actual size in bytes of data being queried by param_value_size_ret)param_value. If NULL, it is ignored.Returns information about the specified OpenCL platform. | |||||||||
| public static int | clGetPlatformInfo(long platform, int param_name, long[] param_value, PointerBuffer param_value_size_ret)
Array version of: | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the program object being queried program, long the device for which build information is being queried. device, int device must be a valid device associated with program.the information to query. One of: param_name, ByteBuffer
a pointer to memory where the appropriate result being queried is returned. If param_value, PointerBuffer param_value is NULL, it is ignored.the actual size in bytes of data being queried by param_value_size_ret)param_value. If NULL, it is ignored.Returns build information for each device in the program object. | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the program object being queried program, long the device for which build information is being queried. device, int device must be a valid device associated with program.the information to query. One of: param_name, IntBuffer
a pointer to memory where the appropriate result being queried is returned. If param_value, PointerBuffer param_value is NULL, it is ignored.the actual size in bytes of data being queried by param_value_size_ret)param_value. If NULL, it is ignored.Returns build information for each device in the program object. | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the program object being queried program, long the device for which build information is being queried. device, int device must be a valid device associated with program.the information to query. One of: param_name, PointerBuffer
a pointer to memory where the appropriate result being queried is returned. If param_value, PointerBuffer param_value is NULL, it is ignored.the actual size in bytes of data being queried by param_value_size_ret)param_value. If NULL, it is ignored.Returns build information for each device in the program object. | |||||||||
| public static int | clGetProgramBuildInfo(long program, long device, int param_name, int[] param_value, PointerBuffer param_value_size_ret)
Array version of: | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the program object being queried program, int param_name, ByteBuffer a pointer to memory where the appropriate result being queried is returned. If param_value, PointerBuffer param_value is NULL, it is ignored.the actual size in bytes of data being queried by param_value_size_ret)param_value. If NULL, it is ignored.Returns information about a program object. | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the program object being queried program, int param_name, IntBuffer a pointer to memory where the appropriate result being queried is returned. If param_value, PointerBuffer param_value is NULL, it is ignored.the actual size in bytes of data being queried by param_value_size_ret)param_value. If NULL, it is ignored.Returns information about a program object. | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the program object being queried program, int param_name, PointerBuffer a pointer to memory where the appropriate result being queried is returned. If param_value, PointerBuffer param_value is NULL, it is ignored.the actual size in bytes of data being queried by param_value_size_ret)param_value. If NULL, it is ignored.Returns information about a program object. | |||||||||
| public static int | clGetProgramInfo(long program, int param_name, int[] param_value, PointerBuffer param_value_size_ret)
Array version of: | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the sampler being queried sampler, int param_name, ByteBuffer a pointer to memory where the appropriate result being queried is returned. If param_value, PointerBuffer param_value is NULL, it is ignored.the actual size in bytes of data being queried by param_value_size_ret)param_value. If NULL, it is ignored.Returns information about a sampler object. | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the sampler being queried sampler, int param_name, IntBuffer a pointer to memory where the appropriate result being queried is returned. If param_value, PointerBuffer param_value is NULL, it is ignored.the actual size in bytes of data being queried by param_value_size_ret)param_value. If NULL, it is ignored.Returns information about a sampler object. | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the sampler being queried sampler, int param_name, PointerBuffer a pointer to memory where the appropriate result being queried is returned. If param_value, PointerBuffer param_value is NULL, it is ignored.the actual size in bytes of data being queried by param_value_size_ret)param_value. If NULL, it is ignored.Returns information about a sampler object. | |||||||||
| public static int | clGetSamplerInfo(long sampler, int param_name, int[] param_value, PointerBuffer param_value_size_ret)
Array version of: | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
a valid OpenCL context on which the image object(s) will be created context, long a bit-field that is used to specify allocation and usage information about the image memory object being created. One of: flags, int image_type, CLImageFormat.
a pointer to a memory location where the list of supported image formats are returned. Each entry describes a image_formats,CLImageFormat structure
supported by the OpenCL implementation. If image_formats is NULL, it is ignored.the actual number of supported image formats for a specific context and values specified by num_image_formats)flags. If num_image_formats is NULL, it
is ignored.Can be used to get the list of image formats supported by an OpenCL implementation when the following information about an image memory object is specified:
| |||||||||
| public static int | clGetSupportedImageFormats(long context, long flags, int image_type, CLImageFormat.
Array version of: | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the command-queue to release command_queue)Decrements the | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the context to release context)Decrements the context reference count. | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the event to release event)Decrements the event reference count. | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the kernel to release kernel)Decrements the | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the memory object to release memobj)Decrements the | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the program object to release program)Decrements the | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the sample object to release sampler)Decrements the sampler reference count. | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the command-queue to retain command_queue)Increments the | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the context to retain context)Increments the context reference count. | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the event to retain event)Increments the event reference count. | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the kernel to retain kernel)Increments the | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the memory object to retain memobj)Increments the | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the program object to retain program)Increments the | |||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the sample object to retain sampler)Increments the sampler reference count. | |||||||||
| public static int | Returns: SUCCESS if the function was executed successfully. Otherwise, it returns one of the following errors:
a valid kernel object kernel, int the argument index. Arguments to the kernel are referred by indices that go from 0 for the leftmost argument to arg_index, long n - 1, where n is
the total number of arguments declared by a kernel.
For example, consider the following kernel:
Argument index values for image_filter will be 0 for Note A kernel object does not update the reference count for objects such as memory, sampler objects specified as argument values
by the size of the argument value. If the argument is a memory object, the size is the size of the buffer or image object type. For arguments declared
with the arg_size)__local qualifier, the size specified will be the size in bytes of the buffer that must be allocated for the __local
argument. If the argument is of type sampler_t, the arg_size value must be equal to sizeof(cl_sampler). For all other
arguments, the size will be the size of argument type.Set the argument value for a specific argument of a kernel. | |||||||||
| public static int | Returns: SUCCESS if the function was executed successfully. Otherwise, it returns one of the following errors:
a valid kernel object kernel, int the argument index. Arguments to the kernel are referred by indices that go from 0 for the leftmost argument to arg_index, ByteBuffer n - 1, where n is
the total number of arguments declared by a kernel.
For example, consider the following kernel:
Argument index values for image_filter will be 0 for Note A kernel object does not update the reference count for objects such as memory, sampler objects specified as argument values
by a pointer to data that should be used as the argument value for argument specified by arg_value)arg_index. The argument data pointed to by
arg_value is copied and the arg_value pointer can therefore be reused by the application after clSetKernelArg returns. The
argument value specified is the value used by all API calls that enqueue kernel (EnqueueNDRangeKernel and EnqueueTask) until
the argument value is changed by a call to clSetKernelArg for kernel.
If the argument is a memory object (buffer, image or image array), the If the argument is declared to be a pointer of a built-in scalar or vector type, or a user defined structure type in the global or constant address
space, the memory object specified as argument value must be a buffer object (or The memory object specified as argument value must be a 2D image object if the argument is declared to be of type For all other kernel arguments, the Set the argument value for a specific argument of a kernel. | |||||||||
| public static int | Returns: SUCCESS if the function was executed successfully. Otherwise, it returns one of the following errors:
a valid kernel object kernel, int the argument index. Arguments to the kernel are referred by indices that go from 0 for the leftmost argument to arg_index, ShortBuffer n - 1, where n is
the total number of arguments declared by a kernel.
For example, consider the following kernel:
Argument index values for image_filter will be 0 for Note A kernel object does not update the reference count for objects such as memory, sampler objects specified as argument values
by a pointer to data that should be used as the argument value for argument specified by arg_value)arg_index. The argument data pointed to by
arg_value is copied and the arg_value pointer can therefore be reused by the application after clSetKernelArg returns. The
argument value specified is the value used by all API calls that enqueue kernel (EnqueueNDRangeKernel and EnqueueTask) until
the argument value is changed by a call to clSetKernelArg for kernel.
If the argument is a memory object (buffer, image or image array), the If the argument is declared to be a pointer of a built-in scalar or vector type, or a user defined structure type in the global or constant address
space, the memory object specified as argument value must be a buffer object (or The memory object specified as argument value must be a 2D image object if the argument is declared to be of type For all other kernel arguments, the Set the argument value for a specific argument of a kernel. | |||||||||
| public static int | Returns: SUCCESS if the function was executed successfully. Otherwise, it returns one of the following errors:
a valid kernel object kernel, int the argument index. Arguments to the kernel are referred by indices that go from 0 for the leftmost argument to arg_index, IntBuffer n - 1, where n is
the total number of arguments declared by a kernel.
For example, consider the following kernel:
Argument index values for image_filter will be 0 for Note A kernel object does not update the reference count for objects such as memory, sampler objects specified as argument values
by a pointer to data that should be used as the argument value for argument specified by arg_value)arg_index. The argument data pointed to by
arg_value is copied and the arg_value pointer can therefore be reused by the application after clSetKernelArg returns. The
argument value specified is the value used by all API calls that enqueue kernel (EnqueueNDRangeKernel and EnqueueTask) until
the argument value is changed by a call to clSetKernelArg for kernel.
If the argument is a memory object (buffer, image or image array), the If the argument is declared to be a pointer of a built-in scalar or vector type, or a user defined structure type in the global or constant address
space, the memory object specified as argument value must be a buffer object (or The memory object specified as argument value must be a 2D image object if the argument is declared to be of type For all other kernel arguments, the Set the argument value for a specific argument of a kernel. | |||||||||
| public static int | Returns: SUCCESS if the function was executed successfully. Otherwise, it returns one of the following errors:
a valid kernel object kernel, int the argument index. Arguments to the kernel are referred by indices that go from 0 for the leftmost argument to arg_index, LongBuffer n - 1, where n is
the total number of arguments declared by a kernel.
For example, consider the following kernel:
Argument index values for image_filter will be 0 for Note A kernel object does not update the reference count for objects such as memory, sampler objects specified as argument values
by a pointer to data that should be used as the argument value for argument specified by arg_value)arg_index. The argument data pointed to by
arg_value is copied and the arg_value pointer can therefore be reused by the application after clSetKernelArg returns. The
argument value specified is the value used by all API calls that enqueue kernel (EnqueueNDRangeKernel and EnqueueTask) until
the argument value is changed by a call to clSetKernelArg for kernel.
If the argument is a memory object (buffer, image or image array), the If the argument is declared to be a pointer of a built-in scalar or vector type, or a user defined structure type in the global or constant address
space, the memory object specified as argument value must be a buffer object (or The memory object specified as argument value must be a 2D image object if the argument is declared to be of type For all other kernel arguments, the Set the argument value for a specific argument of a kernel. | |||||||||
| public static int | Returns: SUCCESS if the function was executed successfully. Otherwise, it returns one of the following errors:
a valid kernel object kernel, int the argument index. Arguments to the kernel are referred by indices that go from 0 for the leftmost argument to arg_index, FloatBuffer n - 1, where n is
the total number of arguments declared by a kernel.
For example, consider the following kernel:
Argument index values for image_filter will be 0 for Note A kernel object does not update the reference count for objects such as memory, sampler objects specified as argument values
by a pointer to data that should be used as the argument value for argument specified by arg_value)arg_index. The argument data pointed to by
arg_value is copied and the arg_value pointer can therefore be reused by the application after clSetKernelArg returns. The
argument value specified is the value used by all API calls that enqueue kernel (EnqueueNDRangeKernel and EnqueueTask) until
the argument value is changed by a call to clSetKernelArg for kernel.
If the argument is a memory object (buffer, image or image array), the If the argument is declared to be a pointer of a built-in scalar or vector type, or a user defined structure type in the global or constant address
space, the memory object specified as argument value must be a buffer object (or The memory object specified as argument value must be a 2D image object if the argument is declared to be of type For all other kernel arguments, the Set the argument value for a specific argument of a kernel. | |||||||||
| public static int | Returns: SUCCESS if the function was executed successfully. Otherwise, it returns one of the following errors:
a valid kernel object kernel, int the argument index. Arguments to the kernel are referred by indices that go from 0 for the leftmost argument to arg_index, DoubleBuffer n - 1, where n is
the total number of arguments declared by a kernel.
For example, consider the following kernel:
Argument index values for image_filter will be 0 for Note A kernel object does not update the reference count for objects such as memory, sampler objects specified as argument values
by a pointer to data that should be used as the argument value for argument specified by arg_value)arg_index. The argument data pointed to by
arg_value is copied and the arg_value pointer can therefore be reused by the application after clSetKernelArg returns. The
argument value specified is the value used by all API calls that enqueue kernel (EnqueueNDRangeKernel and EnqueueTask) until
the argument value is changed by a call to clSetKernelArg for kernel.
If the argument is a memory object (buffer, image or image array), the If the argument is declared to be a pointer of a built-in scalar or vector type, or a user defined structure type in the global or constant address
space, the memory object specified as argument value must be a buffer object (or The memory object specified as argument value must be a 2D image object if the argument is declared to be of type For all other kernel arguments, the Set the argument value for a specific argument of a kernel. | |||||||||
| public static int | Returns: SUCCESS if the function was executed successfully. Otherwise, it returns one of the following errors:
a valid kernel object kernel, int the argument index. Arguments to the kernel are referred by indices that go from 0 for the leftmost argument to arg_index, PointerBuffer n - 1, where n is
the total number of arguments declared by a kernel.
For example, consider the following kernel:
Argument index values for image_filter will be 0 for Note A kernel object does not update the reference count for objects such as memory, sampler objects specified as argument values
by a pointer to data that should be used as the argument value for argument specified by arg_value)arg_index. The argument data pointed to by
arg_value is copied and the arg_value pointer can therefore be reused by the application after clSetKernelArg returns. The
argument value specified is the value used by all API calls that enqueue kernel (EnqueueNDRangeKernel and EnqueueTask) until
the argument value is changed by a call to clSetKernelArg for kernel.
If the argument is a memory object (buffer, image or image array), the If the argument is declared to be a pointer of a built-in scalar or vector type, or a user defined structure type in the global or constant address
space, the memory object specified as argument value must be a buffer object (or The memory object specified as argument value must be a 2D image object if the argument is declared to be of type For all other kernel arguments, the Set the argument value for a specific argument of a kernel. | |||||||||
| public static int | ||||||||||
| public static int | ||||||||||
| public static int | ||||||||||
| public static int | ||||||||||
| public static int | ||||||||||
| public static int | Returns: SUCCESS if the function was executed successfully. Otherwise, it returns one of the following errors:
a valid kernel object kernel, int the argument index. Arguments to the kernel are referred by indices that go from 0 for the leftmost argument to arg_index, byte arg0)n - 1, where n is
the total number of arguments declared by a kernel.
For example, consider the following kernel:
Argument index values for image_filter will be 0 for Note A kernel object does not update the reference count for objects such as memory, sampler objects specified as argument values
by Set the argument value for a specific argument of a kernel. | |||||||||
| public static int | Returns: SUCCESS if the function was executed successfully. Otherwise, it returns one of the following errors:
a valid kernel object kernel, int the argument index. Arguments to the kernel are referred by indices that go from 0 for the leftmost argument to arg_index, double arg0)n - 1, where n is
the total number of arguments declared by a kernel.
For example, consider the following kernel:
Argument index values for image_filter will be 0 for Note A kernel object does not update the reference count for objects such as memory, sampler objects specified as argument values
by Set the argument value for a specific argument of a kernel. | |||||||||
| public static int | Returns: SUCCESS if the function was executed successfully. Otherwise, it returns one of the following errors:
a valid kernel object kernel, int the argument index. Arguments to the kernel are referred by indices that go from 0 for the leftmost argument to arg_index, float arg0)n - 1, where n is
the total number of arguments declared by a kernel.
For example, consider the following kernel:
Argument index values for image_filter will be 0 for Note A kernel object does not update the reference count for objects such as memory, sampler objects specified as argument values
by Set the argument value for a specific argument of a kernel. | |||||||||
| public static int | Returns: SUCCESS if the function was executed successfully. Otherwise, it returns one of the following errors:
a valid kernel object kernel, int the argument index. Arguments to the kernel are referred by indices that go from 0 for the leftmost argument to arg_index, int arg0)n - 1, where n is
the total number of arguments declared by a kernel.
For example, consider the following kernel:
Argument index values for image_filter will be 0 for Note A kernel object does not update the reference count for objects such as memory, sampler objects specified as argument values
by Set the argument value for a specific argument of a kernel. | |||||||||
| public static int | Returns: SUCCESS if the function was executed successfully. Otherwise, it returns one of the following errors:
a valid kernel object kernel, int the argument index. Arguments to the kernel are referred by indices that go from 0 for the leftmost argument to arg_index, long arg0)n - 1, where n is
the total number of arguments declared by a kernel.
For example, consider the following kernel:
Argument index values for image_filter will be 0 for Note A kernel object does not update the reference count for objects such as memory, sampler objects specified as argument values
by Set the argument value for a specific argument of a kernel. | |||||||||
| public static int | Returns: SUCCESS if the function was executed successfully. Otherwise, it returns one of the following errors:
a valid kernel object kernel, int the argument index. Arguments to the kernel are referred by indices that go from 0 for the leftmost argument to arg_index, long arg0)n - 1, where n is
the total number of arguments declared by a kernel.
For example, consider the following kernel:
Argument index values for image_filter will be 0 for Note A kernel object does not update the reference count for objects such as memory, sampler objects specified as argument values
by Set the argument value for a specific argument of a kernel. | |||||||||
| public static int | Returns: SUCCESS if the function was executed successfully. Otherwise, it returns one of the following errors:
a valid kernel object kernel, int the argument index. Arguments to the kernel are referred by indices that go from 0 for the leftmost argument to arg_index, short arg0)n - 1, where n is
the total number of arguments declared by a kernel.
For example, consider the following kernel:
Argument index values for image_filter will be 0 for Note A kernel object does not update the reference count for objects such as memory, sampler objects specified as argument values
by Set the argument value for a specific argument of a kernel. | |||||||||
| public static int | Returns: SUCCESS if the function was executed successfully. Otherwise, it returns one of the following errors:
a valid kernel object kernel, int the argument index. Arguments to the kernel are referred by indices that go from 0 for the leftmost argument to arg_index, byte arg0, byte arg1)n - 1, where n is
the total number of arguments declared by a kernel.
For example, consider the following kernel:
Argument index values for image_filter will be 0 for Note A kernel object does not update the reference count for objects such as memory, sampler objects specified as argument values
by Set the argument value for a specific argument of a kernel. | |||||||||
| public static int | Returns: SUCCESS if the function was executed successfully. Otherwise, it returns one of the following errors:
a valid kernel object kernel, int the argument index. Arguments to the kernel are referred by indices that go from 0 for the leftmost argument to arg_index, double arg0, double arg1)n - 1, where n is
the total number of arguments declared by a kernel.
For example, consider the following kernel:
Argument index values for image_filter will be 0 for Note A kernel object does not update the reference count for objects such as memory, sampler objects specified as argument values
by Set the argument value for a specific argument of a kernel. | |||||||||
| public static int | Returns: SUCCESS if the function was executed successfully. Otherwise, it returns one of the following errors:
a valid kernel object kernel, int the argument index. Arguments to the kernel are referred by indices that go from 0 for the leftmost argument to arg_index, float arg0, float arg1)n - 1, where n is
the total number of arguments declared by a kernel.
For example, consider the following kernel:
Argument index values for image_filter will be 0 for Note A kernel object does not update the reference count for objects such as memory, sampler objects specified as argument values
by Set the argument value for a specific argument of a kernel. | |||||||||
| public static int | Returns: SUCCESS if the function was executed successfully. Otherwise, it returns one of the following errors:
a valid kernel object kernel, int the argument index. Arguments to the kernel are referred by indices that go from 0 for the leftmost argument to arg_index, int arg0, int arg1)n - 1, where n is
the total number of arguments declared by a kernel.
For example, consider the following kernel:
Argument index values for image_filter will be 0 for Note A kernel object does not update the reference count for objects such as memory, sampler objects specified as argument values
by Set the argument value for a specific argument of a kernel. | |||||||||
| public static int | Returns: SUCCESS if the function was executed successfully. Otherwise, it returns one of the following errors:
a valid kernel object kernel, int the argument index. Arguments to the kernel are referred by indices that go from 0 for the leftmost argument to arg_index, long arg0, long arg1)n - 1, where n is
the total number of arguments declared by a kernel.
For example, consider the following kernel:
Argument index values for image_filter will be 0 for Note A kernel object does not update the reference count for objects such as memory, sampler objects specified as argument values
by Set the argument value for a specific argument of a kernel. | |||||||||
| public static int | Returns: SUCCESS if the function was executed successfully. Otherwise, it returns one of the following errors:
a valid kernel object kernel, int the argument index. Arguments to the kernel are referred by indices that go from 0 for the leftmost argument to arg_index, long arg0, long arg1)n - 1, where n is
the total number of arguments declared by a kernel.
For example, consider the following kernel:
Argument index values for image_filter will be 0 for Note A kernel object does not update the reference count for objects such as memory, sampler objects specified as argument values
by Set the argument value for a specific argument of a kernel. | |||||||||
| public static int | Returns: SUCCESS if the function was executed successfully. Otherwise, it returns one of the following errors:
a valid kernel object kernel, int the argument index. Arguments to the kernel are referred by indices that go from 0 for the leftmost argument to arg_index, short arg0, short arg1)n - 1, where n is
the total number of arguments declared by a kernel.
For example, consider the following kernel:
Argument index values for image_filter will be 0 for Note A kernel object does not update the reference count for objects such as memory, sampler objects specified as argument values
by Set the argument value for a specific argument of a kernel. | |||||||||
| public static int | Returns: SUCCESS if the function was executed successfully. Otherwise, it returns one of the following errors:
a valid kernel object kernel, int the argument index. Arguments to the kernel are referred by indices that go from 0 for the leftmost argument to arg_index, byte arg0, byte arg1, byte arg2, byte arg3)n - 1, where n is
the total number of arguments declared by a kernel.
For example, consider the following kernel:
Argument index values for image_filter will be 0 for Note A kernel object does not update the reference count for objects such as memory, sampler objects specified as argument values
by Set the argument value for a specific argument of a kernel. | |||||||||
| public static int | Returns: SUCCESS if the function was executed successfully. Otherwise, it returns one of the following errors:
a valid kernel object kernel, int the argument index. Arguments to the kernel are referred by indices that go from 0 for the leftmost argument to arg_index, double arg0, double arg1, double arg2, double arg3)n - 1, where n is
the total number of arguments declared by a kernel.
For example, consider the following kernel:
Argument index values for image_filter will be 0 for Note A kernel object does not update the reference count for objects such as memory, sampler objects specified as argument values
by Set the argument value for a specific argument of a kernel. | |||||||||
| public static int | Returns: SUCCESS if the function was executed successfully. Otherwise, it returns one of the following errors:
a valid kernel object kernel, int the argument index. Arguments to the kernel are referred by indices that go from 0 for the leftmost argument to arg_index, float arg0, float arg1, float arg2, float arg3)n - 1, where n is
the total number of arguments declared by a kernel.
For example, consider the following kernel:
Argument index values for image_filter will be 0 for Note A kernel object does not update the reference count for objects such as memory, sampler objects specified as argument values
by Set the argument value for a specific argument of a kernel. | |||||||||
| public static int | Returns: SUCCESS if the function was executed successfully. Otherwise, it returns one of the following errors:
a valid kernel object kernel, int the argument index. Arguments to the kernel are referred by indices that go from 0 for the leftmost argument to arg_index, int arg0, int arg1, int arg2, int arg3)n - 1, where n is
the total number of arguments declared by a kernel.
For example, consider the following kernel:
Argument index values for image_filter will be 0 for Note A kernel object does not update the reference count for objects such as memory, sampler objects specified as argument values
by Set the argument value for a specific argument of a kernel. | |||||||||
| public static int | Returns: SUCCESS if the function was executed successfully. Otherwise, it returns one of the following errors:
a valid kernel object kernel, int the argument index. Arguments to the kernel are referred by indices that go from 0 for the leftmost argument to arg_index, long arg0, long arg1, long arg2, long arg3)n - 1, where n is
the total number of arguments declared by a kernel.
For example, consider the following kernel:
Argument index values for image_filter will be 0 for Note A kernel object does not update the reference count for objects such as memory, sampler objects specified as argument values
by Set the argument value for a specific argument of a kernel. | |||||||||
| public static int | Returns: SUCCESS if the function was executed successfully. Otherwise, it returns one of the following errors:
a valid kernel object kernel, int the argument index. Arguments to the kernel are referred by indices that go from 0 for the leftmost argument to arg_index, long arg0, long arg1, long arg2, long arg3)n - 1, where n is
the total number of arguments declared by a kernel.
For example, consider the following kernel:
Argument index values for image_filter will be 0 for Note A kernel object does not update the reference count for objects such as memory, sampler objects specified as argument values
by Set the argument value for a specific argument of a kernel. | |||||||||
| public static int | Returns: SUCCESS if the function was executed successfully. Otherwise, it returns one of the following errors:
a valid kernel object kernel, int the argument index. Arguments to the kernel are referred by indices that go from 0 for the leftmost argument to arg_index, short arg0, short arg1, short arg2, short arg3)n - 1, where n is
the total number of arguments declared by a kernel.
For example, consider the following kernel:
Argument index values for image_filter will be 0 for Note A kernel object does not update the reference count for objects such as memory, sampler objects specified as argument values
by Set the argument value for a specific argument of a kernel. | |||||||||
| public static int | Returns: alwaysSUCCESSAllows the implementation to release the resources allocated by the OpenCL compiler. | |||||||||
| public static int | Returns: SUCCESS if the execution status of all events in event_list is COMPLETE. Otherwise, it returns one of the following errors:
the list of events event_list)Waits on the host thread for commands identified by event objects in | |||||||||
| public static int | Returns: SUCCESS if the execution status of all events in event_list is COMPLETE. Otherwise, it returns one of the following errors:
Waits on the host thread for commands identified by event objects in | |||||||||
| private static long | ||||||||||
| public static int | nclBuildProgram(long program, int
the number of devices listed in num_devices, long device_list, long options, long pfn_notify, long user_data)device_listUnsafe version of: | |||||||||
| public static long | nclCreateBuffer(long context, long flags, long
the size in bytes of the buffer memory object to be allocated size, long host_ptr, long errcode_ret)Unsafe version of: | |||||||||
| public static long | nclCreateCommandQueue(long context, long device, long properties, long errcode_ret)
Unsafe version of: | |||||||||
| public static long | nclCreateContext(long properties, int
the number of devices specified in the num_devices, long devices, long pfn_notify, long user_data, long errcode_ret)devices argumentUnsafe version of: | |||||||||
| public static long | nclCreateContextFromType(long properties, long device_type, long pfn_notify, long user_data, long errcode_ret)
Unsafe version of: | |||||||||
| public static long | nclCreateImage2D(long context, long flags, long image_format, long image_width, long image_height, long image_row_pitch, long host_ptr, long errcode_ret)
Unsafe version of: | |||||||||
| public static long | nclCreateImage3D(long context, long flags, long image_format, long image_width, long image_height, long image_depth, long image_row_pitch, long image_slice_pitch, long host_ptr, long errcode_ret)
Unsafe version of: | |||||||||
| public static long | ||||||||||
| public static int | nclCreateKernelsInProgram(long program, int
the size of memory pointed to by kernels specified as the number of cl_kernel entries num_kernels, long kernels, long num_kernels_ret)Unsafe version of: | |||||||||
| public static long | nclCreateProgramWithBinary(long context, int
the number of devices listed in num_devices, long device_list, long lengths, long binaries, long binary_status, long errcode_ret)device_listUnsafe version of: | |||||||||
| public static long | nclCreateProgramWithSource(long context, int
the number of elements in the count, long strings, long lengths, long errcode_ret)strings and lengths arraysUnsafe version of: | |||||||||
| public static long | nclCreateSampler(long context, int normalized_coords, int addressing_mode, int filter_mode, long errcode_ret)
Unsafe version of: | |||||||||
| public static int | nclEnqueueCopyBuffer(long command_queue, long src_buffer, long dst_buffer, long src_offset, long dst_offset, long size, int
the number of events in num_events_in_wait_list, long event_wait_list, long event)event_wait_listUnsafe version of: | |||||||||
| public static int | nclEnqueueCopyBufferToImage(long command_queue, long src_buffer, long dst_image, long src_offset, long dst_origin, long region, int
the number of events in num_events_in_wait_list, long event_wait_list, long event)event_wait_listUnsafe version of: | |||||||||
| public static int | nclEnqueueCopyImage(long command_queue, long src_image, long dst_image, long src_origin, long dst_origin, long region, int
the number of events in num_events_in_wait_list, long event_wait_list, long event)event_wait_listUnsafe version of: | |||||||||
| public static int | nclEnqueueCopyImageToBuffer(long command_queue, long src_image, long dst_buffer, long src_origin, long region, long dst_offset, int
the number of events in num_events_in_wait_list, long event_wait_list, long event)event_wait_listUnsafe version of: | |||||||||
| public static long | nclEnqueueMapBuffer(long command_queue, long buffer, int blocking_map, long map_flags, long offset, long size, int
the number of events in num_events_in_wait_list, long event_wait_list, long event, long errcode_ret)event_wait_listUnsafe version of: | |||||||||
| public static long | nclEnqueueMapImage(long command_queue, long image, int blocking_map, long map_flags, long origin, long region, long image_row_pitch, long image_slice_pitch, int
the number of events in num_events_in_wait_list, long event_wait_list, long event, long errcode_ret)event_wait_listUnsafe version of: | |||||||||
| public static int | ||||||||||
| public static int | nclEnqueueNativeKernel(long command_queue, long user_func, long args, long
the size in bytes of the args list that cb_args, int args points to.
The data pointed to by the number of buffer objects that are passed in num_mem_objects, long mem_list, long args_mem_loc, int argsthe number of events in num_events_in_wait_list, long event_wait_list, long event)event_wait_listUnsafe version of: | |||||||||
| public static int | nclEnqueueNDRangeKernel(long command_queue, long kernel, int work_dim, long global_work_offset, long global_work_size, long local_work_size, int
the number of events in num_events_in_wait_list, long event_wait_list, long event)event_wait_listUnsafe version of: | |||||||||
| public static int | nclEnqueueReadBuffer(long command_queue, long buffer, int blocking_read, long offset, long
the size in bytes of data being read size, long ptr, int the number of events in num_events_in_wait_list, long event_wait_list, long event)event_wait_listUnsafe version of: | |||||||||
| public static int | nclEnqueueReadImage(long command_queue, long image, int blocking_read, long origin, long region, long row_pitch, long slice_pitch, long ptr, int
the number of events in num_events_in_wait_list, long event_wait_list, long event)event_wait_listUnsafe version of: | |||||||||
| public static int | nclEnqueueTask(long command_queue, long kernel, int
the number of events in num_events_in_wait_list, long event_wait_list, long event)event_wait_listUnsafe version of: | |||||||||
| public static int | nclEnqueueUnmapMemObject(long command_queue, long memobj, long mapped_ptr, int
the number of events in num_events_in_wait_list, long event_wait_list, long event)event_wait_listUnsafe version of: | |||||||||
| public static int | nclEnqueueWaitForEvents(long command_queue, int
the number of events in num_events, long event_list)event_listUnsafe version of: | |||||||||
| public static int | nclEnqueueWriteBuffer(long command_queue, long buffer, int blocking_write, long offset, long
the size in bytes of data being written size, long ptr, int the number of events in num_events_in_wait_list, long event_wait_list, long event)event_wait_listUnsafe version of: | |||||||||
| public static int | nclEnqueueWriteImage(long command_queue, long image, int blocking_write, long origin, long region, long input_row_pitch, long input_slice_pitch, long ptr, int
the number of events in num_events_in_wait_list, long event_wait_list, long event)event_wait_listUnsafe version of: | |||||||||
| public static int | nclGetCommandQueueInfo(long command_queue, int param_name, long
the size in bytes of memory pointed to by param_value_size, long param_value, long param_value_size_ret)param_value. This size must be ≥ size of return type. If param_value is NULL, it is ignored.Unsafe version of: | |||||||||
| public static int | nclGetContextInfo(long context, int param_name, long
the size in bytes of memory pointed to by param_value_size, long param_value, long param_value_size_ret)param_value. This size must be ≥ size of return type. If param_value is NULL, it is ignored.Unsafe version of: | |||||||||
| public static int | nclGetDeviceIDs(long platform, long device_type, int
the number of num_entries, long devices, long num_devices)cl_device_id entries that can be added to devices. If devices is not NULL, the num_entries must be greater
than zero.Unsafe version of: | |||||||||
| public static int | nclGetDeviceInfo(long device, int param_name, long
the size in bytes of memory pointed to by param_value_size, long param_value, long param_value_size_ret)param_value. This size must be ≥ size of return type. If param_value is NULL, it is ignored.Unsafe version of: | |||||||||
| public static int | nclGetEventInfo(long event, int param_name, long
the size in bytes of memory pointed to by param_value_size, long param_value, long param_value_size_ret)param_value. This size must be ≥ size of return type. If param_value is NULL, it is ignored.Unsafe version of: | |||||||||
| public static int | nclGetEventProfilingInfo(long event, int param_name, long
the size in bytes of memory pointed to by param_value_size, long param_value, long param_value_size_ret)param_value. This size must be ≥ size of return type. If param_value is NULL, it is ignored.Unsafe version of: | |||||||||
| public static long | ||||||||||
| public static int | nclGetImageInfo(long image, int param_name, long
the size in bytes of memory pointed to by param_value_size, long param_value, long param_value_size_ret)param_value. This size must be ≥ size of return type. If param_value is NULL, it is ignored.Unsafe version of: | |||||||||
| public static int | nclGetKernelInfo(long kernel, int param_name, long
the size in bytes of memory pointed to by param_value_size, long param_value, long param_value_size_ret)param_value. This size must be ≥ size of return type. If param_value is NULL, it is ignored.Unsafe version of: | |||||||||
| public static int | nclGetKernelWorkGroupInfo(long kernel, long device, int param_name, long
the size in bytes of memory pointed to by param_value_size, long param_value, long param_value_size_ret)param_value. This size must be ≥ size of return type. If param_value is NULL, it is ignored.Unsafe version of: | |||||||||
| public static int | nclGetMemObjectInfo(long memobj, int param_name, long
the size in bytes of memory pointed to by param_value_size, long param_value, long param_value_size_ret)param_value. This size must be ≥ size of return type. If param_value is NULL, it is ignored.Unsafe version of: | |||||||||
| public static int | nclGetPlatformIDs(int
the number of num_entries, long platforms, long num_platforms)cl_platform_id entries that can be added to platforms. If platforms is not NULL, the num_entries must
be greater than zero.Unsafe version of: | |||||||||
| public static int | nclGetPlatformInfo(long platform, int param_name, long
the size in bytes of memory pointed to by param_value_size, long param_value, long param_value_size_ret)param_value. This size must be ≥ size of return type. If param_value is NULL, it is ignored.Unsafe version of: | |||||||||
| public static int | nclGetProgramBuildInfo(long program, long device, int param_name, long
the size in bytes of memory pointed to by param_value_size, long param_value, long param_value_size_ret)param_value. This size must be ≥ size of return type. If param_value is NULL, it is ignored.Unsafe version of: | |||||||||
| public static int | nclGetProgramInfo(long program, int param_name, long
the size in bytes of memory pointed to by param_value_size, long param_value, long param_value_size_ret)param_value. This size must be ≥ size of return type. If param_value is NULL, it is ignored.Unsafe version of: | |||||||||
| public static int | nclGetSamplerInfo(long sampler, int param_name, long
the size in bytes of memory pointed to by param_value_size, long param_value, long param_value_size_ret)param_value. This size must be ≥ size of return type. If param_value is NULL, it is ignored.Unsafe version of: | |||||||||
| public static int | nclGetSupportedImageFormats(long context, long flags, int image_type, int
the number of entries that can be returned in the memory location given by num_entries, long image_formats, long num_image_formats)image_formatsUnsafe version of: | |||||||||
| public static int | nclSetKernelArg(long kernel, int arg_index, long
the size of the argument value. If the argument is a memory object, the size is the size of the buffer or image object type. For arguments declared
with the arg_size, long arg_value)__local qualifier, the size specified will be the size in bytes of the buffer that must be allocated for the __local
argument. If the argument is of type sampler_t, the arg_size value must be equal to sizeof(cl_sampler). For all other
arguments, the size will be the size of argument type.Unsafe version of: | |||||||||
| public static int | nclWaitForEvents(int
the number of events in num_events, long event_list)event_listUnsafe version of: |