PDA

View Full Version : controlling how blocking is implemented.



tzachi
05-24-2010, 01:39 AM
when using cuda the programmer can control how the wait is implemented in blocking commands. the wait mechanism can be implemented in several way: busy wait , events , etc . (CU_CTX_SCHED_SPIN,CU_CTX_SCHED_YIELD,CU_CTX_BLOCK ING_SYNC ...)

is there an equivalent in OpenCL ?

Thanks

Tzachi

david.garcia
05-25-2010, 05:24 AM
There's no equivalent. It is assumed that it will be some sort of non-busy wait, but to the best of my knowledge the spec leaves this as an implementation detail.