added Verlet scheme and NxN non-bonded functionality
[alexxy/gromacs.git] / include / thread_mpi / atomic / gcc_intrinsics.h
index 49db56b102505d1d062826e01452d832bc8d61b7..9d9f89b4d5c3803b4a3244b134fcb0407b7eb782 100644 (file)
@@ -90,7 +90,7 @@ static inline void* tMPI_Atomic_ptr_swap(tMPI_Atomic_ptr_t *a, void *b)
 static inline int tMPI_Atomic_ptr_cas(tMPI_Atomic_ptr_t* a, void *oldval, 
                                       void *newval)
 {
-#if !defined(__INTEL_COMPILER)
+#if !defined(__INTEL_COMPILER) && !defined(__CUDACC__)
     return __sync_bool_compare_and_swap( &(a->value), oldval, newval);
 #else
     /* the intel compilers need integer type arguments for compare_and_swap.