Clover Git
OpenCL 1.1 software implementation
|
Events. More...
#include <CL/cl.h>
#include <core/events.h>
#include <core/memobject.h>
#include <cstdlib>
Go to the source code of this file.
Functions | |
static cl_int | queueEvent (Coal::CommandQueue *queue, Coal::Event *command, cl_event *event, cl_bool blocking) |
cl_int | clEnqueueReadBuffer (cl_command_queue command_queue, cl_mem buffer, cl_bool blocking_read, size_t offset, size_t cb, void *ptr, cl_uint num_events_in_wait_list, const cl_event *event_wait_list, cl_event *event) |
cl_int | clEnqueueWriteBuffer (cl_command_queue command_queue, cl_mem buffer, cl_bool blocking_write, size_t offset, size_t cb, const void *ptr, cl_uint num_events_in_wait_list, const cl_event *event_wait_list, cl_event *event) |
cl_int | clEnqueueReadBufferRect (cl_command_queue command_queue, cl_mem buffer, cl_bool blocking_read, const size_t *buffer_origin, const size_t *host_origin, const size_t *region, size_t buffer_row_pitch, size_t buffer_slice_pitch, size_t host_row_pitch, size_t host_slice_pitch, void *ptr, cl_uint num_events_in_wait_list, const cl_event *event_wait_list, cl_event *event) |
cl_int | clEnqueueWriteBufferRect (cl_command_queue command_queue, cl_mem buffer, cl_bool blocking_write, const size_t *buffer_origin, const size_t *host_origin, const size_t *region, size_t buffer_row_pitch, size_t buffer_slice_pitch, size_t host_row_pitch, size_t host_slice_pitch, const void *ptr, cl_uint num_events_in_wait_list, const cl_event *event_wait_list, cl_event *event) |
cl_int | clEnqueueCopyBufferRect (cl_command_queue command_queue, cl_mem src_buffer, cl_mem dst_buffer, const size_t *src_origin, const size_t *dst_origin, const size_t *region, size_t src_row_pitch, size_t src_slice_pitch, size_t dst_row_pitch, size_t dst_slice_pitch, cl_uint num_events_in_wait_list, const cl_event *event_wait_list, cl_event *event) |
cl_int | clEnqueueCopyBuffer (cl_command_queue command_queue, cl_mem src_buffer, cl_mem dst_buffer, size_t src_offset, size_t dst_offset, size_t cb, cl_uint num_events_in_wait_list, const cl_event *event_wait_list, cl_event *event) |
cl_int | clEnqueueReadImage (cl_command_queue command_queue, cl_mem image, cl_bool blocking_read, const size_t *origin, const size_t *region, size_t row_pitch, size_t slice_pitch, void *ptr, cl_uint num_events_in_wait_list, const cl_event *event_wait_list, cl_event *event) |
cl_int | clEnqueueWriteImage (cl_command_queue command_queue, cl_mem image, cl_bool blocking_write, const size_t *origin, const size_t *region, size_t row_pitch, size_t slice_pitch, const void *ptr, cl_uint num_events_in_wait_list, const cl_event *event_wait_list, cl_event *event) |
cl_int | clEnqueueCopyImage (cl_command_queue command_queue, cl_mem src_image, cl_mem dst_image, const size_t *src_origin, const size_t *dst_origin, const size_t *region, cl_uint num_events_in_wait_list, const cl_event *event_wait_list, cl_event *event) |
cl_int | clEnqueueCopyImageToBuffer (cl_command_queue command_queue, cl_mem src_image, cl_mem dst_buffer, const size_t *src_origin, const size_t *region, size_t dst_offset, cl_uint num_events_in_wait_list, const cl_event *event_wait_list, cl_event *event) |
cl_int | clEnqueueCopyBufferToImage (cl_command_queue command_queue, cl_mem src_buffer, cl_mem dst_image, size_t src_offset, const size_t *dst_origin, const size_t *region, cl_uint num_events_in_wait_list, const cl_event *event_wait_list, cl_event *event) |
void * | clEnqueueMapBuffer (cl_command_queue command_queue, cl_mem buffer, cl_bool blocking_map, cl_map_flags map_flags, size_t offset, size_t cb, cl_uint num_events_in_wait_list, const cl_event *event_wait_list, cl_event *event, cl_int *errcode_ret) |
void * | clEnqueueMapImage (cl_command_queue command_queue, cl_mem image, cl_bool blocking_map, cl_map_flags map_flags, const size_t *origin, const size_t *region, size_t *image_row_pitch, size_t *image_slice_pitch, cl_uint num_events_in_wait_list, const cl_event *event_wait_list, cl_event *event, cl_int *errcode_ret) |
cl_int | clEnqueueUnmapMemObject (cl_command_queue command_queue, cl_mem memobj, void *mapped_ptr, cl_uint num_events_in_wait_list, const cl_event *event_wait_list, cl_event *event) |
cl_int | clEnqueueNDRangeKernel (cl_command_queue command_queue, cl_kernel kernel, cl_uint work_dim, const size_t *global_work_offset, const size_t *global_work_size, const size_t *local_work_size, cl_uint num_events_in_wait_list, const cl_event *event_wait_list, cl_event *event) |
cl_int | clEnqueueTask (cl_command_queue command_queue, cl_kernel kernel, cl_uint num_events_in_wait_list, const cl_event *event_wait_list, cl_event *event) |
cl_int | clEnqueueNativeKernel (cl_command_queue command_queue, void(*user_func)(void *), void *args, size_t cb_args, cl_uint num_mem_objects, const cl_mem *mem_list, const void **args_mem_loc, cl_uint num_events_in_wait_list, const cl_event *event_wait_list, cl_event *event) |
cl_int | clEnqueueMarker (cl_command_queue command_queue, cl_event *event) |
cl_int | clEnqueueWaitForEvents (cl_command_queue command_queue, cl_uint num_events, const cl_event *event_list) |
cl_int | clEnqueueBarrier (cl_command_queue command_queue) |
Events.
Definition in file api_enqueue.cpp.
cl_int clEnqueueBarrier | ( | cl_command_queue | command_queue | ) |
Definition at line 772 of file api_enqueue.cpp.
References queueEvent(), and Coal::Object::T_CommandQueue.
cl_int clEnqueueCopyBuffer | ( | cl_command_queue | command_queue, |
cl_mem | src_buffer, | ||
cl_mem | dst_buffer, | ||
size_t | src_offset, | ||
size_t | dst_offset, | ||
size_t | cb, | ||
cl_uint | num_events_in_wait_list, | ||
const cl_event * | event_wait_list, | ||
cl_event * | event | ||
) |
Definition at line 255 of file api_enqueue.cpp.
References queueEvent(), and Coal::Object::T_CommandQueue.
cl_int clEnqueueCopyBufferRect | ( | cl_command_queue | command_queue, |
cl_mem | src_buffer, | ||
cl_mem | dst_buffer, | ||
const size_t * | src_origin, | ||
const size_t * | dst_origin, | ||
const size_t * | region, | ||
size_t | src_row_pitch, | ||
size_t | src_slice_pitch, | ||
size_t | dst_row_pitch, | ||
size_t | dst_slice_pitch, | ||
cl_uint | num_events_in_wait_list, | ||
const cl_event * | event_wait_list, | ||
cl_event * | event | ||
) |
Definition at line 217 of file api_enqueue.cpp.
References queueEvent(), and Coal::Object::T_CommandQueue.
cl_int clEnqueueCopyBufferToImage | ( | cl_command_queue | command_queue, |
cl_mem | src_buffer, | ||
cl_mem | dst_image, | ||
size_t | src_offset, | ||
const size_t * | dst_origin, | ||
const size_t * | region, | ||
cl_uint | num_events_in_wait_list, | ||
const cl_event * | event_wait_list, | ||
cl_event * | event | ||
) |
Definition at line 424 of file api_enqueue.cpp.
References queueEvent(), and Coal::Object::T_CommandQueue.
cl_int clEnqueueCopyImage | ( | cl_command_queue | command_queue, |
cl_mem | src_image, | ||
cl_mem | dst_image, | ||
const size_t * | src_origin, | ||
const size_t * | dst_origin, | ||
const size_t * | region, | ||
cl_uint | num_events_in_wait_list, | ||
const cl_event * | event_wait_list, | ||
cl_event * | event | ||
) |
Definition at line 360 of file api_enqueue.cpp.
References queueEvent(), and Coal::Object::T_CommandQueue.
cl_int clEnqueueCopyImageToBuffer | ( | cl_command_queue | command_queue, |
cl_mem | src_image, | ||
cl_mem | dst_buffer, | ||
const size_t * | src_origin, | ||
const size_t * | region, | ||
size_t | dst_offset, | ||
cl_uint | num_events_in_wait_list, | ||
const cl_event * | event_wait_list, | ||
cl_event * | event | ||
) |
Definition at line 392 of file api_enqueue.cpp.
References queueEvent(), and Coal::Object::T_CommandQueue.
void* clEnqueueMapBuffer | ( | cl_command_queue | command_queue, |
cl_mem | buffer, | ||
cl_bool | blocking_map, | ||
cl_map_flags | map_flags, | ||
size_t | offset, | ||
size_t | cb, | ||
cl_uint | num_events_in_wait_list, | ||
const cl_event * | event_wait_list, | ||
cl_event * | event, | ||
cl_int * | errcode_ret | ||
) |
Definition at line 456 of file api_enqueue.cpp.
References clReleaseEvent(), Coal::MapBufferEvent::ptr(), queueEvent(), Coal::Object::reference(), and Coal::Object::T_CommandQueue.
void* clEnqueueMapImage | ( | cl_command_queue | command_queue, |
cl_mem | image, | ||
cl_bool | blocking_map, | ||
cl_map_flags | map_flags, | ||
const size_t * | origin, | ||
const size_t * | region, | ||
size_t * | image_row_pitch, | ||
size_t * | image_slice_pitch, | ||
cl_uint | num_events_in_wait_list, | ||
const cl_event * | event_wait_list, | ||
cl_event * | event, | ||
cl_int * | errcode_ret | ||
) |
Definition at line 514 of file api_enqueue.cpp.
References clReleaseEvent(), Coal::MemObject::Image3D, Coal::MapImageEvent::ptr(), queueEvent(), Coal::Object::reference(), Coal::MapImageEvent::row_pitch(), Coal::MapImageEvent::slice_pitch(), Coal::Object::T_CommandQueue, and Coal::Image2D::type().
cl_int clEnqueueMarker | ( | cl_command_queue | command_queue, |
cl_event * | event | ||
) |
Definition at line 712 of file api_enqueue.cpp.
References Coal::Object::dereference(), queueEvent(), and Coal::Object::T_CommandQueue.
cl_int clEnqueueNativeKernel | ( | cl_command_queue | command_queue, |
void(*)(void *) | user_func, | ||
void * | args, | ||
size_t | cb_args, | ||
cl_uint | num_mem_objects, | ||
const cl_mem * | mem_list, | ||
const void ** | args_mem_loc, | ||
cl_uint | num_events_in_wait_list, | ||
const cl_event * | event_wait_list, | ||
cl_event * | event | ||
) |
Definition at line 679 of file api_enqueue.cpp.
References queueEvent(), and Coal::Object::T_CommandQueue.
cl_int clEnqueueNDRangeKernel | ( | cl_command_queue | command_queue, |
cl_kernel | kernel, | ||
cl_uint | work_dim, | ||
const size_t * | global_work_offset, | ||
const size_t * | global_work_size, | ||
const size_t * | local_work_size, | ||
cl_uint | num_events_in_wait_list, | ||
const cl_event * | event_wait_list, | ||
cl_event * | event | ||
) |
Definition at line 616 of file api_enqueue.cpp.
References queueEvent(), and Coal::Object::T_CommandQueue.
cl_int clEnqueueReadBuffer | ( | cl_command_queue | command_queue, |
cl_mem | buffer, | ||
cl_bool | blocking_read, | ||
size_t | offset, | ||
size_t | cb, | ||
void * | ptr, | ||
cl_uint | num_events_in_wait_list, | ||
const cl_event * | event_wait_list, | ||
cl_event * | event | ||
) |
Definition at line 77 of file api_enqueue.cpp.
References queueEvent(), and Coal::Object::T_CommandQueue.
cl_int clEnqueueReadBufferRect | ( | cl_command_queue | command_queue, |
cl_mem | buffer, | ||
cl_bool | blocking_read, | ||
const size_t * | buffer_origin, | ||
const size_t * | host_origin, | ||
const size_t * | region, | ||
size_t | buffer_row_pitch, | ||
size_t | buffer_slice_pitch, | ||
size_t | host_row_pitch, | ||
size_t | host_slice_pitch, | ||
void * | ptr, | ||
cl_uint | num_events_in_wait_list, | ||
const cl_event * | event_wait_list, | ||
cl_event * | event | ||
) |
Definition at line 141 of file api_enqueue.cpp.
References queueEvent(), and Coal::Object::T_CommandQueue.
cl_int clEnqueueReadImage | ( | cl_command_queue | command_queue, |
cl_mem | image, | ||
cl_bool | blocking_read, | ||
const size_t * | origin, | ||
const size_t * | region, | ||
size_t | row_pitch, | ||
size_t | slice_pitch, | ||
void * | ptr, | ||
cl_uint | num_events_in_wait_list, | ||
const cl_event * | event_wait_list, | ||
cl_event * | event | ||
) |
Definition at line 288 of file api_enqueue.cpp.
References Coal::MemObject::Image2D, Coal::MemObject::Image3D, queueEvent(), and Coal::Object::T_CommandQueue.
cl_int clEnqueueTask | ( | cl_command_queue | command_queue, |
cl_kernel | kernel, | ||
cl_uint | num_events_in_wait_list, | ||
const cl_event * | event_wait_list, | ||
cl_event * | event | ||
) |
Definition at line 650 of file api_enqueue.cpp.
References queueEvent(), and Coal::Object::T_CommandQueue.
cl_int clEnqueueUnmapMemObject | ( | cl_command_queue | command_queue, |
cl_mem | memobj, | ||
void * | mapped_ptr, | ||
cl_uint | num_events_in_wait_list, | ||
const cl_event * | event_wait_list, | ||
cl_event * | event | ||
) |
Definition at line 585 of file api_enqueue.cpp.
References queueEvent(), and Coal::Object::T_CommandQueue.
cl_int clEnqueueWaitForEvents | ( | cl_command_queue | command_queue, |
cl_uint | num_events, | ||
const cl_event * | event_list | ||
) |
Definition at line 749 of file api_enqueue.cpp.
References queueEvent(), and Coal::Object::T_CommandQueue.
cl_int clEnqueueWriteBuffer | ( | cl_command_queue | command_queue, |
cl_mem | buffer, | ||
cl_bool | blocking_write, | ||
size_t | offset, | ||
size_t | cb, | ||
const void * | ptr, | ||
cl_uint | num_events_in_wait_list, | ||
const cl_event * | event_wait_list, | ||
cl_event * | event | ||
) |
Definition at line 109 of file api_enqueue.cpp.
References queueEvent(), and Coal::Object::T_CommandQueue.
cl_int clEnqueueWriteBufferRect | ( | cl_command_queue | command_queue, |
cl_mem | buffer, | ||
cl_bool | blocking_write, | ||
const size_t * | buffer_origin, | ||
const size_t * | host_origin, | ||
const size_t * | region, | ||
size_t | buffer_row_pitch, | ||
size_t | buffer_slice_pitch, | ||
size_t | host_row_pitch, | ||
size_t | host_slice_pitch, | ||
const void * | ptr, | ||
cl_uint | num_events_in_wait_list, | ||
const cl_event * | event_wait_list, | ||
cl_event * | event | ||
) |
Definition at line 179 of file api_enqueue.cpp.
References queueEvent(), and Coal::Object::T_CommandQueue.
cl_int clEnqueueWriteImage | ( | cl_command_queue | command_queue, |
cl_mem | image, | ||
cl_bool | blocking_write, | ||
const size_t * | origin, | ||
const size_t * | region, | ||
size_t | row_pitch, | ||
size_t | slice_pitch, | ||
const void * | ptr, | ||
cl_uint | num_events_in_wait_list, | ||
const cl_event * | event_wait_list, | ||
cl_event * | event | ||
) |
Definition at line 326 of file api_enqueue.cpp.
References queueEvent(), and Coal::Object::T_CommandQueue.
static cl_int queueEvent | ( | Coal::CommandQueue * | queue, |
Coal::Event * | command, | ||
cl_event * | event, | ||
cl_bool | blocking | ||
) | [inline, static] |
Definition at line 40 of file api_enqueue.cpp.
References clWaitForEvents(), Coal::CommandQueue::queueEvent(), and Coal::Object::reference().
Referenced by clEnqueueBarrier(), clEnqueueCopyBuffer(), clEnqueueCopyBufferRect(), clEnqueueCopyBufferToImage(), clEnqueueCopyImage(), clEnqueueCopyImageToBuffer(), clEnqueueMapBuffer(), clEnqueueMapImage(), clEnqueueMarker(), clEnqueueNativeKernel(), clEnqueueNDRangeKernel(), clEnqueueReadBuffer(), clEnqueueReadBufferRect(), clEnqueueReadImage(), clEnqueueTask(), clEnqueueUnmapMemObject(), clEnqueueWaitForEvents(), clEnqueueWriteBuffer(), clEnqueueWriteBufferRect(), and clEnqueueWriteImage().