diff --git a/paddle/memory/memory.cc b/paddle/memory/memory.cc index a7d7fa0bfe481cbb255d08ac6fe9c37898616405..4056a54b4a3a35fdd32864f5d64d1bee7fda2160 100644 --- a/paddle/memory/memory.cc +++ b/paddle/memory/memory.cc @@ -16,7 +16,7 @@ limitations under the License. */ #include "paddle/memory/detail/buddy_allocator.h" #include "paddle/memory/detail/system_allocator.h" -#include // for memcpy +#include // for memcpy namespace paddle { namespace memory { @@ -50,7 +50,7 @@ template <> void Copy(platform::CPUPlace, void* dst, platform::CPUPlace, const void* src, size_t num) { - memcpy(dst, src, num); + std::memcpy(dst, src, num); } #ifndef PADDLE_ONLY_CPU