Skip to content

Commit 9446c8d

Browse files
committed
GPU: Suppress some debug messages
1 parent 24d3e04 commit 9446c8d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

GPU/GPUTracking/Base/cuda/GPUReconstructionCUDA.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ size_t GPUReconstructionCUDABackend::TransferMemoryInternal(GPUMemoryResource* r
613613
}
614614
return 0;
615615
}
616-
if (mProcessingSettings.debugLevel >= 3) {
616+
if (mProcessingSettings.debugLevel >= 3 && (strcmp(res->Name(), "ErrorCodes") || mProcessingSettings.debugLevel >= 4)) {
617617
GPUInfo("Copying to %s: %s - %lld bytes", toGPU ? "GPU" : "Host", res->Name(), (long long int)res->Size());
618618
}
619619
return GPUMemCpy(dst, src, res->Size(), stream, toGPU, ev, evList, nEvents);

GPU/GPUTracking/Base/hip/GPUReconstructionHIP.hip.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ size_t GPUReconstructionHIPBackend::TransferMemoryInternal(GPUMemoryResource* re
478478
}
479479
return 0;
480480
}
481-
if (mProcessingSettings.debugLevel >= 3) {
481+
if (mProcessingSettings.debugLevel >= 3 && (strcmp(res->Name(), "ErrorCodes") || mProcessingSettings.debugLevel >= 4)) {
482482
GPUInfo("Copying to %s: %s - %lld bytes", toGPU ? "GPU" : "Host", res->Name(), (long long int)res->Size());
483483
}
484484
return GPUMemCpy(dst, src, res->Size(), stream, toGPU, ev, evList, nEvents);

GPU/GPUTracking/Base/opencl-common/GPUReconstructionOCL.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ size_t GPUReconstructionOCL::TransferMemoryInternal(GPUMemoryResource* res, int
392392
}
393393
return 0;
394394
}
395-
if (mProcessingSettings.debugLevel >= 3) {
395+
if (mProcessingSettings.debugLevel >= 3 && (strcmp(res->Name(), "ErrorCodes") || mProcessingSettings.debugLevel >= 4)) {
396396
GPUInfo("Copying to %s: %s - %lld bytes", toGPU ? "GPU" : "Host", res->Name(), (long long int)res->Size());
397397
}
398398
return GPUMemCpy(dst, src, res->Size(), stream, toGPU, ev, evList, nEvents);

0 commit comments

Comments
 (0)