| Modifier and Type | Field and Description |
|---|---|
| public static final int | CL_ADDRESS_MIRRORED_REPEAT
cl_addressing_mode. |
| public static final int | CL_BUFFER_CREATE_TYPE_REGION
cl_buffer_create_type. |
| public static final int | CL_COMMAND_COPY_BUFFER_RECT
cl_command_type. |
| public static final int | CL_COMMAND_READ_BUFFER_RECT
cl_command_type. |
| public static final int | CL_COMMAND_USER
cl_command_type. |
| public static final int | CL_COMMAND_WRITE_BUFFER_RECT
cl_command_type. |
| public static final int | CL_CONTEXT_NUM_DEVICES
cl_context_info. |
| public static final int | CL_DEVICE_HOST_UNIFIED_MEMORY
cl_device_info. |
| public static final int | CL_DEVICE_NATIVE_VECTOR_WIDTH_CHAR
cl_device_info. |
| public static final int | CL_DEVICE_NATIVE_VECTOR_WIDTH_DOUBLE
cl_device_info. |
| public static final int | CL_DEVICE_NATIVE_VECTOR_WIDTH_FLOAT
cl_device_info. |
| public static final int | CL_DEVICE_NATIVE_VECTOR_WIDTH_HALF
cl_device_info. |
| public static final int | CL_DEVICE_NATIVE_VECTOR_WIDTH_INT
cl_device_info. |
| public static final int | CL_DEVICE_NATIVE_VECTOR_WIDTH_LONG
cl_device_info. |
| public static final int | CL_DEVICE_NATIVE_VECTOR_WIDTH_SHORT
cl_device_info. |
| public static final int | CL_DEVICE_OPENCL_C_VERSION
cl_device_info. |
| public static final int | CL_DEVICE_PREFERRED_VECTOR_WIDTH_HALF
cl_device_info. |
| public static final int | CL_EVENT_CONTEXT
cl_event_info. |
| public static final int | CL_EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST
Error Codes. |
| public static final int | CL_FP_SOFT_FLOAT
cl_device_fp_config - bitfield. |
| public static final int | CL_INVALID_PROPERTY
Error Codes. |
| public static final int | CL_KERNEL_PREFERRED_WORK_GROUP_SIZE_MULTIPLE
cl_kernel_work_group_info. |
| public static final int | CL_KERNEL_PRIVATE_MEM_SIZE
cl_kernel_work_group_info. |
| public static final int | CL_MEM_ASSOCIATED_MEMOBJECT
cl_mem_info. |
| public static final int | CL_MEM_OFFSET
cl_mem_info. |
| public static final int | CL_MISALIGNED_SUB_BUFFER_OFFSET
Error Codes. |
| public static final int | CL_RGBx
cl_channel_order. |
| public static final int | CL_RGx
cl_channel_order. |
| public static final int | CL_Rx
cl_channel_order. |
| public static final int | CL_VERSION_1_1
OpenCL Version. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description | |||
|---|---|---|---|---|
| public static long | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors in errcode_ret:
a valid buffer object and cannot be a sub-buffer object buffer, long a bit-field that is used to specify allocation and usage information about the sub-buffer memory object being created.
flags, int If the the type of buffer object to be created. Must be: buffer_create_type, ByteBuffer
details about the buffer object to be created.
buffer_create_info, IntBuffer When will return an appropriate error code. If errcode_ret)errcode_ret is NULL, no error code is returned.Creates a new buffer object (referred to as a sub-buffer object) from an existing buffer object. | |||
| public static long | clCreateSubBuffer(long buffer, long flags, int buffer_create_type, ByteBuffer buffer_create_info, int[] errcode_ret)
Array version of: | |||
| public static long | Returns: a valid non-zero event object anderrcode_ret is set to SUCCESS if the user event 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, IntBuffer will return an appropriate error code. If errcode_ret)errcode_ret is NULL, no error code is returned.Creates a user event object. | |||
| public static long | ||||
| 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, PointerBuffer the src_origin, PointerBuffer (x, y, z) offset in the memory region associated with src_buffer. For a 2D rectangle region, the z value given by src_origin[2]
should be 0. The offset in bytes is computed as src_origin[2] * src_slice_pitch + src_origin[1] * src_row_pitch + src_origin[0].the dst_origin, PointerBuffer (x, y, z) offset in the memory region associated with dst_buffer. For a 2D rectangle region, the z value given by dst_origin[2]
should be 0. The offset in bytes is computed as dst_origin[2] * dst_slice_pitch + dst_origin[1] * dst_row_pitch + dst_origin[0].the ( region, long width in bytes, height in rows, depth in slices) of the 2D or 3D rectangle being copied. For a 2D rectangle, the depth
value given by region[2] should be 1. The values in region cannot be 0.the length of each row in bytes to be used for the memory region associated with src_row_pitch, long src_buffer. If src_row_pitch is 0, src_row_pitch
is computed as region[0].the length of each 2D slice in bytes to be used for the memory region associated with src_slice_pitch, long src_buffer. If src_slice_pitch is 0,
src_slice_pitch is computed as region[1] * src_row_pitch.the length of each row in bytes to be used for the memory region associated with dst_row_pitch, long dst_buffer. If dst_row_pitch is 0, dst_row_pitch
is computed as region[0].the length of each 2D slice in bytes to be used for the memory region associated with dst_slice_pitch, PointerBuffer dst_buffer. If dst_slice_pitch is 0,
dst_slice_pitch is computed as region[1] * dst_row_pitch.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 2D or 3D rectangular region from the buffer object identified by | |||
| 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 nonblocking.
blocking_read, PointerBuffer If If the buffer_origin, PointerBuffer (x, y, z) offset in the memory region associated with buffer. For a 2D rectangle region, the z value given by buffer_origin[2]
should be 0. The offset in bytes is computed as buffer_origin[2] * buffer_slice_pitch + buffer_origin[1] * buffer_row_pitch + buffer_origin[0].the host_origin, PointerBuffer (x, y, z) offset in the memory region pointed to by ptr. For a 2D rectangle region, the z value given by host_origin[2]
should be 0. The offset in bytes is computed as host_origin[2] * host_slice_pitch + host_origin[1] * host_row_pitch + host_origin[0].the (width in bytes, height in rows, depth in slices) of the 2D or 3D rectangle being read or written. For a 2D rectangle copy, the depth value
given by region, long region[2] should be 1. The values in region cannot be 0.the length of each row in bytes to be used for the memory region associated with buffer_row_pitch, long buffer. If buffer_row_pitch is 0,
buffer_row_pitch is computed as region[0].the length of each 2D slice in bytes to be used for the memory region associated with buffer_slice_pitch, long buffer. If buffer_slice_pitch is 0,
buffer_slice_pitch is computed as region[1] * buffer_row_pitch.the length of each row in bytes to be used for the memory region pointed to by host_row_pitch, long ptr. If host_row_pitch is 0, host_row_pitch
is computed as region[0].the length of each 2D slice in bytes to be used for the memory region pointed to by host_slice_pitch, ByteBuffer ptr. If host_slice_pitch is 0,
host_slice_pitch is computed as region[1] * host_row_pitch.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 a 2D or 3D rectangular region 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 nonblocking.
blocking_read, PointerBuffer If If the buffer_origin, PointerBuffer (x, y, z) offset in the memory region associated with buffer. For a 2D rectangle region, the z value given by buffer_origin[2]
should be 0. The offset in bytes is computed as buffer_origin[2] * buffer_slice_pitch + buffer_origin[1] * buffer_row_pitch + buffer_origin[0].the host_origin, PointerBuffer (x, y, z) offset in the memory region pointed to by ptr. For a 2D rectangle region, the z value given by host_origin[2]
should be 0. The offset in bytes is computed as host_origin[2] * host_slice_pitch + host_origin[1] * host_row_pitch + host_origin[0].the (width in bytes, height in rows, depth in slices) of the 2D or 3D rectangle being read or written. For a 2D rectangle copy, the depth value
given by region, long region[2] should be 1. The values in region cannot be 0.the length of each row in bytes to be used for the memory region associated with buffer_row_pitch, long buffer. If buffer_row_pitch is 0,
buffer_row_pitch is computed as region[0].the length of each 2D slice in bytes to be used for the memory region associated with buffer_slice_pitch, long buffer. If buffer_slice_pitch is 0,
buffer_slice_pitch is computed as region[1] * buffer_row_pitch.the length of each row in bytes to be used for the memory region pointed to by host_row_pitch, long ptr. If host_row_pitch is 0, host_row_pitch
is computed as region[0].the length of each 2D slice in bytes to be used for the memory region pointed to by host_slice_pitch, ShortBuffer ptr. If host_slice_pitch is 0,
host_slice_pitch is computed as region[1] * host_row_pitch.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 a 2D or 3D rectangular region 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 nonblocking.
blocking_read, PointerBuffer If If the buffer_origin, PointerBuffer (x, y, z) offset in the memory region associated with buffer. For a 2D rectangle region, the z value given by buffer_origin[2]
should be 0. The offset in bytes is computed as buffer_origin[2] * buffer_slice_pitch + buffer_origin[1] * buffer_row_pitch + buffer_origin[0].the host_origin, PointerBuffer (x, y, z) offset in the memory region pointed to by ptr. For a 2D rectangle region, the z value given by host_origin[2]
should be 0. The offset in bytes is computed as host_origin[2] * host_slice_pitch + host_origin[1] * host_row_pitch + host_origin[0].the (width in bytes, height in rows, depth in slices) of the 2D or 3D rectangle being read or written. For a 2D rectangle copy, the depth value
given by region, long region[2] should be 1. The values in region cannot be 0.the length of each row in bytes to be used for the memory region associated with buffer_row_pitch, long buffer. If buffer_row_pitch is 0,
buffer_row_pitch is computed as region[0].the length of each 2D slice in bytes to be used for the memory region associated with buffer_slice_pitch, long buffer. If buffer_slice_pitch is 0,
buffer_slice_pitch is computed as region[1] * buffer_row_pitch.the length of each row in bytes to be used for the memory region pointed to by host_row_pitch, long ptr. If host_row_pitch is 0, host_row_pitch
is computed as region[0].the length of each 2D slice in bytes to be used for the memory region pointed to by host_slice_pitch, IntBuffer ptr. If host_slice_pitch is 0,
host_slice_pitch is computed as region[1] * host_row_pitch.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 a 2D or 3D rectangular region 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 nonblocking.
blocking_read, PointerBuffer If If the buffer_origin, PointerBuffer (x, y, z) offset in the memory region associated with buffer. For a 2D rectangle region, the z value given by buffer_origin[2]
should be 0. The offset in bytes is computed as buffer_origin[2] * buffer_slice_pitch + buffer_origin[1] * buffer_row_pitch + buffer_origin[0].the host_origin, PointerBuffer (x, y, z) offset in the memory region pointed to by ptr. For a 2D rectangle region, the z value given by host_origin[2]
should be 0. The offset in bytes is computed as host_origin[2] * host_slice_pitch + host_origin[1] * host_row_pitch + host_origin[0].the (width in bytes, height in rows, depth in slices) of the 2D or 3D rectangle being read or written. For a 2D rectangle copy, the depth value
given by region, long region[2] should be 1. The values in region cannot be 0.the length of each row in bytes to be used for the memory region associated with buffer_row_pitch, long buffer. If buffer_row_pitch is 0,
buffer_row_pitch is computed as region[0].the length of each 2D slice in bytes to be used for the memory region associated with buffer_slice_pitch, long buffer. If buffer_slice_pitch is 0,
buffer_slice_pitch is computed as region[1] * buffer_row_pitch.the length of each row in bytes to be used for the memory region pointed to by host_row_pitch, long ptr. If host_row_pitch is 0, host_row_pitch
is computed as region[0].the length of each 2D slice in bytes to be used for the memory region pointed to by host_slice_pitch, FloatBuffer ptr. If host_slice_pitch is 0,
host_slice_pitch is computed as region[1] * host_row_pitch.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 a 2D or 3D rectangular region 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 nonblocking.
blocking_read, PointerBuffer If If the buffer_origin, PointerBuffer (x, y, z) offset in the memory region associated with buffer. For a 2D rectangle region, the z value given by buffer_origin[2]
should be 0. The offset in bytes is computed as buffer_origin[2] * buffer_slice_pitch + buffer_origin[1] * buffer_row_pitch + buffer_origin[0].the host_origin, PointerBuffer (x, y, z) offset in the memory region pointed to by ptr. For a 2D rectangle region, the z value given by host_origin[2]
should be 0. The offset in bytes is computed as host_origin[2] * host_slice_pitch + host_origin[1] * host_row_pitch + host_origin[0].the (width in bytes, height in rows, depth in slices) of the 2D or 3D rectangle being read or written. For a 2D rectangle copy, the depth value
given by region, long region[2] should be 1. The values in region cannot be 0.the length of each row in bytes to be used for the memory region associated with buffer_row_pitch, long buffer. If buffer_row_pitch is 0,
buffer_row_pitch is computed as region[0].the length of each 2D slice in bytes to be used for the memory region associated with buffer_slice_pitch, long buffer. If buffer_slice_pitch is 0,
buffer_slice_pitch is computed as region[1] * buffer_row_pitch.the length of each row in bytes to be used for the memory region pointed to by host_row_pitch, long ptr. If host_row_pitch is 0, host_row_pitch
is computed as region[0].the length of each 2D slice in bytes to be used for the memory region pointed to by host_slice_pitch, DoubleBuffer ptr. If host_slice_pitch is 0,
host_slice_pitch is computed as region[1] * host_row_pitch.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 a 2D or 3D rectangular region from a buffer object to host memory. | |||
| public static int | clEnqueueReadBufferRect(long command_queue, long buffer, boolean blocking_read, PointerBuffer buffer_origin, PointerBuffer host_origin, PointerBuffer region, long buffer_row_pitch, long buffer_slice_pitch, long host_row_pitch, long host_slice_pitch, short[] ptr, PointerBuffer event_wait_list, PointerBuffer event)
Array version of: | |||
| public static int | clEnqueueReadBufferRect(long command_queue, long buffer, boolean blocking_read, PointerBuffer buffer_origin, PointerBuffer host_origin, PointerBuffer region, long buffer_row_pitch, long buffer_slice_pitch, long host_row_pitch, long host_slice_pitch, int[] ptr, PointerBuffer event_wait_list, PointerBuffer event)
Array version of: | |||
| public static int | clEnqueueReadBufferRect(long command_queue, long buffer, boolean blocking_read, PointerBuffer buffer_origin, PointerBuffer host_origin, PointerBuffer region, long buffer_row_pitch, long buffer_slice_pitch, long host_row_pitch, long host_slice_pitch, float[] ptr, PointerBuffer event_wait_list, PointerBuffer event)
Array version of: | |||
| public static int | clEnqueueReadBufferRect(long command_queue, long buffer, boolean blocking_read, PointerBuffer buffer_origin, PointerBuffer host_origin, PointerBuffer region, long buffer_row_pitch, long buffer_slice_pitch, long host_row_pitch, long host_slice_pitch, 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 buffer must be created with the same OpenCL context.a valid buffer object buffer, boolean indicates if the write operation is blocking or nonblocking.
blocking_write, PointerBuffer If If the buffer_origin, PointerBuffer (x, y, z) offset in the memory region associated with buffer. For a 2D rectangle region, the z value given by buffer_origin[2]
should be 0. The offset in bytes is computed as buffer_origin[2] * buffer_slice_pitch + buffer_origin[1] * buffer_row_pitch + buffer_origin[0].the host_origin, PointerBuffer (x, y, z) offset in the memory region pointed to by ptr. For a 2D rectangle region, the z value given by host_origin[2]
should be 0. The offset in bytes is computed as host_origin[2] * host_slice_pitch + host_origin[1] * host_row_pitch + host_origin[0].the (width in bytes, height in rows, depth in slices) of the 2D or 3D rectangle being read or written. For a 2D rectangle copy, the depth value
given by region, long region[2] should be 1. The values in region cannot be 0.the length of each row in bytes to be used for the memory region associated with buffer_row_pitch, long buffer. If buffer_row_pitch is 0,
buffer_row_pitch is computed as region[0].the length of each 2D slice in bytes to be used for the memory region associated with buffer_slice_pitch, long buffer. If buffer_slice_pitch is 0,
buffer_slice_pitch is computed as region[1] * buffer_row_pitch.the length of each row in bytes to be used for the memory region pointed to by host_row_pitch, long ptr. If host_row_pitch is 0, host_row_pitch
is computed as region[0].the length of each 2D slice in bytes to be used for the memory region pointed to by host_slice_pitch, ByteBuffer ptr. If host_slice_pitch is 0,
host_slice_pitch is computed as region[1] * host_row_pitch.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 a 2D or 3D rectangular region 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 nonblocking.
blocking_write, PointerBuffer If If the buffer_origin, PointerBuffer (x, y, z) offset in the memory region associated with buffer. For a 2D rectangle region, the z value given by buffer_origin[2]
should be 0. The offset in bytes is computed as buffer_origin[2] * buffer_slice_pitch + buffer_origin[1] * buffer_row_pitch + buffer_origin[0].the host_origin, PointerBuffer (x, y, z) offset in the memory region pointed to by ptr. For a 2D rectangle region, the z value given by host_origin[2]
should be 0. The offset in bytes is computed as host_origin[2] * host_slice_pitch + host_origin[1] * host_row_pitch + host_origin[0].the (width in bytes, height in rows, depth in slices) of the 2D or 3D rectangle being read or written. For a 2D rectangle copy, the depth value
given by region, long region[2] should be 1. The values in region cannot be 0.the length of each row in bytes to be used for the memory region associated with buffer_row_pitch, long buffer. If buffer_row_pitch is 0,
buffer_row_pitch is computed as region[0].the length of each 2D slice in bytes to be used for the memory region associated with buffer_slice_pitch, long buffer. If buffer_slice_pitch is 0,
buffer_slice_pitch is computed as region[1] * buffer_row_pitch.the length of each row in bytes to be used for the memory region pointed to by host_row_pitch, long ptr. If host_row_pitch is 0, host_row_pitch
is computed as region[0].the length of each 2D slice in bytes to be used for the memory region pointed to by host_slice_pitch, ShortBuffer ptr. If host_slice_pitch is 0,
host_slice_pitch is computed as region[1] * host_row_pitch.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 a 2D or 3D rectangular region 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 nonblocking.
blocking_write, PointerBuffer If If the buffer_origin, PointerBuffer (x, y, z) offset in the memory region associated with buffer. For a 2D rectangle region, the z value given by buffer_origin[2]
should be 0. The offset in bytes is computed as buffer_origin[2] * buffer_slice_pitch + buffer_origin[1] * buffer_row_pitch + buffer_origin[0].the host_origin, PointerBuffer (x, y, z) offset in the memory region pointed to by ptr. For a 2D rectangle region, the z value given by host_origin[2]
should be 0. The offset in bytes is computed as host_origin[2] * host_slice_pitch + host_origin[1] * host_row_pitch + host_origin[0].the (width in bytes, height in rows, depth in slices) of the 2D or 3D rectangle being read or written. For a 2D rectangle copy, the depth value
given by region, long region[2] should be 1. The values in region cannot be 0.the length of each row in bytes to be used for the memory region associated with buffer_row_pitch, long buffer. If buffer_row_pitch is 0,
buffer_row_pitch is computed as region[0].the length of each 2D slice in bytes to be used for the memory region associated with buffer_slice_pitch, long buffer. If buffer_slice_pitch is 0,
buffer_slice_pitch is computed as region[1] * buffer_row_pitch.the length of each row in bytes to be used for the memory region pointed to by host_row_pitch, long ptr. If host_row_pitch is 0, host_row_pitch
is computed as region[0].the length of each 2D slice in bytes to be used for the memory region pointed to by host_slice_pitch, IntBuffer ptr. If host_slice_pitch is 0,
host_slice_pitch is computed as region[1] * host_row_pitch.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 a 2D or 3D rectangular region 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 nonblocking.
blocking_write, PointerBuffer If If the buffer_origin, PointerBuffer (x, y, z) offset in the memory region associated with buffer. For a 2D rectangle region, the z value given by buffer_origin[2]
should be 0. The offset in bytes is computed as buffer_origin[2] * buffer_slice_pitch + buffer_origin[1] * buffer_row_pitch + buffer_origin[0].the host_origin, PointerBuffer (x, y, z) offset in the memory region pointed to by ptr. For a 2D rectangle region, the z value given by host_origin[2]
should be 0. The offset in bytes is computed as host_origin[2] * host_slice_pitch + host_origin[1] * host_row_pitch + host_origin[0].the (width in bytes, height in rows, depth in slices) of the 2D or 3D rectangle being read or written. For a 2D rectangle copy, the depth value
given by region, long region[2] should be 1. The values in region cannot be 0.the length of each row in bytes to be used for the memory region associated with buffer_row_pitch, long buffer. If buffer_row_pitch is 0,
buffer_row_pitch is computed as region[0].the length of each 2D slice in bytes to be used for the memory region associated with buffer_slice_pitch, long buffer. If buffer_slice_pitch is 0,
buffer_slice_pitch is computed as region[1] * buffer_row_pitch.the length of each row in bytes to be used for the memory region pointed to by host_row_pitch, long ptr. If host_row_pitch is 0, host_row_pitch
is computed as region[0].the length of each 2D slice in bytes to be used for the memory region pointed to by host_slice_pitch, FloatBuffer ptr. If host_slice_pitch is 0,
host_slice_pitch is computed as region[1] * host_row_pitch.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 a 2D or 3D rectangular region 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 nonblocking.
blocking_write, PointerBuffer If If the buffer_origin, PointerBuffer (x, y, z) offset in the memory region associated with buffer. For a 2D rectangle region, the z value given by buffer_origin[2]
should be 0. The offset in bytes is computed as buffer_origin[2] * buffer_slice_pitch + buffer_origin[1] * buffer_row_pitch + buffer_origin[0].the host_origin, PointerBuffer (x, y, z) offset in the memory region pointed to by ptr. For a 2D rectangle region, the z value given by host_origin[2]
should be 0. The offset in bytes is computed as host_origin[2] * host_slice_pitch + host_origin[1] * host_row_pitch + host_origin[0].the (width in bytes, height in rows, depth in slices) of the 2D or 3D rectangle being read or written. For a 2D rectangle copy, the depth value
given by region, long region[2] should be 1. The values in region cannot be 0.the length of each row in bytes to be used for the memory region associated with buffer_row_pitch, long buffer. If buffer_row_pitch is 0,
buffer_row_pitch is computed as region[0].the length of each 2D slice in bytes to be used for the memory region associated with buffer_slice_pitch, long buffer. If buffer_slice_pitch is 0,
buffer_slice_pitch is computed as region[1] * buffer_row_pitch.the length of each row in bytes to be used for the memory region pointed to by host_row_pitch, long ptr. If host_row_pitch is 0, host_row_pitch
is computed as region[0].the length of each 2D slice in bytes to be used for the memory region pointed to by host_slice_pitch, DoubleBuffer ptr. If host_slice_pitch is 0,
host_slice_pitch is computed as region[1] * host_row_pitch.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 a 2D or 3D rectangular region to a buffer object from host memory. | |||
| public static int | clEnqueueWriteBufferRect(long command_queue, long buffer, boolean blocking_write, PointerBuffer buffer_origin, PointerBuffer host_origin, PointerBuffer region, long buffer_row_pitch, long buffer_slice_pitch, long host_row_pitch, long host_slice_pitch, short[] ptr, PointerBuffer event_wait_list, PointerBuffer event)
Array version of: | |||
| public static int | clEnqueueWriteBufferRect(long command_queue, long buffer, boolean blocking_write, PointerBuffer buffer_origin, PointerBuffer host_origin, PointerBuffer region, long buffer_row_pitch, long buffer_slice_pitch, long host_row_pitch, long host_slice_pitch, int[] ptr, PointerBuffer event_wait_list, PointerBuffer event)
Array version of: | |||
| public static int | clEnqueueWriteBufferRect(long command_queue, long buffer, boolean blocking_write, PointerBuffer buffer_origin, PointerBuffer host_origin, PointerBuffer region, long buffer_row_pitch, long buffer_slice_pitch, long host_row_pitch, long host_slice_pitch, float[] ptr, PointerBuffer event_wait_list, PointerBuffer event)
Array version of: | |||
| public static int | clEnqueueWriteBufferRect(long command_queue, long buffer, boolean blocking_write, PointerBuffer buffer_origin, PointerBuffer host_origin, PointerBuffer region, long buffer_row_pitch, long buffer_slice_pitch, long host_row_pitch, long host_slice_pitch, 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:
a valid event object event, int the command execution status for which the callback is registered. There is no guarantee that the callback functions registered for various
execution status values for an event will be called in the exact order that the execution status of a command changes. Furthermore, it should be
noted that receiving a call back for an event with a status other than command_exec_callback_type, CLEventCallbackI COMPLETE, in no way implies that the memory model or
execution model as defined by the OpenCL specification has changed. For example, it is not valid to assume that a corresponding memory transfer has
completed unless the event is in a state COMPLETE. One of:
the event callback function that can be registered by the application. 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 will be passed as the user_data)user_data argument when pfn_notify is called. user_data can be NULL.Registers a user callback function for a specific command execution status. | |||
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
a valid memory object memobj, CLMemObjectDestructorCallbackI the callback function that can be registered by the application. 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 will be passed as the user_data)user_data argument when pfn_notify is called. user_data can be NULL.Registers a user callback function with a memory object. | |||
| public static int | Returns: SUCCESS if the function was executed successfully. Otherwise, it returns one of the following errors:
a user event object created using event, int CreateUserEventthe new execution status to be set and can be execution_status)COMPLETE or a negative integer value to indicate an error. A negative integer value
causes all enqueued commands that wait on this user event to be terminated. clSetUserEventStatus can only be called once to change the
execution status of event.Sets the execution status of a user event object. | |||
| public static long | nclCreateSubBuffer(long buffer, long flags, int buffer_create_type, long buffer_create_info, long errcode_ret)
Unsafe version of: | |||
| public static long | ||||
| public static int | nclEnqueueCopyBufferRect(long command_queue, long src_buffer, long dst_buffer, long src_origin, long dst_origin, long region, long src_row_pitch, long src_slice_pitch, long dst_row_pitch, long dst_slice_pitch, 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 | nclEnqueueReadBufferRect(long command_queue, long buffer, int blocking_read, long buffer_origin, long host_origin, long region, long buffer_row_pitch, long buffer_slice_pitch, long host_row_pitch, long host_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 | nclEnqueueWriteBufferRect(long command_queue, long buffer, int blocking_write, long buffer_origin, long host_origin, long region, long buffer_row_pitch, long buffer_slice_pitch, long host_row_pitch, long host_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 | nclSetEventCallback(long event, int command_exec_callback_type, long pfn_notify, long user_data)
Unsafe version of: | |||
| public static int | nclSetMemObjectDestructorCallback(long memobj, long pfn_notify, long user_data)
Unsafe version of: |