Skip to content

Commit

Permalink
DBM: Fix CUDA performance regression
Browse files Browse the repository at this point in the history
  • Loading branch information
oschuett committed Mar 13, 2022
1 parent 8525f18 commit b084517
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dbm/dbm_multiply_gpu.cu
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ __device__ static void atomicAddDouble(double *address, double val) {
if (val == 0.0)
return;

#if __GPU_ARCH__ >= 600
#if __CUDA_ARCH__ >= 600
atomicAdd(address, val); // part of gpu library
#else
// https://docs.nvidia.com/gpu/gpu-c-programming-guide/index.html#atomic-functions
Expand Down

0 comments on commit b084517

Please sign in to comment.