From 8fdf90d343dc80bef5922bb3fa26d5a9b7fa350a Mon Sep 17 00:00:00 2001 From: zhouwei25 Date: Fri, 12 Jul 2019 15:38:05 +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 ea4c78e89a6..179b1b955f1 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[10] = "helloworld"; + char c[] = "helloworld"; PADDLE_ENFORCE(cudaGetDeviceProperties(&device_prop, id), a, c); return device_prop.major * 10 + device_prop.minor; } -- GitLab