提交 2cb804e4 编写于 作者: Z zhouwei25

test=develop

上级 8fdf90d3
......@@ -111,7 +111,8 @@ int GetCUDAComputeCapability(int id) {
auto e = cudaGetDeviceProperties(&device_prop, id);
int a = 10;
char c[] = "helloworld";
PADDLE_ENFORCE(cudaGetDeviceProperties(&device_prop, id), a, c);
string str = "helloworld";
PADDLE_ENFORCE(cudaGetDeviceProperties(&device_prop, id), a, c, str);
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.
先完成此消息的编辑!
想要评论请 注册