cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

bubu
Adept II

Multiple command queues by context

Is a good idea to have multiple command queues by each context or can I just play with multiple events to perform async operations?

Can an unique card process more than two queues at the same time? And... two clEnqueueNDRangeKernel functions at the same time?

 

thx

 

0 Likes
1 Reply
rick_weber
Adept II

It is a good idea if you have multiple CPU threads that want to issue tasks to the GPU. That way you don't have to add locking or whatever yourself. I don't think ATI cards will pull from multiple queues simultaneously as I don't think they can execute kernels simultaneously. I would imagine the OpenCL runtime will interleave tasks between the queues assuming the needed events have completed.

0 Likes