From 7ae3cb554afaaa9cb92eea9e7f5756dc788752bf Mon Sep 17 00:00:00 2001 From: Aurelius84 Date: Thu, 26 Nov 2020 19:14:31 +0800 Subject: [PATCH] Polish CUDA Information stdout (#29109) --- paddle/fluid/platform/device_context.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/paddle/fluid/platform/device_context.cc b/paddle/fluid/platform/device_context.cc index 29982c13c8..4922fbeacc 100644 --- a/paddle/fluid/platform/device_context.cc +++ b/paddle/fluid/platform/device_context.cc @@ -318,7 +318,9 @@ CUDADeviceContext::CUDADeviceContext(CUDAPlace place) : place_(place) { runtime_version_ = GetCUDARuntimeVersion(place_.device); LOG_FIRST_N(WARNING, 1) << "Please NOTE: device: " << place_.device - << ", CUDA Capability: " << compute_capability_ + << ", GPU Compute Capability: " + << compute_capability_ / 10 << "." + << compute_capability_ % 10 << ", Driver API Version: " << driver_version_ / 1000 << "." << (driver_version_ % 100) / 10 << ", Runtime API Version: " -- GitLab