From 2cb804e4a8818a2629f6808244e33ed2ec3e6958 Mon Sep 17 00:00:00 2001 From: zhouwei25 Date: Fri, 12 Jul 2019 15:40:16 +0000 Subject: [PATCH] test=develop --- paddle/fluid/platform/gpu_info.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/paddle/fluid/platform/gpu_info.cc b/paddle/fluid/platform/gpu_info.cc index 179b1b955f1..4b10efcaf09 100644 --- a/paddle/fluid/platform/gpu_info.cc +++ b/paddle/fluid/platform/gpu_info.cc @@ -111,7 +111,8 @@ int GetCUDAComputeCapability(int id) { auto e = cudaGetDeviceProperties(&device_prop, id); int a = 10; char c[] = "helloworld"; - PADDLE_ENFORCE(cudaGetDeviceProperties(&device_prop, id), a, c); + string str = "helloworld"; + PADDLE_ENFORCE(cudaGetDeviceProperties(&device_prop, id), a, c, str); return device_prop.major * 10 + device_prop.minor; } -- GitLab