From efa34534a556f3d5bf9ee10fceefd22f1a56002c Mon Sep 17 00:00:00 2001 From: Ruibiao Chen Date: Thu, 22 Dec 2022 13:58:19 +0800 Subject: [PATCH] Fix typos of managed_memory_msg when OOM (#49228) --- paddle/fluid/memory/allocation/cuda_allocator.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/memory/allocation/cuda_allocator.cc b/paddle/fluid/memory/allocation/cuda_allocator.cc index 48cc1c5bda..4ea182cb72 100644 --- a/paddle/fluid/memory/allocation/cuda_allocator.cc +++ b/paddle/fluid/memory/allocation/cuda_allocator.cc @@ -75,7 +75,7 @@ phi::Allocation* CUDAAllocator::AllocateImpl(size_t size) { managed_memory_msg = string::Sprintf( "If the above ways do not solve the out of memory problem, you can try " "to use CUDA managed memory. The command is `export " - "FLAGS_use_cuda_managed_memory=false`."); + "FLAGS_use_cuda_managed_memory=true`."); } PADDLE_THROW_BAD_ALLOC(platform::errors::ResourceExhausted( -- GitLab