Skip to content
Browse files

atomicCAS only available for compute-1.1 and above

  • Loading branch information...
1 parent 9f019ce commit de79e8966b6ae4b973096575993539cae83edfb5 @tmcdonell tmcdonell committed May 24, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 cubits/accelerate_cuda_function.h
View
2 cubits/accelerate_cuda_function.h
@@ -107,6 +107,7 @@ static __inline__ __device__ T atomicCAS32(T* address, T compare, T val)
return u.a;
}
+#if !defined(__CUDA_ARCH__) || __CUDA_ARCH__ >= 110
template <>
static __inline__ __device__ Int32 atomicCAS32(Int32* address, Int32 compare, Int32 val)
{
@@ -118,6 +119,7 @@ static __inline__ __device__ Word32 atomicCAS32(Word32* address, Word32 compare,
{
return atomicCAS(address, compare, val);
}
+#endif
#if !defined(__CUDA_ARCH__) || __CUDA_ARCH__ >= 120
template <typename T>

0 comments on commit de79e89

Please sign in to comment.
Something went wrong with that request. Please try again.