Skip to content

Commit e0a7a51

Browse files
committed
GPU: Improve some debug messages
1 parent 1765380 commit e0a7a51

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

GPU/GPUTracking/Base/GPUReconstruction.cxx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,8 @@ int32_t GPUReconstruction::InitPhaseBeforeDevice()
275275
if (GetProcessingSettings().deterministicGPUReconstruction) {
276276
if (!detMode) {
277277
GPUError("WARNING, deterministicGPUReconstruction needs GPUCA_DETERMINISTIC_MODE for being fully deterministic, without only most indeterminism by concurrency is removed, but floating point effects remain!");
278+
} else {
279+
GPUInfo("GPU Deterministic Reconstruction is enabled");
278280
}
279281
if (mProcessingSettings->debugLevel >= 6 && ((mProcessingSettings->debugMask + 1) & mProcessingSettings->debugMask)) {
280282
GPUError("WARNING: debugMask %d - debug output might not be deterministic with intermediate steps missing", mProcessingSettings->debugMask);

GPU/GPUTracking/Base/cuda/GPUReconstructionCUDA.cu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ int32_t GPUReconstructionCUDA::InitDevice_Runtime()
194194

195195
bool noDevice = false;
196196
if (bestDevice == -1) {
197-
GPUWarning("No %sCUDA Device available, aborting CUDA Initialisation (Required mem: %ld)", count ? "appropriate " : "", (int64_t)mDeviceMemorySize);
197+
GPUWarning("No %sCUDA Device available, aborting CUDA Initialisation (Required mem: %ld, scanned %d devices)", count ? "appropriate " : "", (int64_t)mDeviceMemorySize, count);
198198
#ifndef __HIPCC__
199199
GPUImportant("Requiring Revision %d.%d, Mem: %lu", reqVerMaj, reqVerMin, std::max<size_t>(mDeviceMemorySize, REQUIRE_MIN_MEMORY));
200200
#endif
@@ -228,7 +228,7 @@ int32_t GPUReconstructionCUDA::InitDevice_Runtime()
228228
GPUChkErrI(cudaGetDeviceProperties(&deviceProp, mDeviceId));
229229

230230
if (GetProcessingSettings().debugLevel >= 2) {
231-
GPUInfo("Using CUDA Device %s with Properties:", deviceProp.name);
231+
GPUInfo("Using CUDA Device %d: %s with Properties:", bestDevice, deviceProp.name);
232232
GPUInfo("\ttotalGlobalMem = %ld", (uint64_t)deviceProp.totalGlobalMem);
233233
GPUInfo("\tsharedMemPerBlock = %ld", (uint64_t)deviceProp.sharedMemPerBlock);
234234
GPUInfo("\tregsPerBlock = %d", deviceProp.regsPerBlock);

0 commit comments

Comments
 (0)