From 6d1f6060d4b29cf788b46d0b2bca271cf7925727 Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Tue, 28 Oct 2014 02:50:14 -0700 Subject: [PATCH] client: add some comments to clarify that the CUDA warning message and notice will appear only once for each relevant GPU. --- client/gpu_detect.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/gpu_detect.cpp b/client/gpu_detect.cpp index d699b61d68..3e4ffcd147 100644 --- a/client/gpu_detect.cpp +++ b/client/gpu_detect.cpp @@ -203,6 +203,7 @@ void COPROCS::correlate_gpus( if ((nvidia_gpus[i].cuda_version >= 6050) && nvidia_gpus[i].prop.major < 2) { + // This will be called only if CUDA recognized and reported the GPU msg_printf(NULL, MSG_USER_ALERT, "NVIDIA GPU %d: %s %s", nvidia_gpus[i].device_num, nvidia_gpus[i].prop.name, _("cannot be used for CUDA or OpenCL computation with CUDA driver 6.5 or later") @@ -244,6 +245,7 @@ void COPROCS::correlate_gpus( // for (i=0; i