I would like to use 64 bit atomic_add on my HD 7700
I have added the following line at the top of my kernel:
#pragma OPENCL EXTENSION cl_khr_int64_base_atomics : enable
But, when I try to perform atomic_add on a long, I get a compiler error:
no instance of overloaded function "atomic_add" matches the argument list.
This works fine with int.
Solved! Go to Solution.