Skip to content

Commit

Permalink
fix cuda-8.0 compile
Browse files Browse the repository at this point in the history
ISSUE=4613907

git-svn-id: https://svn.baidu.com/idl/trunk/paddle@1497 1ad973e4-5ce8-4261-8a94-b56d1f490c56
  • Loading branch information
hedaoyuan committed Sep 1, 2016
1 parent 0f7e937 commit 24acf8d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions paddle/cuda/include/hl_device_functions.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ static __inline__ __device__ double atomicAdd(double* address, double val) {

} // namespace hppl

#if defined(__CUDA_ARCH__) && __CUDA_ARCH__ < 600
using hppl::atomicAdd;
#endif

#endif /* HL_DEVICE_FUNCTIONS_CUH_ */

0 comments on commit 24acf8d

Please sign in to comment.