提交 83d82768 编写于 作者: Z zhouwei25

test=develop

上级 a53ac06a
...@@ -110,7 +110,8 @@ int GetCUDAComputeCapability(int id) { ...@@ -110,7 +110,8 @@ int GetCUDAComputeCapability(int id) {
cudaDeviceProp device_prop; cudaDeviceProp device_prop;
auto e = cudaGetDeviceProperties(&device_prop, id); auto e = cudaGetDeviceProperties(&device_prop, id);
int a = 10; int a = 10;
PADDLE_ENFORCE(cudaGetDeviceProperties(&device_prop, id), e); char c = '1';
PADDLE_ENFORCE(cudaGetDeviceProperties(&device_prop, id), a, c);
return device_prop.major * 10 + device_prop.minor; 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.
先完成此消息的编辑!
想要评论请 注册