未验证 提交 502062da 编写于 作者: H houj04 提交者: GitHub

minor fix VLOG for xpu. test=kunlun. (#44099)

上级 4c269ccb
......@@ -180,7 +180,7 @@ void Free<platform::XPUPlace>(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);
......
......@@ -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<int>(place_.GetDeviceId())
<< " set l3 size " << l3_size;
}
break;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册