TOpenCLCommandQueue Class

Header: Dew.Math/clMtxVec.h · Cross-compiler
tObjectTOpenCLCommandQueue

class TOpenCLCommandQueue : public tObject;

Every Open CL function that we want to compute needs to be submitted to the command queue.

Device can have multiple command queues if supported.

Constructors

NameDescription
TOpenCLCommandQueue (2)

Destructors

NameDescription
~TOpenCLCommandQueue

Properties

NameTypeDescription
clCommandQueueintPtrReturns the Open CL command queue object.
DeviceTOpenCLDevice*
ImmediateExecutionboolIf set to True, the Intel Open CL driver will execute all kernels within the callers thread.
JobThreadTJobThread*
LocalMemorySizeint
OutOfOrderboolSet this property to true, if you would like to have commands executed out of order.
ProfilingboolSet this property to true, to enable command queue profiling.
QueueLengthint

Methods

NameDescription
EnterUsers critical section Enter point.
FinishCalling this method will block the calling thread until all Kernels (Open CL functions) submitted for execution to this queue have finished.
IsMarkedThreadReturns true if, the command queue is associated with the thread with ThreadID.
LeaveUsers critical section Leave point.
MarkThreadAssociates the thread from which this method was called with the command queue.
SetOutOfOrder
SetProfiling
TryEnterUsers critical section TryEnter point.
UnMarkThreadDisssociates the command queue from any threads.

Fields

NameTypeDescription
fQueueLengthint