December 2013
Beginner to intermediate
304 pages
7h 20m
English
There are two APIs which enable coarse-grained synchronization, they are clFlush and clFinish. The reason why we call coarse grained is that both lack control over the individual tasks queued on the command queue. These two functions have control only at the queue level.
cl_int clFlush (cl_command_queue command_queue);
This function ensures that all the commands, which are queued on the command_queue object will be submitted to the corresponding device. This does not guarantee that all the commands in the command_queue will be completed after clFlush returns.
First question which would arise is that what would happen if there is any blocking command queued to the device. Blocking commands do an implicit flush of the ...
Read now
Unlock full access