diff --git a/hip/components/memory.hip.hpp b/hip/components/memory.hip.hpp index d8238c11795..8a98ee822b8 100644 --- a/hip/components/memory.hip.hpp +++ b/hip/components/memory.hip.hpp @@ -99,7 +99,7 @@ __device__ __forceinline__ ValueType load_generic(const ValueType* ptr) auto cast_value = HIP_ATOMIC_LOAD(reinterpret_cast(ptr), memorder, scope); ValueType result{}; - std::memcpy(&result, &cast_value, sizeof(ValueType)); + memcpy(&result, &cast_value, sizeof(ValueType)); return result; } @@ -122,7 +122,7 @@ __device__ __forceinline__ void store_generic(ValueType* ptr, ValueType value) static_assert(sizeof(atomic_type) == sizeof(ValueType), "invalid map"); static_assert(alignof(atomic_type) == alignof(ValueType), "invalid map"); atomic_type cast_value{}; - std::memcpy(&cast_value, &value, sizeof(ValueType)); + memcpy(&cast_value, &value, sizeof(ValueType)); HIP_ATOMIC_STORE(reinterpret_cast(ptr), cast_value, memorder, scope); }