Modifier and Type | Method and Description |
---|---|
static cl_event |
CL.clCreateUserEvent(cl_context context,
int[] errcode_ret)
Creates a user event object.
|
Modifier and Type | Method and Description |
---|---|
static int |
CL.clEnqueueAcquireGLObjects(cl_command_queue command_queue,
int num_objects,
cl_mem[] mem_objects,
int num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event)
Acquire OpenCL memory objects that have been created from OpenGL objects.
|
static int |
CL.clEnqueueAcquireGLObjects(cl_command_queue command_queue,
int num_objects,
cl_mem[] mem_objects,
int num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event)
Acquire OpenCL memory objects that have been created from OpenGL objects.
|
static int |
CL.clEnqueueBarrierWithWaitList(cl_command_queue command_queue,
int num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event)
A synchronization point that enqueues a barrier operation.
|
static int |
CL.clEnqueueBarrierWithWaitList(cl_command_queue command_queue,
int num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event)
A synchronization point that enqueues a barrier operation.
|
static int |
CL.clEnqueueCopyBuffer(cl_command_queue command_queue,
cl_mem src_buffer,
cl_mem dst_buffer,
long src_offset,
long dst_offset,
long cb,
int num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event)
Enqueues a command to copy from one buffer object to another.
|
static int |
CL.clEnqueueCopyBuffer(cl_command_queue command_queue,
cl_mem src_buffer,
cl_mem dst_buffer,
long src_offset,
long dst_offset,
long cb,
int num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event)
Enqueues a command to copy from one buffer object to another.
|
static int |
CL.clEnqueueCopyBufferRect(cl_command_queue command_queue,
cl_mem src_buffer,
cl_mem 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 num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event)
Enqueues a command to copy a rectangular region from the buffer object to another buffer object.
|
static int |
CL.clEnqueueCopyBufferRect(cl_command_queue command_queue,
cl_mem src_buffer,
cl_mem 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 num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event)
Enqueues a command to copy a rectangular region from the buffer object to another buffer object.
|
static int |
CL.clEnqueueCopyBufferToImage(cl_command_queue command_queue,
cl_mem src_buffer,
cl_mem dst_image,
long src_offset,
long[] dst_origin,
long[] region,
int num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event)
Enqueues a command to copy a buffer object to an image object.
|
static int |
CL.clEnqueueCopyBufferToImage(cl_command_queue command_queue,
cl_mem src_buffer,
cl_mem dst_image,
long src_offset,
long[] dst_origin,
long[] region,
int num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event)
Enqueues a command to copy a buffer object to an image object.
|
static int |
CL.clEnqueueCopyImage(cl_command_queue command_queue,
cl_mem src_image,
cl_mem dst_image,
long[] src_origin,
long[] dst_origin,
long[] region,
int num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event)
Enqueues a command to copy image objects.
|
static int |
CL.clEnqueueCopyImage(cl_command_queue command_queue,
cl_mem src_image,
cl_mem dst_image,
long[] src_origin,
long[] dst_origin,
long[] region,
int num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event)
Enqueues a command to copy image objects.
|
static int |
CL.clEnqueueCopyImageToBuffer(cl_command_queue command_queue,
cl_mem src_image,
cl_mem dst_buffer,
long[] src_origin,
long[] region,
long dst_offset,
int num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event)
Enqueues a command to copy an image object to a buffer object.
|
static int |
CL.clEnqueueCopyImageToBuffer(cl_command_queue command_queue,
cl_mem src_image,
cl_mem dst_buffer,
long[] src_origin,
long[] region,
long dst_offset,
int num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event)
Enqueues a command to copy an image object to a buffer object.
|
static int |
CL.clEnqueueFillBuffer(cl_command_queue command_queue,
cl_mem buffer,
Pointer pattern,
long pattern_size,
long offset,
long size,
int num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event)
Enqueues a command to fill a buffer object with a pattern of a given pattern size.
|
static int |
CL.clEnqueueFillBuffer(cl_command_queue command_queue,
cl_mem buffer,
Pointer pattern,
long pattern_size,
long offset,
long size,
int num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event)
Enqueues a command to fill a buffer object with a pattern of a given pattern size.
|
static int |
CL.clEnqueueFillImage(cl_command_queue command_queue,
cl_mem image,
Pointer fill_color,
long[] origin,
long[] region,
int num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event)
Enqueues a command to fill an image object with a specified color.
|
static int |
CL.clEnqueueFillImage(cl_command_queue command_queue,
cl_mem image,
Pointer fill_color,
long[] origin,
long[] region,
int num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event)
Enqueues a command to fill an image object with a specified color.
|
static java.nio.ByteBuffer |
CL.clEnqueueMapBuffer(cl_command_queue command_queue,
cl_mem buffer,
boolean blocking_map,
long map_flags,
long offset,
long cb,
int num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event,
int[] errcode_ret)
Enqueues a command to map a region of the buffer object given by
buffer into the host address space and returns a pointer to this mapped region. |
static java.nio.ByteBuffer |
CL.clEnqueueMapBuffer(cl_command_queue command_queue,
cl_mem buffer,
boolean blocking_map,
long map_flags,
long offset,
long cb,
int num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event,
int[] errcode_ret)
Enqueues a command to map a region of the buffer object given by
buffer into the host address space and returns a pointer to this mapped region. |
static java.nio.ByteBuffer |
CL.clEnqueueMapImage(cl_command_queue command_queue,
cl_mem image,
boolean blocking_map,
long map_flags,
long[] origin,
long[] region,
long[] image_row_pitch,
long[] image_slice_pitch,
int num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event,
int[] errcode_ret)
Enqueues a command to map a region of an image object into the host address
space and returns a pointer to this mapped region.
|
static java.nio.ByteBuffer |
CL.clEnqueueMapImage(cl_command_queue command_queue,
cl_mem image,
boolean blocking_map,
long map_flags,
long[] origin,
long[] region,
long[] image_row_pitch,
long[] image_slice_pitch,
int num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event,
int[] errcode_ret)
Enqueues a command to map a region of an image object into the host address
space and returns a pointer to this mapped region.
|
static int |
CL.clEnqueueMarker(cl_command_queue command_queue,
cl_event event)
Deprecated.
As of OpenCL 1.2
|
static int |
CL.clEnqueueMarkerWithWaitList(cl_command_queue command_queue,
int num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event)
Enqueues a marker command which waits for either a list of events to complete,
or all previously enqueued commands to complete.
|
static int |
CL.clEnqueueMarkerWithWaitList(cl_command_queue command_queue,
int num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event)
Enqueues a marker command which waits for either a list of events to complete,
or all previously enqueued commands to complete.
|
static int |
CL.clEnqueueMigrateMemObjects(cl_command_queue command_queue,
int num_mem_objects,
cl_mem[] mem_objects,
long flags,
int num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event)
Enqueues a command to indicate which device a set of memory objects should be associated with.
|
static int |
CL.clEnqueueMigrateMemObjects(cl_command_queue command_queue,
int num_mem_objects,
cl_mem[] mem_objects,
long flags,
int num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event)
Enqueues a command to indicate which device a set of memory objects should be associated with.
|
static int |
CL.clEnqueueNativeKernel(cl_command_queue command_queue,
EnqueueNativeKernelFunction user_func,
java.lang.Object args,
long cb_args,
int num_mem_objects,
cl_mem[] mem_list,
Pointer[] args_mem_loc,
int num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event)
Enqueues a command to execute a native C/C++ function not compiled using the OpenCL compiler.
|
static int |
CL.clEnqueueNativeKernel(cl_command_queue command_queue,
EnqueueNativeKernelFunction user_func,
java.lang.Object args,
long cb_args,
int num_mem_objects,
cl_mem[] mem_list,
Pointer[] args_mem_loc,
int num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event)
Enqueues a command to execute a native C/C++ function not compiled using the OpenCL compiler.
|
static int |
CL.clEnqueueNDRangeKernel(cl_command_queue command_queue,
cl_kernel kernel,
int work_dim,
long[] global_work_offset,
long[] global_work_size,
long[] local_work_size,
int num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event)
Enqueues a command to execute a kernel on a device.
|
static int |
CL.clEnqueueNDRangeKernel(cl_command_queue command_queue,
cl_kernel kernel,
int work_dim,
long[] global_work_offset,
long[] global_work_size,
long[] local_work_size,
int num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event)
Enqueues a command to execute a kernel on a device.
|
static int |
CL.clEnqueueReadBuffer(cl_command_queue command_queue,
cl_mem buffer,
boolean blocking_read,
long offset,
long cb,
Pointer ptr,
int num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event)
Enqueue commands to read from a buffer object to host memory.
|
static int |
CL.clEnqueueReadBuffer(cl_command_queue command_queue,
cl_mem buffer,
boolean blocking_read,
long offset,
long cb,
Pointer ptr,
int num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event)
Enqueue commands to read from a buffer object to host memory.
|
static int |
CL.clEnqueueReadBufferRect(cl_command_queue command_queue,
cl_mem buffer,
boolean blocking_read,
long[] buffer_offset,
long[] host_offset,
long[] region,
long buffer_row_pitch,
long buffer_slice_pitch,
long host_row_pitch,
long host_slice_pitch,
Pointer ptr,
int num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event)
Enqueue commands to read from a rectangular region from a buffer object to host memory.
|
static int |
CL.clEnqueueReadBufferRect(cl_command_queue command_queue,
cl_mem buffer,
boolean blocking_read,
long[] buffer_offset,
long[] host_offset,
long[] region,
long buffer_row_pitch,
long buffer_slice_pitch,
long host_row_pitch,
long host_slice_pitch,
Pointer ptr,
int num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event)
Enqueue commands to read from a rectangular region from a buffer object to host memory.
|
static int |
CL.clEnqueueReadImage(cl_command_queue command_queue,
cl_mem image,
boolean blocking_read,
long[] origin,
long[] region,
long row_pitch,
long slice_pitch,
Pointer ptr,
int num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event)
Enqueues a command to read from a 2D or 3D image object to host memory.
|
static int |
CL.clEnqueueReadImage(cl_command_queue command_queue,
cl_mem image,
boolean blocking_read,
long[] origin,
long[] region,
long row_pitch,
long slice_pitch,
Pointer ptr,
int num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event)
Enqueues a command to read from a 2D or 3D image object to host memory.
|
static int |
CL.clEnqueueReleaseGLObjects(cl_command_queue command_queue,
int num_objects,
cl_mem[] mem_objects,
int num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event)
Release OpenCL memory objects that have been created from OpenGL objects.
|
static int |
CL.clEnqueueReleaseGLObjects(cl_command_queue command_queue,
int num_objects,
cl_mem[] mem_objects,
int num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event)
Release OpenCL memory objects that have been created from OpenGL objects.
|
static int |
CL.clEnqueueSVMFree(cl_command_queue command_queue,
int num_svm_pointers,
Pointer[] svm_pointers,
SVMFreeFunction pfn_free_func,
java.lang.Object user_data,
int num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event)
Enqueues a command to free the shared virtual memory allocated using clSVMAlloc or a shared system memory pointer.
|
static int |
CL.clEnqueueSVMFree(cl_command_queue command_queue,
int num_svm_pointers,
Pointer[] svm_pointers,
SVMFreeFunction pfn_free_func,
java.lang.Object user_data,
int num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event)
Enqueues a command to free the shared virtual memory allocated using clSVMAlloc or a shared system memory pointer.
|
static int |
CL.clEnqueueSVMMap(cl_command_queue command_queue,
boolean blocking_map,
long flags,
Pointer svm_ptr,
long size,
int num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event)
Enqueues a command that will allow the host to update a region of a SVM buffer.
|
static int |
CL.clEnqueueSVMMap(cl_command_queue command_queue,
boolean blocking_map,
long flags,
Pointer svm_ptr,
long size,
int num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event)
Enqueues a command that will allow the host to update a region of a SVM buffer.
|
static int |
CL.clEnqueueSVMMemcpy(cl_command_queue command_queue,
boolean blocking_copy,
Pointer dst_ptr,
Pointer src_ptr,
long size,
int num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event)
Enqueues a command to do a memcpy operation.
|
static int |
CL.clEnqueueSVMMemcpy(cl_command_queue command_queue,
boolean blocking_copy,
Pointer dst_ptr,
Pointer src_ptr,
long size,
int num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event)
Enqueues a command to do a memcpy operation.
|
static int |
CL.clEnqueueSVMMemFill(cl_command_queue command_queue,
Pointer svm_ptr,
Pointer pattern,
long pattern_size,
long size,
int num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event)
Enqueues a command to fill a region in memory with a pattern of a given pattern size.
|
static int |
CL.clEnqueueSVMMemFill(cl_command_queue command_queue,
Pointer svm_ptr,
Pointer pattern,
long pattern_size,
long size,
int num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event)
Enqueues a command to fill a region in memory with a pattern of a given pattern size.
|
static int |
CL.clEnqueueSVMUnmap(cl_command_queue command_queue,
Pointer svm_ptr,
int num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event)
Enqueues a command to indicate that the host has completed
updating the region given by
svm_ptr and which was specified in a
previous call to clEnqueueSVMMap. |
static int |
CL.clEnqueueSVMUnmap(cl_command_queue command_queue,
Pointer svm_ptr,
int num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event)
Enqueues a command to indicate that the host has completed
updating the region given by
svm_ptr and which was specified in a
previous call to clEnqueueSVMMap. |
static int |
CL.clEnqueueTask(cl_command_queue command_queue,
cl_kernel kernel,
int num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event)
Deprecated.
As of OpenCL 2.0
|
static int |
CL.clEnqueueTask(cl_command_queue command_queue,
cl_kernel kernel,
int num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event)
Deprecated.
As of OpenCL 2.0
|
static int |
CL.clEnqueueUnmapMemObject(cl_command_queue command_queue,
cl_mem memobj,
java.nio.ByteBuffer mapped_ptr,
int num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event)
Enqueues a command to unmap a previously mapped region of a memory object.
|
static int |
CL.clEnqueueUnmapMemObject(cl_command_queue command_queue,
cl_mem memobj,
java.nio.ByteBuffer mapped_ptr,
int num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event)
Enqueues a command to unmap a previously mapped region of a memory object.
|
static int |
CL.clEnqueueWaitForEvents(cl_command_queue command_queue,
int num_events,
cl_event[] event_list)
Deprecated.
As of OpenCL 1.2
|
static int |
CL.clEnqueueWriteBuffer(cl_command_queue command_queue,
cl_mem buffer,
boolean blocking_write,
long offset,
long cb,
Pointer ptr,
int num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event)
Enqueue commands to write to a buffer object from host memory.
|
static int |
CL.clEnqueueWriteBuffer(cl_command_queue command_queue,
cl_mem buffer,
boolean blocking_write,
long offset,
long cb,
Pointer ptr,
int num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event)
Enqueue commands to write to a buffer object from host memory.
|
static int |
CL.clEnqueueWriteBufferRect(cl_command_queue command_queue,
cl_mem buffer,
boolean blocking_write,
long[] buffer_offset,
long[] host_offset,
long[] region,
long buffer_row_pitch,
long buffer_slice_pitch,
long host_row_pitch,
long host_slice_pitch,
Pointer ptr,
int num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event)
Enqueue commands to write a rectangular region to a buffer object from host memory.
|
static int |
CL.clEnqueueWriteBufferRect(cl_command_queue command_queue,
cl_mem buffer,
boolean blocking_write,
long[] buffer_offset,
long[] host_offset,
long[] region,
long buffer_row_pitch,
long buffer_slice_pitch,
long host_row_pitch,
long host_slice_pitch,
Pointer ptr,
int num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event)
Enqueue commands to write a rectangular region to a buffer object from host memory.
|
static int |
CL.clEnqueueWriteImage(cl_command_queue command_queue,
cl_mem image,
boolean blocking_write,
long[] origin,
long[] region,
long input_row_pitch,
long input_slice_pitch,
Pointer ptr,
int num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event)
Enqueues a command to write to a 2D or 3D image object from host memory.
|
static int |
CL.clEnqueueWriteImage(cl_command_queue command_queue,
cl_mem image,
boolean blocking_write,
long[] origin,
long[] region,
long input_row_pitch,
long input_slice_pitch,
Pointer ptr,
int num_events_in_wait_list,
cl_event[] event_wait_list,
cl_event event)
Enqueues a command to write to a 2D or 3D image object from host memory.
|
static int |
CL.clGetEventInfo(cl_event event,
int param_name,
long param_value_size,
Pointer param_value,
long[] param_value_size_ret)
Returns information about the event object.
|
static int |
CL.clGetEventProfilingInfo(cl_event event,
int param_name,
long param_value_size,
Pointer param_value,
long[] param_value_size_ret)
Returns profiling information for the command associated with event if profiling is enabled.
|
static int |
CL.clReleaseEvent(cl_event event)
Decrements the
event reference count. |
static int |
CL.clRetainEvent(cl_event event)
Increments the
event reference count. |
static int |
CL.clSetEventCallback(cl_event event,
int command_exec_callback_type,
EventCallbackFunction pfn_notify,
java.lang.Object user_data)
Registers a user callback function for a specific command execution status.
|
static int |
CL.clSetUserEventStatus(cl_event event,
int execution_status)
Sets the execution status of a user event object.
|
static int |
CL.clWaitForEvents(int num_events,
cl_event[] event_list)
Waits on the host thread for commands identified by event objects to complete.
|
void |
EventCallbackFunction.function(cl_event event,
int command_exec_callback_type,
java.lang.Object user_data)
The function that will be called
|