From 9bc1a1a126dc60f06cd353ff72869416d50eb3af Mon Sep 17 00:00:00 2001 From: dangqingqing Date: Tue, 22 Aug 2017 18:19:04 +0800 Subject: [PATCH] fix cuda_helper.h --- paddle/platform/cuda_helper.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/paddle/platform/cuda_helper.h b/paddle/platform/cuda_helper.h index 4346291117..939c3713ad 100644 --- a/paddle/platform/cuda_helper.h +++ b/paddle/platform/cuda_helper.h @@ -34,8 +34,6 @@ USE_CUDA_ATOMIC(Add, float); #if defined(__CUDA_ARCH__) && __CUDA_ARCH__ >= 600 USE_CUDA_ATOMIC(Add, double); #else -// Custom implementation of atomicAdd for double. -// This implementation is copied from CUDA manual. CUDA_ATOMIC_WRAPPER(Add, double) { unsigned long long int* address_as_ull = reinterpret_cast(address); @@ -50,8 +48,8 @@ CUDA_ATOMIC_WRAPPER(Add, double) { } while (assumed != old); return __longlong_as_double(old); -#endif } +#endif } // namespace platform } // namespace paddle -- GitLab