c - OpenCL Kernel wait/delay -
i'am new opencl. how can create delay in opencl kernel script without making loops? have code that's in circumstances needs wait time , resume execution so
__kernel void test(uint4 value,uint4 delay) { uint id = get_global_id(0); //some code for(uint i=0;i<delay;i++) { //... nil this? } }
but suppose loop create gpu busy hell, there can utilize sleep maybe in kernel cl? looked in sdk documentation, haven't found yet. help please.
the opencl spec designed info crunching. not wait/sleeps. if may accomplish it, breaking lot of design rules of opencl.
in fact, many gpus crash or kill execution if seek sleep them.
please reconsider need, , if suitable parallel computing.
c opencl delay wait data-synchronization
No comments:
Post a Comment