diff --git a/paddle/fluid/memory/allocation/legacy_allocator.cc b/paddle/fluid/memory/allocation/legacy_allocator.cc index 9b6f7d421146883f8ddd336a6573df2f8293d1e2..4adc0aabf4fb7cfc782f17801d51bd70404c21de 100644 --- a/paddle/fluid/memory/allocation/legacy_allocator.cc +++ b/paddle/fluid/memory/allocation/legacy_allocator.cc @@ -200,12 +200,12 @@ void *Alloc(const platform::CUDAPlace &place, platform::GpuMemoryUsage(&avail, &total); LOG(FATAL) << "Cannot allocate " << string::HumanReadableSize(size) << " in GPU " << place.device << ", available " - << string::HumanReadableSize(avail) << "total " << total - << "GpuMinChunkSize " + << string::HumanReadableSize(avail) << ", total " + << string::HumanReadableSize(total) << ", GpuMinChunkSize " << string::HumanReadableSize(buddy_allocator->GetMinChunkSize()) - << "GpuMaxChunkSize " + << ", GpuMaxChunkSize " << string::HumanReadableSize(buddy_allocator->GetMaxChunkSize()) - << "GPU memory used: " + << ", GPU memory used: " << string::HumanReadableSize(Used(place)); } else { if (FLAGS_benchmark) {