diff --git a/paddle/fluid/memory/allocation/naive_best_fit_allocator.cc b/paddle/fluid/memory/allocation/naive_best_fit_allocator.cc index 57c5941d5227d9943568ec4ac8f387bfb1666889..4553c80e74c593f21769665337c2fc11e8631806 100644 --- a/paddle/fluid/memory/allocation/naive_best_fit_allocator.cc +++ b/paddle/fluid/memory/allocation/naive_best_fit_allocator.cc @@ -180,7 +180,7 @@ void Free(const platform::XPUPlace &place, void *p, size_t size) { #ifdef PADDLE_WITH_XPU - VLOG(10) << "Allocate " << size << " bytes on " << platform::Place(place); + VLOG(10) << "Free " << size << " bytes on " << platform::Place(place); VLOG(10) << "Free pointer=" << p << " on " << platform::Place(place); platform::XPUDeviceGuard gurad(place.device); diff --git a/paddle/phi/backends/xpu/xpu_context.cc b/paddle/phi/backends/xpu/xpu_context.cc index dbff88c0a2709dfd80fd81c63ce27d0ca90fa571..e73aa30c8d85b48fd7b73f86578ca2f6823010a2 100644 --- a/paddle/phi/backends/xpu/xpu_context.cc +++ b/paddle/phi/backends/xpu/xpu_context.cc @@ -45,8 +45,8 @@ struct XPUContext::Impl { } if (l3ptrs[place_.GetDeviceId()] != nullptr) { context_->_l3_mgr.set(l3ptrs[place_.GetDeviceId()], l3_size); - VLOG(3) << "xpu place " << place_.GetDeviceId() << " set l3 size " - << l3_size; + VLOG(3) << "xpu place " << static_cast(place_.GetDeviceId()) + << " set l3 size " << l3_size; } break; }