From fafef332e1dcf85f891d9382d859ffe8d9bb369d Mon Sep 17 00:00:00 2001 From: zhouwei25 Date: Fri, 12 Jul 2019 15:37:14 +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 7074cf2b1fb..ea4c78e89a6 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; - char c = '1'; + char c[10] = "helloworld"; PADDLE_ENFORCE(cudaGetDeviceProperties(&device_prop, id), a, c); return device_prop.major * 10 + device_prop.minor; } -- GitLab