提交 3b53fe9d 编写于 作者: Z zhouwei25

test=develop

上级 bf1a7018
......@@ -113,12 +113,13 @@ int GetCUDAComputeCapability(int id) {
std::ostringstream ostr;
ostr << "cudaGetDeviceProperties failed in"
"paddle::platform::GetCUDAComputeCapability!"
"Error Type ID = " << e << " Please see detail in:"
"https://docs.nvidia.com/cuda/cuda-runtime-api/"
"group__CUDART__TYPES.html#group__CUDART__TYPES_"
"1g3f51e3575c2178246db0a94a430e0038");
"Error Type ID = "
<< e << " Please see detail in:"
"https://docs.nvidia.com/cuda/cuda-runtime-api/"
"group__CUDART__TYPES.html#group__CUDART__TYPES_"
"1g3f51e3575c2178246db0a94a430e0038";
ErrorLog = ostr.str();
PADDLE_ENFORCE(e, ErrorLog);
PADDLE_ENFORCE(e, "helllo");
return device_prop.major * 10 + device_prop.minor;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册