diff --git a/src/gromacs/mdlib/nbnxn_ocl/vectype_ops.clh b/src/gromacs/mdlib/nbnxn_ocl/vectype_ops.clh index e7fa839..431ccf4 100644 --- a/src/gromacs/mdlib/nbnxn_ocl/vectype_ops.clh +++ b/src/gromacs/mdlib/nbnxn_ocl/vectype_ops.clh @@ -88,7 +88,7 @@ _INLINE_ void atomicAdd_l_f(volatile __local float *addr, float val) do{ expected.f32 = current.f32; next.f32 = expected.f32 + val; - current.u32 = atomic_cmpxchg( (volatile __local unsigned int *)addr, expected.u32, next.u32); +// current.u32 = atomic_cmpxchg( (volatile __local unsigned int *)addr, expected.u32, next.u32); } while( current.u32 != expected.u32 ); } _INLINE_ void atomicAdd_l_f3(__local float3 *addr, float3 val) @@ -107,7 +107,7 @@ _INLINE_ void atomicAdd_g_f(volatile __global float *addr, float val) do{ expected.f32 = current.f32; next.f32 = expected.f32 + val; - current.u32 = atomic_cmpxchg( (volatile __global unsigned int *)addr, expected.u32, next.u32); +// current.u32 = atomic_cmpxchg( (volatile __global unsigned int *)addr, expected.u32, next.u32); } while( current.u32 != expected.u32 ); }