From 45f96086368983335f6f0d493258702444604e05 Mon Sep 17 00:00:00 2001 From: David Rohr Date: Mon, 7 Jul 2014 16:44:04 +0200 Subject: [PATCH] improve debug messages --- bioem_cuda.cu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bioem_cuda.cu b/bioem_cuda.cu index 6414511..4157725 100644 --- a/bioem_cuda.cu +++ b/bioem_cuda.cu @@ -302,7 +302,7 @@ int bioem_cuda::selectCudaDevice() cuCtxDestroy(tmpContext); checkCudaErrors(cudaGetDeviceProperties(&deviceProp, i)); - if (DebugOutput >= 1) printf("CUDA Device %2d: %s (Rev: %d.%d - Mem Avail %lld / %lld)\n", i, deviceProp.name, deviceProp.major, deviceProp.minor, (long long int) free, (long long int) deviceProp.totalGlobalMem); + if (DebugOutput >= 2) printf("CUDA Device %2d: %s (Rev: %d.%d - Mem Avail %lld / %lld)\n", i, deviceProp.name, deviceProp.major, deviceProp.minor, (long long int) free, (long long int) deviceProp.totalGlobalMem); long long int deviceSpeed = (long long int) deviceProp.multiProcessorCount * (long long int) deviceProp.clockRate * (long long int) deviceProp.warpSize; if (deviceSpeed > bestDeviceSpeed) { @@ -313,7 +313,7 @@ int bioem_cuda::selectCudaDevice() cudaGetDeviceProperties(&deviceProp ,bestDevice); - if (DebugOutput >= 2) + if (DebugOutput >= 3) { printf("Using CUDA Device %s with Properties:\n", deviceProp.name); printf("totalGlobalMem = %lld\n", (unsigned long long int) deviceProp.totalGlobalMem); -- GitLab