I am running pyopencl 2011.1beta, the version from PyPi on a windows 7 x64 machine with AMD APP toolkit. I'm experimenting with syncing 2 kernels in 2 queues from the same context and encountered the following behaviour:
I get an event from enqueing the first kernel into it's queue. Using event.wait() I can wait for kernel1 to be finished before enqueueing kernel2 this works fine. Now I got the idea of testing how long roughly the kernel1 takes to complete in relation to the host program and wrote something like this: while(event1.command_execution_status != pyopencl.event_info.COMMAND_EXECUTION_STATUS.COMPLETE): counter+=1 This lead to the program getting stuck in the while-loop. I am new to OpenCL and pyOpenCL so maybe I am wrong about how to use the event object but can somebody explain to me why this loop doesn't work?
_______________________________________________ PyOpenCL mailing list [email protected] http://lists.tiker.net/listinfo/pyopencl
