diff --git a/Src/Base/AMReX_GpuAtomic.H b/Src/Base/AMReX_GpuAtomic.H index a07704cb86b..bd84a0e8c68 100644 --- a/Src/Base/AMReX_GpuAtomic.H +++ b/Src/Base/AMReX_GpuAtomic.H @@ -158,24 +158,7 @@ namespace detail { } #endif -#ifdef AMREX_USE_DPCPP - - // Valid atomic types are available at - // https://github.com/intel/llvm/blob/sycl/sycl/include/CL/sycl/atomic.hpp - - AMREX_GPU_DEVICE AMREX_FORCE_INLINE - double Add_device (double* const sum, double const value) noexcept - { - return detail::atomic_op(sum, value, amrex::Plus()); - } - - AMREX_GPU_DEVICE AMREX_FORCE_INLINE - float Add_device (float* const sum, float const value) noexcept - { - return detail::atomic_op(sum, value, amrex::Plus()); - } - -#elif defined(AMREX_USE_CUDA) || defined(AMREX_USE_HIP) +#if defined(AMREX_USE_CUDA) || defined(AMREX_USE_HIP) // https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#atomicadd // https://rocmdocs.amd.com/en/latest/Programming_Guides/Kernel_language.html?#atomic-functions