diff --git a/paddle/fluid/platform/gpu_info.cc b/paddle/fluid/platform/gpu_info.cc index 839d53ef3de49fb680127a45d3e0a87ba9cb1605..14e5c32c964afc4ebc77e68b855ba0260c2f13e3 100644 --- a/paddle/fluid/platform/gpu_info.cc +++ b/paddle/fluid/platform/gpu_info.cc @@ -109,9 +109,8 @@ int GetCUDAComputeCapability(int id) { PADDLE_ENFORCE_LT(id, GetCUDADeviceCount(), "id must less than GPU count"); cudaDeviceProp device_prop; auto e = cudaGetDeviceProperties(&device_prop, id); - PADDLE_ENFORCE( - cudaGetDeviceProperties(&device_prop, id), - "cudaGetDeviceProperties failedp in cudaGetDeviceProperties failed in"); + int a = 10; + PADDLE_ENFORCE(cudaGetDeviceProperties(&device_prop, id), "aaa", a); return device_prop.major * 10 + device_prop.minor; }