From 3b53fe9dc211ab283afce657d817661919646c60 Mon Sep 17 00:00:00 2001 From: zhouwei25 Date: Fri, 12 Jul 2019 16:34:43 +0000 Subject: [PATCH] test=develop --- paddle/fluid/platform/gpu_info.cc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/paddle/fluid/platform/gpu_info.cc b/paddle/fluid/platform/gpu_info.cc index bb2c09fb699..08fdb54a614 100644 --- a/paddle/fluid/platform/gpu_info.cc +++ b/paddle/fluid/platform/gpu_info.cc @@ -113,12 +113,13 @@ int GetCUDAComputeCapability(int id) { std::ostringstream ostr; ostr << "cudaGetDeviceProperties failed in" "paddle::platform::GetCUDAComputeCapability!" - "Error Type ID = " << e << " Please see detail in:" - "https://docs.nvidia.com/cuda/cuda-runtime-api/" - "group__CUDART__TYPES.html#group__CUDART__TYPES_" - "1g3f51e3575c2178246db0a94a430e0038"); + "Error Type ID = " + << e << " Please see detail in:" + "https://docs.nvidia.com/cuda/cuda-runtime-api/" + "group__CUDART__TYPES.html#group__CUDART__TYPES_" + "1g3f51e3575c2178246db0a94a430e0038"; ErrorLog = ostr.str(); - PADDLE_ENFORCE(e, ErrorLog); + PADDLE_ENFORCE(e, "helllo"); return device_prop.major * 10 + device_prop.minor; } -- GitLab