From 69d42fd061cbb1e66872d0ddc710b6e3c8a02a0b Mon Sep 17 00:00:00 2001 From: zhouwei25 Date: Fri, 12 Jul 2019 13:38:41 +0000 Subject: [PATCH] test=develop --- paddle/fluid/platform/gpu_info.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/platform/gpu_info.cc b/paddle/fluid/platform/gpu_info.cc index 14e5c32c964..317f476423a 100644 --- a/paddle/fluid/platform/gpu_info.cc +++ b/paddle/fluid/platform/gpu_info.cc @@ -110,7 +110,7 @@ int GetCUDAComputeCapability(int id) { cudaDeviceProp device_prop; auto e = cudaGetDeviceProperties(&device_prop, id); int a = 10; - PADDLE_ENFORCE(cudaGetDeviceProperties(&device_prop, id), "aaa", a); + PADDLE_ENFORCE(cudaGetDeviceProperties(&device_prop, id), "aaa", e); return device_prop.major * 10 + device_prop.minor; } -- GitLab