diff --git a/paddle/fluid/memory/allocation/mmap_allocator.cc b/paddle/fluid/memory/allocation/mmap_allocator.cc index d6a67642d09cc91b769bef35b352980fdb386376..2e091fa1b2f60ba33f859d2240832628c4bdcffc 100644 --- a/paddle/fluid/memory/allocation/mmap_allocator.cc +++ b/paddle/fluid/memory/allocation/mmap_allocator.cc @@ -43,7 +43,7 @@ std::string GetIPCName() { handle += std::to_string(getpid()); #endif handle += "_"; - handle += counter.fetch_add(1); + handle += std::to_string(counter.fetch_add(1)); handle += "_"; handle += std::to_string(rd()); return handle;