| Modifier and Type | Field and Description |
|---|---|
| public static final int | CL_DEVICE_IL_VERSION
Accepted as the |
| public static final int | CL_DEVICE_MAX_NUM_SUB_GROUPS
Accepted as the |
| public static final int | CL_DEVICE_SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS
Accepted as the |
| public static final int | CL_KERNEL_COMPILE_NUM_SUB_GROUPS
Accepted as the |
| public static final int | CL_KERNEL_LOCAL_SIZE_FOR_SUB_GROUP_COUNT
Accepted as the |
| public static final int | CL_KERNEL_MAX_NUM_SUB_GROUPS
Accepted as the |
| public static final int | CL_KERNEL_MAX_SUB_GROUP_SIZE_FOR_NDRANGE
Accepted as the |
| public static final int | CL_KERNEL_SUB_GROUP_COUNT_FOR_NDRANGE
Accepted as the |
| public static final int | CL_PLATFORM_HOST_TIMER_RESOLUTION
Accepted as the |
| public static final int | CL_PROGRAM_IL
Accepted as the |
| public static final int | CL_QUEUE_DEVICE_DEFAULT
Accepted as the |
| public static final int | CL_UNORM_INT_101010_2
cl_channel_type |
| public static final int | CL_VERSION_2_1
OpenCL Version. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static long | Returns: a valid non-zero kernel object anderrcode_ret is set to SUCCESS if the kernel is successfully copied. Otherwise it returns a NULL value with
one of the following error values returned in errcode_ret:
a valid source_kernel, IntBuffer cl_kernel object that will be copied. source_kernel will not be modified in any way by this function.will return an appropriate error code. If errcode_ret)errcode_ret is NULL, no error code is returned.Makes a shallow copy of the kernel object, its arguments and any information passed to the kernel object using |
| public static long | |
| 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, ByteBuffer a pointer to a il, IntBuffer length-byte block of memory containing SPIR-V or an implementation-defined intermediate languagewill 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 IL pointed to by |
| public static long | clCreateProgramWithIL(long context, ByteBuffer il, 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:
a valid host command queue. The specified set of allocation ranges will be migrated to the OpenCL device associated with command_queue, PointerBuffer command_queue.a pointer to an array of pointers. Each pointer in this array must be within an allocation produced by a call to svm_pointers, PointerBuffer SVMAlloc.an array of sizes. The pair sizes, long svm_pointers[i] and sizes[i] together define the starting address and number of bytes in a range to be
migrated. sizes may be NULL indicating that every allocation containing any svm_pointer[i] is to be migrated. Also, if
sizes[i] is zero, then the entire allocation containing svm_pointer[i] is migrated.a bit-field that is used to specify migration options 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 ranges of SVM allocations should be associated with. |
| public static int | Returns: SUCCESS with a time value in host_timestamp if provided. Otherwise, it returns one of the following errors:
a device returned by device, LongBuffer GetDeviceIDswill be updated with the value of the device timer in nanoseconds. The resolution of the timer is the same as the device profiling timer returned
by device_timestamp, LongBuffer GetDeviceInfo and the DEVICE_PROFILING_TIMER_RESOLUTION query.will be updated with the value of the host timer in nanoseconds at the closest possible point in time to that at which host_timestamp)device_timestamp was
returned. The resolution of the timer may be queried via GetPlatformInfo and the flag PLATFORM_HOST_TIMER_RESOLUTION.Returns a reasonably synchronized pair of timestamps from the device timer and the host timer as seen by device. |
| public static int | clGetDeviceAndHostTimer(long device, long[] device_timestamp, long[] host_timestamp)
Array version of: |
| public static int | Returns: SUCCESS with a time value in host_timestamp if provided. Otherwise, it returns one of the following errors:
a device returned by device, LongBuffer GetDeviceIDswill be updated with the value of the current timer in nanoseconds. The resolution of the timer may be queried via host_timestamp)GetPlatformInfo and the
flag PLATFORM_HOST_TIMER_RESOLUTION.Returns the current value of the host clock as seen by device. |
| public static int | |
| 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 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 parameterization of the query is passed from. If input_value, ByteBuffer input_value is NULL, it is ignored.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. |
| 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 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 parameterization of the query is passed from. If input_value, PointerBuffer input_value is NULL, it is ignored.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. |
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
a valid OpenCL context context, long a OpenCL device associated with device, long contexta valid command-queue for command_queue)deviceReplaces a default device command queue created with |
| public static long | |
| public static long | nclCreateProgramWithIL(long context, long il, long
the number of bytes in length, long errcode_ret)ilUnsafe version of: |
| public static int | nclEnqueueSVMMigrateMem(long command_queue, int
the number of pointers in the specified num_svm_pointers, long svm_pointers, long sizes, long flags, int svm_pointers array, and the number of sizes in the sizes array, if sizes is not
NULL.the number of events in num_events_in_wait_list, long event_wait_list, long event)event_wait_listUnsafe version of: |
| public static int | nclGetDeviceAndHostTimer(long device, long device_timestamp, long host_timestamp)
Unsafe version of: |
| public static int | |
| public static int | nclGetKernelSubGroupInfo(long kernel, long device, int param_name, long
the size in bytes of memory pointed to by input_value_size, long input_value, long input_valuethe 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: |
| CL_DEVICE_IL_VERSION | back to summary |
|---|---|
| public static final int CL_DEVICE_IL_VERSION Accepted as the The intermediate languages that can be supported by For an OpenCL 2.1 or 2.2 device, SPIR-V is a required IL prefix. If the device does not support intermediate language programs, the value must be | |
| CL_DEVICE_MAX_NUM_SUB_GROUPS | back to summary |
|---|---|
| public static final int CL_DEVICE_MAX_NUM_SUB_GROUPS Accepted as the Maximum number of sub-groups in a workgroup that a device is capable of executing on a single compute unit, for any given kernel instance running on the device. The minimum value is 1 if the device supports subgroups, and must be 0 for devices that do not support subgroups. Support for subgroups is required for an OpenCL 2.1 or 2.2 device. | |
| CL_DEVICE_SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS | back to summary |
|---|---|
| public static final int CL_DEVICE_SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS Accepted as the Is This query must return | |
| CL_KERNEL_COMPILE_NUM_SUB_GROUPS | back to summary |
|---|---|
| public static final int CL_KERNEL_COMPILE_NUM_SUB_GROUPS Accepted as the Returns the number of sub-groups per workgroup specified in the kernel source or IL. If the sub-group count is not specified then 0 is returned. | |
| CL_KERNEL_LOCAL_SIZE_FOR_SUB_GROUP_COUNT | back to summary |
|---|---|
| public static final int CL_KERNEL_LOCAL_SIZE_FOR_SUB_GROUP_COUNT Accepted as the Returns the local size that will generate the requested number of sub-groups for the kernel. The output array must be an array of | |
| CL_KERNEL_MAX_NUM_SUB_GROUPS | back to summary |
|---|---|
| public static final int CL_KERNEL_MAX_NUM_SUB_GROUPS Accepted as the This provides a mechanism for the application to query the maximum number of sub-groups that may make up each workgroup to execute a kernel on a specific device given by device. The OpenCL implementation uses the resource requirements of the kernel (register usage etc.) to determine what this work-group size should be. The returned value may be used to compute a work-group size to enqueue the kernel with to give a round number of sub-groups for an enqueue. | |
| CL_KERNEL_MAX_SUB_GROUP_SIZE_FOR_NDRANGE | back to summary |
|---|---|
| public static final int CL_KERNEL_MAX_SUB_GROUP_SIZE_FOR_NDRANGE Accepted as the Returns the maximum sub-group size for this kernel. All sub-groups must be the same size, while the last subgroup in any work-group (i.e. the subgroup with the maximum index) could be the same or smaller size. The | |
| CL_KERNEL_SUB_GROUP_COUNT_FOR_NDRANGE | back to summary |
|---|---|
| public static final int CL_KERNEL_SUB_GROUP_COUNT_FOR_NDRANGE Accepted as the Returns the number of sub-groups that will be present in each workgroup for a given local work size. All workgroups, apart from the last workgroup in each dimension in the presence of nonuniform work-group sizes, will have the same number of subgroups. The | |
| CL_PLATFORM_HOST_TIMER_RESOLUTION | back to summary |
|---|---|
| public static final int CL_PLATFORM_HOST_TIMER_RESOLUTION Accepted as the Returns the resolution of the host timer in nanoseconds as used by Support for device and host timer synchronization is required for platforms supporting OpenCL 2.1 or 2.2. This value must be 0 for devices that do not support device and host timer synchronization. | |
| CL_PROGRAM_IL | back to summary |
|---|---|
| public static final int CL_PROGRAM_IL Accepted as the Returns the program IL for programs created with If program is created with | |
| CL_QUEUE_DEVICE_DEFAULT | back to summary |
|---|---|
| public static final int CL_QUEUE_DEVICE_DEFAULT Accepted as the Return the current default command queue for the underlying device. | |
| CL_UNORM_INT_101010_2 | back to summary |
|---|---|
| public static final int CL_UNORM_INT_101010_2 cl_channel_type | |
| CL_VERSION_2_1 | back to summary |
|---|---|
| public static final int CL_VERSION_2_1 OpenCL Version. | |
| CL21 | back to summary |
|---|---|
| protected CL21() | |
| clCloneKernel | back to summary |
|---|---|
| public static long clCloneKernel(long source_kernel, IntBuffer errcode_ret) Makes a shallow copy of the kernel object, its arguments and any information passed to the kernel object using The returned kernel object is an exact copy of The resulting kernel will be in the same state as if All arguments of the new kernel object must be intact and it may be correctly used in the same situations as kernel except those that assume a
pre-existing reference count. Setting arguments on the new kernel object will not affect
| |
| clCloneKernel | back to summary |
|---|---|
| public static long clCloneKernel(long source_kernel, int[] errcode_ret) Array version of:
| |
| clCreateProgramWithIL | back to summary |
|---|---|
| public static long clCreateProgramWithIL(long context, ByteBuffer il, IntBuffer errcode_ret) Creates a program object for a context, and loads the IL pointed to by
| |
| clCreateProgramWithIL | back to summary |
|---|---|
| public static long clCreateProgramWithIL(long context, ByteBuffer il, int[] errcode_ret) Array version of:
| |
| clEnqueueSVMMigrateMem | back to summary |
|---|---|
| public static int clEnqueueSVMMigrateMem(long command_queue, PointerBuffer svm_pointers, PointerBuffer sizes, long flags, PointerBuffer event_wait_list, PointerBuffer event) Enqueues a command to indicate which device a set of ranges of SVM allocations should be associated with. Once the event returned by
The user is responsible for managing the event dependencies associated with this command in order to avoid overlapping access to SVM allocations.
Improperly specified event dependencies passed to
| |
| clGetDeviceAndHostTimer | back to summary |
|---|---|
| public static int clGetDeviceAndHostTimer(long device, LongBuffer device_timestamp, LongBuffer host_timestamp) Returns a reasonably synchronized pair of timestamps from the device timer and the host timer as seen by device. Implementations may need to execute
this query with a high latency in order to provide reasonable synchronization of the timestamps. The host timestamp and device timestamp returned by
this function and
| |
| clGetDeviceAndHostTimer | back to summary |
|---|---|
| public static int clGetDeviceAndHostTimer(long device, long[] device_timestamp, long[] host_timestamp) Array version of:
| |
| clGetHostTimer | back to summary |
|---|---|
| public static int clGetHostTimer(long device, LongBuffer host_timestamp) Returns the current value of the host clock as seen by device. This value is in the same timebase as the
| |
| clGetHostTimer | back to summary |
|---|---|
| public static int clGetHostTimer(long device, long[] host_timestamp) Array version of:
| |
| clGetKernelSubGroupInfo | back to summary | |||||
|---|---|---|---|---|---|---|
| public static int clGetKernelSubGroupInfo(long kernel, long device, int param_name, ByteBuffer input_value, ByteBuffer param_value, PointerBuffer param_value_size_ret) Returns information about the kernel object.
| ||||||
| clGetKernelSubGroupInfo | back to summary | |||||
|---|---|---|---|---|---|---|
| public static int clGetKernelSubGroupInfo(long kernel, long device, int param_name, ByteBuffer input_value, PointerBuffer param_value, PointerBuffer param_value_size_ret) Returns information about the kernel object.
| ||||||
| clSetDefaultDeviceCommandQueue | back to summary |
|---|---|
| public static int clSetDefaultDeviceCommandQueue(long context, long device, long command_queue) Replaces a default device command queue created with
| |
| nclCloneKernel | back to summary |
|---|---|
| public static long nclCloneKernel(long source_kernel, long errcode_ret) Unsafe version of: | |
| nclCreateProgramWithIL | back to summary |
|---|---|
| public static long nclCreateProgramWithIL(long context, long il, long length, long errcode_ret) Unsafe version of:
| |
| nclEnqueueSVMMigrateMem | back to summary |
|---|---|
| public static int nclEnqueueSVMMigrateMem(long command_queue, int num_svm_pointers, long svm_pointers, long sizes, long flags, int num_events_in_wait_list, long event_wait_list, long event) Unsafe version of:
| |
| nclGetDeviceAndHostTimer | back to summary |
|---|---|
| public static int nclGetDeviceAndHostTimer(long device, long device_timestamp, long host_timestamp) Unsafe version of: | |
| nclGetHostTimer | back to summary |
|---|---|
| public static int nclGetHostTimer(long device, long host_timestamp) Unsafe version of: | |
| nclGetKernelSubGroupInfo | back to summary |
|---|---|
| public static int nclGetKernelSubGroupInfo(long kernel, long device, int param_name, long input_value_size, long input_value, long param_value_size, long param_value, long param_value_size_ret) Unsafe version of:
| |