5. TheOpenCLRuntimeOpenCLobjects: memoryobjects, programobjects, kernelobjects, command-queues, others? 5.1 CommandQueuesusecontexttocreatememory, program, kernelobjects, andoperationsontheseobjectsareperformedusinga
5. The OpenCL Runtime OpenCL objects: memory objects, program objects, kernel objects, command-queues, others? 5.1 Command Queues use context to create memory, program, kernel objects, and operations on these objects are saved med using
5. The OpenCL Runtime
OpenCL objects: memory objects, program objects, kernel objects, command-queues, others?
5.1 Command Queues
Use context to create memory, program, kernel objects, and operations on these objects are stored med using a * command-queue *.
One application can have multiple command-queues to queue indepedent commands without requiring synchronization, but if objects are shared, I. e., wait SS multiple command-queues, the application needs synchronization.
ClCreateCommandQueue
Note: The cl_command_queue_properties parameter is as follows:
(1) cl_queue_out_of_order_exec_mode_enable
(2) cl_queue_profiling_enable: profiling of commands
ClRetainCommandQueue: increments the command_queue reference count
ClReleaseCommandQueue: decrements the command_queue reference count
ClGetCommandQueueInfo: query info about a command_queue
ClSetCommandQueueProperty: change command_queue properties, it is obvious that there is a Flush action when the attribute changes, expensive
This section finally mentions the Device Lost situation, and the operating system will notify the driver. Spec says that it can be recorded by the callback function registered when the Context is created.