-
Notifications
You must be signed in to change notification settings - Fork 0
scow_Steel_Thread
The basic structure in SCOW. It represents Platform, Device, Context & 4 command queues together:
- Host to Device queue
- Device to Host queue
- Device to Device queue
- Queue for OpenCL kernel execution
scow_Steel_Thread is created with Make_Steel_Thread()
function around selected OpenCL Device:
scow_Steel_Thread *thread = Make_Steel_Thread(Pick_Device_By_Type(CL_DEVICE_TYPE_GPU));
As all SCOW structures, it must be deleted through Delete()
function :
thread->Destroy(thread);
You can flush command queues for data transmission by calling Wait_For_Data()
functioin:
thread->Wait_For_Data();
Similarly, command queue for kernel execution can be flushed by calling Wait_For_Commands()
function:
thread->Wait_For_Commands();
All functions of scow_Steel_Thread
return value of type ret_code
, which has CL_SUCCESS
value in case of success, or error code otherwise.