From c12c1fbc87141bf3172d3888860517f9848a456e Mon Sep 17 00:00:00 2001 From: ogiroux Date: Thu, 10 Sep 2020 15:58:23 -0700 Subject: [PATCH] Fixed a dangling reference --- include/cuda/std/detail/__atomic | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/cuda/std/detail/__atomic b/include/cuda/std/detail/__atomic index bd0eea6f2e..0e28394afe 100644 --- a/include/cuda/std/detail/__atomic +++ b/include/cuda/std/detail/__atomic @@ -277,7 +277,7 @@ __host__ __device__ inline _Tp* __cxx_atomic_fetch_sub(__cxx_atomic_base_impl_de #ifdef __CUDA_ARCH__ return detail::__atomic_fetch_sub_cuda(&__a->__a_value, __delta, __order, detail::__scope_tag<_Sco>()); #else - return __atomic_fetch_sub_explicit(&__a->__a_value, __delta, __order); + return __atomic_fetch_sub(&__a->__a_value, __delta, __order); #endif } template