| Modifier and Type | Field and Description |
|---|---|
| public static final int | CL_ABGR
cl_channel_order |
| public static final int | CL_COMMAND_SVM_FREE
cl_command_type |
| public static final int | CL_COMMAND_SVM_MAP
cl_command_type |
| public static final int | CL_COMMAND_SVM_MEMCPY
cl_command_type |
| public static final int | CL_COMMAND_SVM_MEMFILL
cl_command_type |
| public static final int | CL_COMMAND_SVM_UNMAP
cl_command_type |
| public static final int | CL_DEVICE_GLOBAL_VARIABLE_PREFERRED_TOTAL_SIZE
Accepted as the |
| public static final int | CL_DEVICE_IMAGE_BASE_ADDRESS_ALIGNMENT
Accepted as the |
| public static final int | CL_DEVICE_IMAGE_PITCH_ALIGNMENT
Accepted as the |
| public static final int | CL_DEVICE_MAX_GLOBAL_VARIABLE_SIZE
Accepted as the |
| public static final int | CL_DEVICE_MAX_ON_DEVICE_EVENTS
Accepted as the |
| public static final int | CL_DEVICE_MAX_ON_DEVICE_QUEUES
Accepted as the |
| public static final int | CL_DEVICE_MAX_PIPE_ARGS
Accepted as the |
| public static final int | CL_DEVICE_MAX_READ_WRITE_IMAGE_ARGS
Accepted as the |
| public static final int | CL_DEVICE_PIPE_MAX_ACTIVE_RESERVATIONS
Accepted as the |
| public static final int | CL_DEVICE_PIPE_MAX_PACKET_SIZE
Accepted as the |
| public static final int | CL_DEVICE_PREFERRED_GLOBAL_ATOMIC_ALIGNMENT
Accepted as the |
| public static final int | CL_DEVICE_PREFERRED_LOCAL_ATOMIC_ALIGNMENT
Accepted as the |
| public static final int | CL_DEVICE_PREFERRED_PLATFORM_ATOMIC_ALIGNMENT
Accepted as the |
| public static final int | CL_DEVICE_QUEUE_ON_DEVICE_MAX_SIZE
Accepted as the |
| public static final int | CL_DEVICE_QUEUE_ON_DEVICE_PREFERRED_SIZE
Accepted as the |
| public static final int | CL_DEVICE_QUEUE_ON_DEVICE_PROPERTIES
Accepted as the |
| public static final int | CL_DEVICE_QUEUE_ON_HOST_PROPERTIES
Accepted as the |
| public static final int | CL_DEVICE_SVM_ATOMICS
cl_device_svm_capabilities |
| public static final int | CL_DEVICE_SVM_CAPABILITIES
Accepted as the |
| public static final int | CL_DEVICE_SVM_COARSE_GRAIN_BUFFER
cl_device_svm_capabilities |
| public static final int | CL_DEVICE_SVM_FINE_GRAIN_BUFFER
cl_device_svm_capabilities |
| public static final int | CL_DEVICE_SVM_FINE_GRAIN_SYSTEM
cl_device_svm_capabilities |
| public static final int | CL_INVALID_DEVICE_QUEUE
Error Codes |
| public static final int | CL_INVALID_PIPE_SIZE
Error Codes |
| public static final int | CL_KERNEL_ARG_TYPE_PIPE
cl_kernel_arg_type_qualifier |
| public static final int | CL_KERNEL_EXEC_INFO_SVM_FINE_GRAIN_SYSTEM
Accepted as the |
| public static final int | CL_KERNEL_EXEC_INFO_SVM_PTRS
Accepted as the |
| public static final int | CL_MEM_KERNEL_READ_AND_WRITE
This flag is only used by |
| public static final int | CL_MEM_OBJECT_PIPE
cl_mem_object_type |
| public static final int | CL_MEM_SVM_ATOMICS
SVM memory flag accepted by |
| public static final int | CL_MEM_SVM_FINE_GRAIN_BUFFER
SVM memory flag accepted by |
| public static final int | CL_MEM_USES_SVM_POINTER
Accepted as the |
| public static final int | CL_PIPE_MAX_PACKETS
Accepted as the |
| public static final int | CL_PIPE_PACKET_SIZE
Accepted as the |
| public static final int | CL_PROFILING_COMMAND_COMPLETE
Accepted as the |
| public static final int | CL_PROGRAM_BUILD_GLOBAL_VARIABLE_TOTAL_SIZE
Accepted as the |
| public static final int | CL_QUEUE_ON_DEVICE
cl_command_queue_properties |
| public static final int | CL_QUEUE_ON_DEVICE_DEFAULT
cl_command_queue_properties |
| public static final int | CL_QUEUE_SIZE
Accepted |
| public static final int | CL_SAMPLER_LOD_MAX
cl_sampler_info |
| public static final int | CL_SAMPLER_LOD_MIN
cl_sampler_info |
| public static final int | CL_SAMPLER_MIP_FILTER_MODE
cl_sampler_info |
| public static final int | CL_sBGRA
cl_channel_order |
| public static final int | CL_sRGB
cl_channel_order |
| public static final int | CL_sRGBA
cl_channel_order |
| public static final int | CL_sRGBx
cl_channel_order |
| public static final int | CL_VERSION_2_0
OpenCL Version. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description | |||||
|---|---|---|---|---|---|---|
| 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, LongBuffer CreateContext or have the same
device type as device type specified when context is created using CreateContextFromType.a list of properties for the command-queue and their corresponding values. Each property name is immediately followed by the corresponding desired
value. The list is terminated with properties, IntBuffer 0. If a supported property and its value is not specified in properties, its default value will be used.
properties can be NULL in which case the default values for supported command-queue properties will be used. One of:
will return an appropriate error code. If errcode_ret)errcode_ret is NULL, no error code is returned.Creates a host or device command-queue on a specific device. | |||||
| public static long | clCreateCommandQueueWithProperties(long context, long device, long[] properties, int[] errcode_ret)
Array version of: | |||||
| public static long | Returns: a valid non-zero pipe object anderrcode_ret is set to SUCCESS if the pipe 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 pipe object context, long a bit-field that is used to specify allocation and usage information such as the memory arena that should be used to allocate the pipe object and
how it will be used. If value specified for flags is 0, the default is used which is flags, int MEM_READ_WRITE.the size in bytes of a pipe packet pipe_packet_size, int the pipe capacity by specifying the maximum number of packets the pipe can hold pipe_max_packets, PointerBuffer a list of properties for the pipe and their corresponding values. Each property name is immediately followed by the corresponding desired value. The
list is terminated with properties, IntBuffer 0. In OpenCL 2.0, properties must be NULL.will return an appropriate error code. If errcode_ret)errcode_ret is NULL, no error code is returned.Creates a pipe object. | |||||
| public static long | clCreatePipe(long context, long flags, int pipe_packet_size, int pipe_max_packets, PointerBuffer properties, 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, LongBuffer a list of sampler property names and their corresponding values. Each sampler property name is immediately followed by the corresponding desired
value. The list is terminated with sampler_properties, IntBuffer 0. If a supported property and its value is not specified in sampler_properties, its default
value will be used. sampler_properties can be NULL in which case the default values for supported sampler properties will be used.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 | clCreateSamplerWithProperties(long context, long[] sampler_properties, 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 command_queue, PointerBuffer the shared virtual memory pointers to be freed. Each pointer in svm_pointers, CLSVMFreeCallbackI svm_pointers that was allocated using SVMAlloc must have been allocated
from the same context from which command_queue was created. The memory associated with svm_pointers can be reused or freed after the
function returns.the callback function to be called to free the SVM pointers. If pfn_free_func is pfn_free_func, long NULL, all pointers specified in svm_pointers must be
allocated using SVMAlloc and the OpenCL implementation will free these SVM pointers. pfn_free_func must be a valid callback function if any
SVM pointer to be freed is a shared system memory pointer i.e. not allocated using SVMAlloc. If pfn_free_func is a valid callback function,
the OpenCL implementation will call pfn_free_func to free all the SVM pointers specified in svm_pointers.will be passed as the user_data, PointerBuffer user_data argument when pfn_free_func is called. user_data can be NULL.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 free the shared virtual memory buffer allocated using | |||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
a valid host command-queue command_queue, boolean indicates if the map operation is blocking or non-blocking.
blocking_map, long If If a bit-field map_flags, ByteBuffer a pointer to a memory region and svm_ptr, PointerBuffer size in bytes that will be updated by the host. If svm_ptr is allocated using SVMAlloc then it
must be allocated from the same context from which command_queue was created. Otherwise the behavior is undefined.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 that will allow the host to update a region of a SVM buffer. | |||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the host command-queue in which the read / write command will be queued command_queue, boolean indicates if the copy operation is blocking or non-blocking.
blocking_copy, ByteBuffer If If the pointer to a memory region where data is copied to dst_ptr, ByteBuffer the pointer to a memory region where data is copied from src_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 do a | |||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the host command-queue in which the fill command will be queued command_queue, ByteBuffer a pointer to a memory region that will be filled with pattern. It must be aligned to svm_ptr, ByteBuffer pattern_size bytes. If svm_ptr is allocated
using SVMAlloc then it must be allocated from the same context from which command_queue was created. Otherwise the behavior is undefined.a pointer to the data pattern of size pattern, PointerBuffer pattern_size in bytes. pattern will be used to fill a region in buffer starting at
svm_ptr 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 region pointed to by svm_ptr 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.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 a region in memory 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:
a valid host command-queue command_queue, ByteBuffer a pointer that was specified in a previous call to svm_ptr, PointerBuffer EnqueueSVMMap. If svm_ptr is allocated using SVMAlloc then it must be allocated from
the same context from which command_queue was created. Otherwise the behavior is undefined.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 that the host has completed updating the region given by | |||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the pipe object being queried pipe, int the information to query 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 specific to a pipe object. | |||||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
the pipe object being queried pipe, int the information to query 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 specific to a pipe object. | |||||
| public static int | clGetPipeInfo(long pipe, int param_name, int[] param_value, PointerBuffer param_value_size_ret)
Array version of: | |||||
| 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 arg_index, ByteBuffer 0 for the leftmost argument to n - 1, where
n is the total number of arguments declared by a kernel.the SVM pointer that should be used as the argument value for argument specified by arg_value)arg_index. The SVM pointer specified is the value used
by all API calls that enqueue kernel (EnqueueNDRangeKernel) until the argument value is changed by a call to
SetKernelArgSVMPointer for kernel. The SVM pointer can only be used for arguments that are declared to be a pointer to global or
constant memory. The SVM pointer value must be aligned according to the argument's type. For example, if the argument is declared to be
global float4 *p, the SVM pointer value passed for p must be at a minimum aligned to a float4. The SVM pointer value
specified as the argument value can be the pointer returned by SVMAlloc or can be a pointer + offset into the SVM region.Set a SVM pointer as the argument value for a specific argument of a kernel. | |||||
| 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 be passed to param_name, ByteBuffer kernel. One of:
a pointer to memory where the appropriate values determined by param_value)param_name are specifiedCan be used to pass additional information other than argument values to a kernel. | |||||
| 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 be passed to param_name, PointerBuffer kernel. One of:
a pointer to memory where the appropriate values determined by param_value)param_name are specifiedCan be used to pass additional information other than argument values to a kernel. | |||||
| 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 be passed to param_name, IntBuffer kernel. One of:
a pointer to memory where the appropriate values determined by param_value)param_name are specifiedCan be used to pass additional information other than argument values to a kernel. | |||||
| public static int | clSetKernelExecInfo(long kernel, int param_name, int[] param_value)
Array version of: | |||||
| public static ByteBuffer | Returns: a valid non-NULL shared virtual memory address if the SVM buffer is successfully allocated. Otherwise, like malloc, it returns a NULL pointer
value. SVMAlloc will fail if:
a valid OpenCL context used to create the SVM buffer context, long a bit-field that is used to specify allocation and usage information. One of: flags, long
the size in bytes of the SVM buffer to be allocated size, int the minimum alignment in bytes that is required for the newly created buffer's memory region. It must be a power of two up to the largest data type
supported by the OpenCL device. For the full profile, the largest data type is alignment)long16. For the embedded profile, it is long16 if the
device supports 64-bit integers; otherwise it is int16. If alignment is 0, a default alignment will be used that is equal to the
size of largest data type supported by the OpenCL implementation.Allocates a shared virtual memory buffer (referred to as a SVM buffer) that can be shared by the host and all devices in an OpenCL context that support shared virtual memory. | |||||
| public static void | clSVMFree(long
a valid OpenCL context used to create the SVM buffer context, ByteBuffer must be the value returned by a call to svm_pointer)SVMAlloc. If a NULL pointer is passed in svm_pointer, no action occurs.Frees a shared virtual memory buffer allocated using | |||||
| public static long | nclCreateCommandQueueWithProperties(long context, long device, long properties, long errcode_ret)
Unsafe version of: | |||||
| public static long | nclCreatePipe(long context, long flags, int pipe_packet_size, int pipe_max_packets, long properties, long errcode_ret)
Unsafe version of: | |||||
| public static long | nclCreateSamplerWithProperties(long context, long sampler_properties, long errcode_ret)
Unsafe version of: | |||||
| public static int | nclEnqueueSVMFree(long command_queue, int
the number of pointers in the num_svm_pointers, long svm_pointers, long pfn_free_func, long user_data, int svm_pointers arraythe number of events in num_events_in_wait_list, long event_wait_list, long event)event_wait_listUnsafe version of: | |||||
| public static int | nclEnqueueSVMMap(long command_queue, int blocking_map, long map_flags, long svm_ptr, long
the size of the memory region to map, in bytes 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 | nclEnqueueSVMMemcpy(long command_queue, int blocking_copy, long dst_ptr, long src_ptr, long
the size in bytes of data being copied 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 | nclEnqueueSVMMemFill(long command_queue, long svm_ptr, long pattern, long
the size of the pattern_size, long pattern array, in bytesthe size in bytes of region being filled starting with size, int svm_ptr and must be a multiple of pattern_sizethe number of events in num_events_in_wait_list, long event_wait_list, long event)event_wait_listUnsafe version of: | |||||
| public static int | nclEnqueueSVMUnmap(long command_queue, long svm_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 | nclGetPipeInfo(long pipe, 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 | nclSetKernelArgSVMPointer(long kernel, int arg_index, long arg_value)
Unsafe version of: | |||||
| public static int | nclSetKernelExecInfo(long kernel, int param_name, long
the size in bytes of the memory pointed to by param_value_size, long param_value)param_valueUnsafe version of: | |||||
| public static long | ||||||
| public static void |