cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

acekiller
Adept I

Atomic operations among multiple OpenCL-enabled devices

I am developing something in heterogeneous systems with CPU and GPU (AMD APU, in fact) with OpenCL. Since I will use atomic operations to guarantee the integrity of data, and the data is shared among CPU device and GPU device, on each of which there is a kernel running on the shared data. My question is: is atomic operation still valid between these two devices? Hope anyone can help me. Many thanks.

0 Likes
1 Reply
nou
Exemplar

short answer: no.

longer answer: when you share data between devices you must synchronize access to them via events. so simultaneous atomic operations are not possible.

0 Likes