未验证 提交 ff9e531b 编写于 作者: Y Yu Yang 提交者: GitHub

style(platform): disable warning when cuda cc not matched (#14029)

Warning only at first when CUDA CC not matched.

test=develop
上级 d6a6a130
...@@ -222,12 +222,12 @@ CUDADeviceContext::CUDADeviceContext(CUDAPlace place) ...@@ -222,12 +222,12 @@ CUDADeviceContext::CUDADeviceContext(CUDAPlace place)
driver_version_ = GetCUDADriverVersion(place_.device); driver_version_ = GetCUDADriverVersion(place_.device);
runtime_version_ = GetCUDARuntimeVersion(place_.device); runtime_version_ = GetCUDARuntimeVersion(place_.device);
LOG(INFO) << "device: " << place_.device LOG_FIRST_N(WARNING, 1) << "Please NOTE: device: " << place_.device
<< ", CUDA Capability: " << compute_capability_ << ", CUDA Capability: " << compute_capability_
<< ", Driver Version: " << driver_version_ / 1000 << "." << ", Driver Version: " << driver_version_ / 1000
<< (driver_version_ % 100) / 10 << "." << (driver_version_ % 100) / 10
<< ", Runtime Version: " << runtime_version_ / 1000 << "." << ", Runtime Version: " << runtime_version_ / 1000
<< (runtime_version_ % 100) / 10; << "." << (runtime_version_ % 100) / 10;
callback_manager_.reset(new StreamCallbackManager(stream_)); callback_manager_.reset(new StreamCallbackManager(stream_));
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册