From 5852ce14743d1beda64166dc178f3d2ee9080543 Mon Sep 17 00:00:00 2001 From: zhouwei25 Date: Fri, 12 Jul 2019 13:37:32 +0000 Subject: [PATCH] test=develop --- paddle/fluid/platform/gpu_info.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/paddle/fluid/platform/gpu_info.cc b/paddle/fluid/platform/gpu_info.cc index 839d53ef3de..14e5c32c964 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; } -- GitLab