Commit 45f96086 authored by David Rohr's avatar David Rohr

improve debug messages

parent cd864897
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment