Skip to content
Snippets Groups Projects
Commit 8423bc16 authored by Frederik Hennig's avatar Frederik Hennig
Browse files

revert changes in gpu_atomics.h, see !477

parent 726f6e2e
No related branches found
No related tags found
1 merge request!474Random Number Generators Infrastructure + Reintegrate Philox RNG
Pipeline #79801 passed
...@@ -29,10 +29,6 @@ __device__ __forceinline__ float atomicMul(float* address, float val) { ...@@ -29,10 +29,6 @@ __device__ __forceinline__ float atomicMul(float* address, float val) {
return __int_as_float(old); return __int_as_float(old);
} }
// Apparently HIP implements atomic min/max for floating point:
// https://rocmdocs.amd.com/projects/HIP/en/latest/how-to/hip_cpp_language_extensions.html#atomic-functions
#ifndef __HIPCC_RTC__
// - atomicMin (double/float) // - atomicMin (double/float)
// see https://stackoverflow.com/questions/17399119/how-do-i-use-atomicmax-on-floating-point-values-in-cuda // see https://stackoverflow.com/questions/17399119/how-do-i-use-atomicmax-on-floating-point-values-in-cuda
__device__ __forceinline__ double atomicMin(double *address, double val) __device__ __forceinline__ double atomicMin(double *address, double val)
...@@ -84,5 +80,3 @@ __device__ __forceinline__ float atomicMax(float *address, float val) ...@@ -84,5 +80,3 @@ __device__ __forceinline__ float atomicMax(float *address, float val)
} }
return __int_as_float(ret); return __int_as_float(ret);
} }
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment