| Modifier and Type | Field and Description |
|---|---|
| public static final int | CL_BLOCKING
cl_bool |
| public static final int | CL_COMMAND_BARRIER
cl_command_type |
| public static final int | CL_COMMAND_FILL_BUFFER
cl_command_type |
| public static final int | CL_COMMAND_FILL_IMAGE
cl_command_type |
| public static final int | CL_COMMAND_MIGRATE_MEM_OBJECTS
cl_command_type |
| public static final int | CL_COMPILE_PROGRAM_FAILURE
Error Codes. |
| public static final int | CL_CONTEXT_INTEROP_USER_SYNC
cl_context_properties |
| public static final int | CL_DEVICE_AFFINITY_DOMAIN_L1_CACHE
cl_device_affinity_domain |
| public static final int | CL_DEVICE_AFFINITY_DOMAIN_L2_CACHE
cl_device_affinity_domain |
| public static final int | CL_DEVICE_AFFINITY_DOMAIN_L3_CACHE
cl_device_affinity_domain |
| public static final int | CL_DEVICE_AFFINITY_DOMAIN_L4_CACHE
cl_device_affinity_domain |
| public static final int | CL_DEVICE_AFFINITY_DOMAIN_NEXT_PARTITIONABLE
cl_device_affinity_domain |
| public static final int | CL_DEVICE_AFFINITY_DOMAIN_NUMA
cl_device_affinity_domain |
| public static final int | CL_DEVICE_BUILT_IN_KERNELS
cl_device_info |
| public static final int | CL_DEVICE_DOUBLE_FP_CONFIG
cl_device_info |
| public static final int | CL_DEVICE_IMAGE_MAX_ARRAY_SIZE
cl_device_info |
| public static final int | CL_DEVICE_IMAGE_MAX_BUFFER_SIZE
cl_device_info |
| public static final int | CL_DEVICE_LINKER_AVAILABLE
cl_device_info |
| public static final int | CL_DEVICE_PARENT_DEVICE
cl_device_info |
| public static final int | CL_DEVICE_PARTITION_AFFINITY_DOMAIN
cl_device_info |
| public static final int | CL_DEVICE_PARTITION_BY_AFFINITY_DOMAIN
Split the device into smaller aggregate devices containing one or more compute units that all share part of a cache hierarchy. |
| public static final int | CL_DEVICE_PARTITION_BY_COUNTS
This property is followed by a |
| public static final int | CL_DEVICE_PARTITION_BY_COUNTS_LIST_END
cl_device_partition_property list null-terminator |
| public static final int | CL_DEVICE_PARTITION_EQUALLY
Split the aggregate device into as many smaller aggregate devices as can be created, each containing |
| public static final int | CL_DEVICE_PARTITION_FAILED
Error Codes. |
| public static final int | CL_DEVICE_PARTITION_MAX_SUB_DEVICES
cl_device_info |
| public static final int | CL_DEVICE_PARTITION_PROPERTIES
cl_device_info |
| public static final int | CL_DEVICE_PARTITION_TYPE
cl_device_info |
| public static final int | CL_DEVICE_PREFERRED_INTEROP_USER_SYNC
cl_device_info |
| public static final int | CL_DEVICE_PRINTF_BUFFER_SIZE
cl_device_info |
| public static final int | CL_DEVICE_REFERENCE_COUNT
cl_device_info |
| public static final int | CL_DEVICE_TYPE_CUSTOM
cl_device_type - bitfield |
| public static final int | CL_FP_CORRECTLY_ROUNDED_DIVIDE_SQRT
cl_device_fp_config - bitfield |
| public static final int | CL_IMAGE_ARRAY_SIZE
cl_image_info |
| public static final int | CL_IMAGE_BUFFER
cl_image_info |
| public static final int | CL_IMAGE_NUM_MIP_LEVELS
cl_image_info |
| public static final int | CL_IMAGE_NUM_SAMPLES
cl_image_info |
| public static final int | CL_INVALID_COMPILER_OPTIONS
Error Codes. |
| public static final int | CL_INVALID_DEVICE_PARTITION_COUNT
Error Codes. |
| public static final int | CL_INVALID_IMAGE_DESCRIPTOR
Error Codes. |
| public static final int | CL_INVALID_LINKER_OPTIONS
Error Codes. |
| public static final int | CL_KERNEL_ARG_ACCESS_NONE
cl_kernel_arg_access_qualifier |
| public static final int | CL_KERNEL_ARG_ACCESS_QUALIFIER
cl_kernel_arg_info |
| public static final int | CL_KERNEL_ARG_ACCESS_READ_ONLY
cl_kernel_arg_access_qualifier |
| public static final int | CL_KERNEL_ARG_ACCESS_READ_WRITE
cl_kernel_arg_access_qualifier |
| public static final int | CL_KERNEL_ARG_ACCESS_WRITE_ONLY
cl_kernel_arg_access_qualifier |
| public static final int | CL_KERNEL_ARG_ADDRESS_CONSTANT
cl_kernel_arg_address_qualifier |
| public static final int | CL_KERNEL_ARG_ADDRESS_GLOBAL
cl_kernel_arg_address_qualifier |
| public static final int | CL_KERNEL_ARG_ADDRESS_LOCAL
cl_kernel_arg_address_qualifier |
| public static final int | CL_KERNEL_ARG_ADDRESS_PRIVATE
cl_kernel_arg_address_qualifier |
| public static final int | CL_KERNEL_ARG_ADDRESS_QUALIFIER
cl_kernel_arg_info |
| public static final int | CL_KERNEL_ARG_INFO_NOT_AVAILABLE
Error Codes. |
| public static final int | CL_KERNEL_ARG_NAME
cl_kernel_arg_info |
| public static final int | CL_KERNEL_ARG_TYPE_CONST
cl_kernel_arg_type_qualifier |
| public static final int | CL_KERNEL_ARG_TYPE_NAME
cl_kernel_arg_info |
| public static final int | CL_KERNEL_ARG_TYPE_NONE
cl_kernel_arg_type_qualifier |
| public static final int | CL_KERNEL_ARG_TYPE_QUALIFIER
cl_kernel_arg_info |
| public static final int | CL_KERNEL_ARG_TYPE_RESTRICT
cl_kernel_arg_type_qualifier |
| public static final int | CL_KERNEL_ARG_TYPE_VOLATILE
cl_kernel_arg_type_qualifier |
| public static final int | CL_KERNEL_ATTRIBUTES
cl_kernel_info |
| public static final int | CL_KERNEL_GLOBAL_WORK_SIZE
cl_kernel_work_group_info |
| public static final int | CL_LINK_PROGRAM_FAILURE
Error Codes. |
| public static final int | CL_LINKER_NOT_AVAILABLE
Error Codes. |
| public static final int | CL_MAP_WRITE_INVALIDATE_REGION
cl_map_flags - bitfield |
| public static final int | CL_MEM_HOST_NO_ACCESS
cl_mem_flags - bitfield |
| public static final int | CL_MEM_HOST_READ_ONLY
cl_mem_flags - bitfield |
| public static final int | CL_MEM_HOST_WRITE_ONLY
cl_mem_flags - bitfield |
| public static final int | CL_MEM_OBJECT_IMAGE1D
cl_mem_object_type |
| public static final int | CL_MEM_OBJECT_IMAGE1D_ARRAY
cl_mem_object_type |
| public static final int | CL_MEM_OBJECT_IMAGE1D_BUFFER
cl_mem_object_type |
| public static final int | CL_MEM_OBJECT_IMAGE2D_ARRAY
cl_mem_object_type |
| public static final int | CL_MIGRATE_MEM_OBJECT_CONTENT_UNDEFINED
cl_mem_migration_flags - bitfield |
| public static final int | CL_MIGRATE_MEM_OBJECT_HOST
cl_mem_migration_flags - bitfield |
| public static final int | CL_NON_BLOCKING
cl_bool |
| public static final int | CL_PROGRAM_BINARY_TYPE
cl_program_build_info |
| public static final int | CL_PROGRAM_BINARY_TYPE_COMPILED_OBJECT
cl_program_binary_type |
| public static final int | CL_PROGRAM_BINARY_TYPE_EXECUTABLE
cl_program_binary_type |
| public static final int | CL_PROGRAM_BINARY_TYPE_LIBRARY
cl_program_binary_type |
| public static final int | CL_PROGRAM_BINARY_TYPE_NONE
cl_program_binary_type |
| public static final int | CL_PROGRAM_KERNEL_NAMES
cl_program_info |
| public static final int | CL_PROGRAM_NUM_KERNELS
cl_program_info |
| public static final int | CL_VERSION_1_2
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 that is the compilation target program, PointerBuffer a pointer to a list of devices associated with device_list, ByteBuffer program. If device_list is a NULL value, the compile is performed for all devices
associated with program. If device_list is a non-NULL value, the compile is performed for devices specified in this list.a pointer to a null-terminated string of characters that describes the compilation options to be used for building the program executable options, PointerBuffer an array of program embedded headers created with input_headers, PointerBuffer CreateProgramWithSourcean array that has a one to one correspondence with header_include_names, CLProgramCallbackI input_headers. Each entry in header_include_names specifies the include name used
by source in program that comes from an embedded header. The corresponding entry in input_headers identifies the program object which
contains the header source to be used. The embedded headers are first searched before the headers in the list of directories specified by the –I
compile option. If multiple entries in header_include_names refer to the same header name, the first one encountered will be used.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).
pfn_notify, long If If will be passed as an argument when user_data)pfn_notify is called. user_data can be NULL.Compiles a program's source 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 that is the compilation target program, PointerBuffer a pointer to a list of devices associated with device_list, CharSequence program. If device_list is a NULL value, the compile is performed for all devices
associated with program. If device_list is a non-NULL value, the compile is performed for devices specified in this list.a pointer to a null-terminated string of characters that describes the compilation options to be used for building the program executable options, PointerBuffer an array of program embedded headers created with input_headers, PointerBuffer CreateProgramWithSourcean array that has a one to one correspondence with header_include_names, CLProgramCallbackI input_headers. Each entry in header_include_names specifies the include name used
by source in program that comes from an embedded header. The corresponding entry in input_headers identifies the program object which
contains the header source to be used. The embedded headers are first searched before the headers in the list of directories specified by the –I
compile option. If multiple entries in header_include_names refer to the same header name, the first one encountered will be used.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).
pfn_notify, long If If will be passed as an argument when user_data)pfn_notify is called. user_data can be NULL.Compiles a program's source for all the devices or a specific device(s) in the OpenCL context associated with | |||||||||||||||||||||||
| public static long | Returns: a valid non-zero image object and theerrcode_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.
flags, CLImageFormat For all image types except For
a pointer to a image_format, CLImageDesc CLImageFormat structure that describes format properties of the image to be allocateda pointer to a image_desc, ByteBuffer CLImageDesc structure that describes type and dimensions of the image to be allocateda pointer to the image data that may already be allocated by the application. Refer to table below for a description of how large the buffer that
host_ptr, IntBuffer host_ptr points to must be.
will return an appropriate error code. If errcode_ret)errcode_ret is NULL, no error code is returned.Creates a 1D image, 1D image buffer, 1D image array, 2D image, 2D image array or 3D image object. | |||||||||||||||||||||||
| public static long | Returns: a valid non-zero image object and theerrcode_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.
flags, CLImageFormat For all image types except For
a pointer to a image_format, CLImageDesc CLImageFormat structure that describes format properties of the image to be allocateda pointer to a image_desc, ShortBuffer CLImageDesc structure that describes type and dimensions of the image to be allocateda pointer to the image data that may already be allocated by the application. Refer to table below for a description of how large the buffer that
host_ptr, IntBuffer host_ptr points to must be.
will return an appropriate error code. If errcode_ret)errcode_ret is NULL, no error code is returned.Creates a 1D image, 1D image buffer, 1D image array, 2D image, 2D image array or 3D image object. | |||||||||||||||||||||||
| public static long | Returns: a valid non-zero image object and theerrcode_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.
flags, CLImageFormat For all image types except For
a pointer to a image_format, CLImageDesc CLImageFormat structure that describes format properties of the image to be allocateda pointer to a image_desc, IntBuffer CLImageDesc structure that describes type and dimensions of the image to be allocateda pointer to the image data that may already be allocated by the application. Refer to table below for a description of how large the buffer that
host_ptr, IntBuffer host_ptr points to must be.
will return an appropriate error code. If errcode_ret)errcode_ret is NULL, no error code is returned.Creates a 1D image, 1D image buffer, 1D image array, 2D image, 2D image array or 3D image object. | |||||||||||||||||||||||
| public static long | Returns: a valid non-zero image object and theerrcode_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.
flags, CLImageFormat For all image types except For
a pointer to a image_format, CLImageDesc CLImageFormat structure that describes format properties of the image to be allocateda pointer to a image_desc, FloatBuffer CLImageDesc structure that describes type and dimensions of the image to be allocateda pointer to the image data that may already be allocated by the application. Refer to table below for a description of how large the buffer that
host_ptr, IntBuffer host_ptr points to must be.
will return an appropriate error code. If errcode_ret)errcode_ret is NULL, no error code is returned.Creates a 1D image, 1D image buffer, 1D image array, 2D image, 2D image array or 3D image object. | |||||||||||||||||||||||
| public static long | clCreateImage(long context, long flags, CLImageFormat image_format, CLImageDesc image_desc, ByteBuffer host_ptr, int[] errcode_ret)
Array version of: | |||||||||||||||||||||||
| public static long | clCreateImage(long context, long flags, CLImageFormat image_format, CLImageDesc image_desc, short[] host_ptr, int[] errcode_ret)
Array version of: | |||||||||||||||||||||||
| public static long | clCreateImage(long context, long flags, CLImageFormat image_format, CLImageDesc image_desc, int[] host_ptr, int[] errcode_ret)
Array version of: | |||||||||||||||||||||||
| public static long | clCreateImage(long context, long flags, CLImageFormat image_format, CLImageDesc image_desc, float[] host_ptr, 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 a pointer to a list of devices that are in device_list, ByteBuffer context. device_list must be a non-NULL value. The built-in kernels are loaded for
devices specified in this list.
The devices associated with the program object will be the list of devices specified by a semi-colon separated list of built-in kernel names kernel_names, 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 information related to the built-in kernels into a 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, PointerBuffer a pointer to a list of devices that are in device_list, CharSequence context. device_list must be a non-NULL value. The built-in kernels are loaded for
devices specified in this list.
The devices associated with the program object will be the list of devices specified by a semi-colon separated list of built-in kernel names kernel_names, 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 information related to the built-in kernels into a 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, long device, CharSequence a semi-colon separated list of built-in kernel names kernel_names, 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 information related to the built-in kernels into a program object. | |||||||||||||||||||||||
| public static long | clCreateProgramWithBuiltInKernels(long context, PointerBuffer device_list, ByteBuffer kernel_names, int[] errcode_ret)
Array version of: | |||||||||||||||||||||||
| public static long | clCreateProgramWithBuiltInKernels(long context, PointerBuffer device_list, CharSequence kernel_names, int[] errcode_ret)
Array version of: | |||||||||||||||||||||||
| public static int | Returns: SUCCESS if the partition is created successfully. Otherwise, it returns a NULL value with the following error values returned in errcode_ret:
the device to be partitioned in_device, PointerBuffer specifies how properties, PointerBuffer in_device is to be partition described by a partition name and its corresponding value. Each partition name is immediately
followed by the corresponding desired value. The list is terminated with 0. Only one partitioning scheme can be specified in properties. One of:
the buffer where the OpenCL sub-devices will be returned. If out_devices, IntBuffer out_devices is NULL, this argument is ignored. If out_devices is not
NULL, num_devices must be greater than or equal to the number of sub-devices that device may be partitioned into according to the
partitioning scheme specified in properties.the number of sub-devices that device may be partitioned into according to the partitioning scheme specified in num_devices_ret)properties. If num_devices_ret
is NULL, it is ignored.Creates an array of sub-devices that each reference a non-intersecting set of compute units within | |||||||||||||||||||||||
| public static int | clCreateSubDevices(long in_device, PointerBuffer properties, PointerBuffer out_devices, int[] num_devices_ret)
Array version of: | |||||||||||||||||||||||
| public static int | Returns: SUCCESS if the function is successfully executed. Otherwise, it returns one of the following errors:
a valid command-queue command_queue, 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 barrier command which waits for either a list of events to complete, or if the list is empty it waits for all commands previously enqueued in
| |||||||||||||||||||||||
| 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 fill command will be queued. The OpenCL context associated with command_queue, long command_queue and buffer must be the same.a valid buffer object buffer, ByteBuffer pointer to the data pattern of size pattern, long pattern_size in bytes. pattern will be used to fill a region in buffer starting at offset
and is size bytes in size. The data pattern must be a scalar or vector integer or floating-point data type supported by OpenCL. For example,
if buffer is to be filled with a pattern of float4 values, then pattern will be a pointer to a cl_float4 value and pattern_size
will be sizeof(cl_float4). The maximum value of pattern_size is the size of the largest integer or floating-point vector data type
supported by the OpenCL device. The memory associated with pattern can be reused or freed after the function returns.the location in bytes of the region being filled in offset, long buffer and must be a multiple of pattern_sizethe size in bytes of region being filled in size, PointerBuffer buffer and must be a multiple of pattern_sizea 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 fill a buffer object with a pattern of a given pattern size. | |||||||||||||||||||||||
| 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 fill command will be queued. The OpenCL context associated with command_queue, long command_queue and image must be the same.a valid image object image, ByteBuffer the fill color. The fill color is a four component RGBA floating-point color value if the fill_color, PointerBuffer image channel data type is not an unnormalized
signed and unsigned integer type, is a four component signed integer value if the image channel data type is an unnormalized signed integer
type and is a four component unsigned integer value if the image channel data type is an unnormalized unsigned integer type. The fill color
will be converted to the appropriate image channel format and order associated with image.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.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 fill an image object with a specified color. | |||||||||||||||||||||||
| 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 fill command will be queued. The OpenCL context associated with command_queue, long command_queue and image must be the same.a valid image object image, IntBuffer the fill color. The fill color is a four component RGBA floating-point color value if the fill_color, PointerBuffer image channel data type is not an unnormalized
signed and unsigned integer type, is a four component signed integer value if the image channel data type is an unnormalized signed integer
type and is a four component unsigned integer value if the image channel data type is an unnormalized unsigned integer type. The fill color
will be converted to the appropriate image channel format and order associated with image.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.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 fill an image object with a specified color. | |||||||||||||||||||||||
| 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 fill command will be queued. The OpenCL context associated with command_queue, long command_queue and image must be the same.a valid image object image, FloatBuffer the fill color. The fill color is a four component RGBA floating-point color value if the fill_color, PointerBuffer image channel data type is not an unnormalized
signed and unsigned integer type, is a four component signed integer value if the image channel data type is an unnormalized signed integer
type and is a four component unsigned integer value if the image channel data type is an unnormalized unsigned integer type. The fill color
will be converted to the appropriate image channel format and order associated with image.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.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 fill an image object with a specified color. | |||||||||||||||||||||||
| public static int | clEnqueueFillImage(long command_queue, long image, int[] fill_color, PointerBuffer origin, PointerBuffer region, PointerBuffer event_wait_list, PointerBuffer event)
Array version of: | |||||||||||||||||||||||
| public static int | clEnqueueFillImage(long command_queue, long image, float[] fill_color, PointerBuffer origin, PointerBuffer region, PointerBuffer event_wait_list, PointerBuffer event)
Array version of: | |||||||||||||||||||||||
| public static int | Returns: SUCCESS if the function is successfully executed. Otherwise, it returns one of the following errors:
a valid command-queue command_queue, 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 marker command which waits for either a list of events to complete, or if the list is empty it waits for all commands previously enqueued in
| |||||||||||||||||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
a valid command-queue. The specified set of memory objects in command_queue, PointerBuffer mem_objects will be migrated to the OpenCL device associated with
command_queue or to the host if the MIGRATE_MEM_OBJECT_HOST has been specified.a pointer to a list of memory objects mem_objects, long a bit-field that is used to specify migration options. One of: flags, 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 indicate which device a set of memory objects should be associated with. | |||||||||||||||||||||||
| public static long | clGetExtensionFunctionAddressForPlatform(long
the platform to query platform, ByteBuffer the extension function name funcname)Returns the address of the extension function named by | |||||||||||||||||||||||
| public static long | clGetExtensionFunctionAddressForPlatform(long
the platform to query platform, CharSequence the 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:
specifies the kernel object being queried kernel, int the argument index. Arguments to the kernel are referred by indices that go from 0 for the leftmost argument to arg_indx, int n - 1, where n is
the total number of arguments declared by a kernel.the argument 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 the arguments of a kernel. | |||||||||||||||||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
specifies the kernel object being queried kernel, int the argument index. Arguments to the kernel are referred by indices that go from 0 for the leftmost argument to arg_indx, int n - 1, where n is
the total number of arguments declared by a kernel.the argument 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 the arguments of a kernel. | |||||||||||||||||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
specifies the kernel object being queried kernel, int the argument index. Arguments to the kernel are referred by indices that go from 0 for the leftmost argument to arg_indx, int n - 1, where n is
the total number of arguments declared by a kernel.the argument 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.Returns information about the arguments of a kernel. | |||||||||||||||||||||||
| public static int | clGetKernelArgInfo(long kernel, int arg_indx, int param_name, int[] param_value, PointerBuffer param_value_size_ret)
Array version of: | |||||||||||||||||||||||
| public static int | clGetKernelArgInfo(long kernel, int arg_indx, int param_name, long[] param_value, PointerBuffer param_value_size_ret)
Array version of: | |||||||||||||||||||||||
| public static long | Returns: a valid non-zero program object, if the linking operation can begin. The linking operation can begin if the context, list of devices, input programs and linker options specified are all valid and appropriate host and device resources needed to perform the link are available.If If Otherwise
a valid OpenCL context context, PointerBuffer a pointer to a list of devices that are in device_list, ByteBuffer context. If device_list is a NULL value, the link is performed for all devices
associated with context for which a compiled object is available. If device_list is a non-NULL value, the link is performed for
devices specified in this list for which a compiled object is available.a pointer to a null-terminated string of characters that describes the link options to be used for building the program executable options, PointerBuffer an array of program objects that are compiled binaries or libraries that are to be linked to create the program executable. For each device in
input_programs, CLProgramCallbackI device_list or if device_list is NULL the list of devices associated with context, the following cases occur:
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).
pfn_notify, long If If will be passed as an argument when user_data, IntBuffer 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.Links a set of compiled program objects and libraries for all the devices or a specific device(s) in the OpenCL context and creates an executable. | |||||||||||||||||||||||
| public static long | Returns: a valid non-zero program object, if the linking operation can begin. The linking operation can begin if the context, list of devices, input programs and linker options specified are all valid and appropriate host and device resources needed to perform the link are available.If If Otherwise
a valid OpenCL context context, PointerBuffer a pointer to a list of devices that are in device_list, CharSequence context. If device_list is a NULL value, the link is performed for all devices
associated with context for which a compiled object is available. If device_list is a non-NULL value, the link is performed for
devices specified in this list for which a compiled object is available.a pointer to a null-terminated string of characters that describes the link options to be used for building the program executable options, PointerBuffer an array of program objects that are compiled binaries or libraries that are to be linked to create the program executable. For each device in
input_programs, CLProgramCallbackI device_list or if device_list is NULL the list of devices associated with context, the following cases occur:
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).
pfn_notify, long If If will be passed as an argument when user_data, IntBuffer 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.Links a set of compiled program objects and libraries for all the devices or a specific device(s) in the OpenCL context and creates an executable. | |||||||||||||||||||||||
| public static long | Returns: a valid non-zero program object, if the linking operation can begin. The linking operation can begin if the context, list of devices, input programs and linker options specified are all valid and appropriate host and device resources needed to perform the link are available.If If Otherwise
a valid OpenCL context context, PointerBuffer a pointer to a list of devices that are in device_list, CharSequence context. If device_list is a NULL value, the link is performed for all devices
associated with context for which a compiled object is available. If device_list is a non-NULL value, the link is performed for
devices specified in this list for which a compiled object is available.a pointer to a null-terminated string of characters that describes the link options to be used for building the program executable options, long input_program, 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).
pfn_notify, long If If will be passed as an argument when user_data, IntBuffer 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.Links a set of compiled program objects and libraries for all the devices or a specific device(s) in the OpenCL context and creates an executable. | |||||||||||||||||||||||
| public static long | clLinkProgram(long context, PointerBuffer device_list, ByteBuffer options, PointerBuffer input_programs, CLProgramCallbackI pfn_notify, long user_data, int[] errcode_ret)
Array version of: | |||||||||||||||||||||||
| public static long | clLinkProgram(long context, PointerBuffer device_list, CharSequence options, PointerBuffer input_programs, CLProgramCallbackI pfn_notify, long user_data, int[] errcode_ret)
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 release device)Decrements the device reference count if | |||||||||||||||||||||||
| public static int | Returns: SUCCESS if the function is executed successfully or the device is a root-level device. Otherwise, it returns one of the following errors:
the device to retain device)Increments the device reference count if | |||||||||||||||||||||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the platform for which to unload the compiler platform)Allows the implementation to release the resources allocated by the OpenCL compiler for platform. | |||||||||||||||||||||||
| public static int | nclCompileProgram(long program, int
the number of devices listed in num_devices, long device_list, long options, int device_listthe number of programs that describe headers in the array referenced by num_input_headers, long input_headers, long header_include_names, long pfn_notify, long user_data)input_headersUnsafe version of: | |||||||||||||||||||||||
| public static long | nclCreateImage(long context, long flags, long image_format, long image_desc, long host_ptr, long errcode_ret)
Unsafe version of: | |||||||||||||||||||||||
| public static long | nclCreateProgramWithBuiltInKernels(long context, int
the number of devices listed in num_devices, long device_list, long kernel_names, long errcode_ret)device_listUnsafe version of: | |||||||||||||||||||||||
| public static int | nclCreateSubDevices(long in_device, long properties, int
the size of memory pointed to by num_devices, long out_devices, long num_devices_ret)out_devices specified as the number of cl_device_id entries.Unsafe version of: | |||||||||||||||||||||||
| public static int | nclEnqueueBarrierWithWaitList(long command_queue, 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 | nclEnqueueFillBuffer(long command_queue, long buffer, long pattern, long
the pattern size pattern_size, long 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 | nclEnqueueFillImage(long command_queue, long image, long fill_color, long 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 | nclEnqueueMarkerWithWaitList(long command_queue, 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 | nclEnqueueMigrateMemObjects(long command_queue, int
the number of memory objects specified in num_mem_objects, long mem_objects, long flags, int mem_objectsthe number of events in num_events_in_wait_list, long event_wait_list, long event)event_wait_listUnsafe version of: | |||||||||||||||||||||||
| public static long | nclGetExtensionFunctionAddressForPlatform(long platform, long funcname)
Unsafe version of: | |||||||||||||||||||||||
| public static int | nclGetKernelArgInfo(long kernel, int arg_indx, 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 | nclLinkProgram(long context, int
the number of devices listed in num_devices, long device_list, long options, int device_listthe number of programs in array referenced by num_input_programs, long input_programs, long pfn_notify, long user_data, long errcode_ret)input_programsUnsafe version of: |