提交 c9dc794e 编写于 作者: F Fan Yang 提交者: Yu Yang

fixed build issue of double definition of atomicAdd on modern GPUs

上级 0b02a221
......@@ -16,6 +16,8 @@ limitations under the License. */
#ifndef HL_DEVICE_FUNCTIONS_CUH_
#define HL_DEVICE_FUNCTIONS_CUH_
#if defined(__CUDA_ARCH__) && __CUDA_ARCH__ < 600
namespace hppl {
static __inline__ __device__ double atomicAdd(double* address, double val) {
......@@ -40,4 +42,6 @@ static __inline__ __device__ double atomicAdd(double* address, double val) {
using hppl::atomicAdd;
#endif
#endif
#endif /* HL_DEVICE_FUNCTIONS_CUH_ */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册