From 48d9e9684a8475473bf5b9a374670980835a298d Mon Sep 17 00:00:00 2001 From: zhouwei25 Date: Fri, 12 Jul 2019 13:26:19 +0000 Subject: [PATCH] test=develop --- paddle/fluid/platform/gpu_info.cc | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/paddle/fluid/platform/gpu_info.cc b/paddle/fluid/platform/gpu_info.cc index 8dc1ea0398a..839d53ef3de 100644 --- a/paddle/fluid/platform/gpu_info.cc +++ b/paddle/fluid/platform/gpu_info.cc @@ -109,13 +109,9 @@ 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 failed in " - "paddle::platform::GetCUDAComputeCapability!" - "Error Type ID =" - "https://docs.nvidia.com/cuda/cuda-runtime-api/" - "group__CUDART__TYPES.html#group__CUDART__TYPES_" - "1g3f51e3575c2178246db0a94a430e0038"); + PADDLE_ENFORCE( + cudaGetDeviceProperties(&device_prop, id), + "cudaGetDeviceProperties failedp in cudaGetDeviceProperties failed in"); return device_prop.major * 10 + device_prop.minor; } -- GitLab