The cl_event return by clEnqueueNDRange in 197.45 on windows seems to be broken.
If I try to get the get command queue with clGetEventInfo, the cl_command_queue isn’t valid (the address seems to be shifted by few bytes) and a clRetainCommandQueue on it crash.
I already know the command queue of any events and do not need to do this, since I force 1 command queue per context & have an array of contexts. I would suggest the following, if you are not already doing:
clEnqueueNDRange
clFlush, or some implicit clFlush
clGetEventInfo
If you look at the last paragraph of the clFlush man page, it implies events associated with command queues need to be flushed before use.
I already know the command queue of any events and do not need to do this, since I force 1 command queue per context & have an array of contexts. I would suggest the following, if you are not already doing:
clEnqueueNDRange
clFlush, or some implicit clFlush
clGetEventInfo
If you look at the last paragraph of the clFlush man page, it implies events associated with command queues need to be flushed before use.