AnsweredAssumed Answered

64 bit atomics

Question asked by boxerab on Mar 14, 2015
Latest reply on Mar 16, 2015 by boxerab

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.

Outcomes