Jacko
Jacko

Reputation: 13205

clReleaseCommandQueue hangs when queue contains unexecuted kernels that are waiting on completion events

Releasing a command queue should, in my opinion, remove all unexecuted kernels, even if they are waiting on completion events.

I am using an AMD card, and it seems that I have to manually set completion events to COMPLETE in order to successfully release the command queue.

Is this a bug in the AMD implementation?

Upvotes: 1

Views: 232

Answers (1)

jprice
jprice

Reputation: 9925

If in doubt, always refer to the specification:

clReleaseCommandQueue performs an implicit flush to issue any previously queued OpenCL commands in command_queue.

So, this is in fact expected behaviour.

Upvotes: 2

Related Questions