Skip to content

Commit edea164

Browse files
committed
GPU: Add debugSuffix option for debug files
1 parent f1fbd35 commit edea164

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

GPU/GPUTracking/Definitions/GPUSettingsList.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@ AddOption(trdTrackModelO2, bool, false, "", 0, "Use O2 track model instead of GP
296296
AddOption(debugLevel, int32_t, -1, "debug", 'd', "Set debug level (-2 = silent, -1 = autoselect (-2 for O2, 0 for standalone))")
297297
AddOption(allocDebugLevel, int32_t, 0, "allocDebug", 0, "Some debug output for memory allocations (without messing with normal debug level)")
298298
AddOption(debugMask, uint32_t, 262143, "", 0, "Mask for debug output dumps to file")
299+
AddOption(debugLogSuffix, std::string, "", "debugSuffix", 0, "Suffix for debug log files with --debug 6")
299300
AddOption(serializeGPU, int8_t, 0, "", 0, "Synchronize after each kernel call (bit 1) and DMA transfer (bit 2) and identify failures")
300301
AddOption(recoTaskTiming, bool, 0, "", 0, "Perform summary timing after whole reconstruction tasks")
301302
AddOption(deterministicGPUReconstruction, int32_t, -1, "", 0, "Make CPU and GPU debug output comparable (sort / skip concurrent parts), -1 = automatic if debugLevel >= 6", def(1))

GPU/GPUTracking/Global/GPUChainTracking.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ int32_t GPUChainTracking::Init()
378378
}
379379

380380
if (GetProcessingSettings().debugLevel >= 6) {
381-
std::string filename = std::string(mRec->IsGPU() ? "GPU" : "CPU") + (mRec->slaveId() != -1 ? (std::string("_slave") + std::to_string(mRec->slaveId())) : std::string(mRec->slavesExist() ? "_master" : "")) + ".out";
381+
std::string filename = std::string(mRec->IsGPU() ? "GPU" : "CPU") + (mRec->slaveId() != -1 ? (std::string("_slave") + std::to_string(mRec->slaveId())) : std::string(mRec->slavesExist() ? "_master" : "")) + GetProcessingSettings().debugLogSuffix + ".out";
382382
mDebugFile->open(filename.c_str());
383383
}
384384

@@ -838,7 +838,7 @@ int32_t GPUChainTracking::RunChainFinalize()
838838

839839
int32_t iKey;
840840
do {
841-
Sleep(10);
841+
usleep(10000);
842842
if (GetProcessingSettings().eventDisplay->EnableSendKey()) {
843843
iKey = kbhit() ? getch() : 0;
844844
if (iKey == 27) {
@@ -847,7 +847,7 @@ int32_t GPUChainTracking::RunChainFinalize()
847847
break;
848848
} else if (iKey) {
849849
while (GetProcessingSettings().eventDisplay->getSendKey() != 0) {
850-
Sleep(1);
850+
usleep(1000);
851851
}
852852
GetProcessingSettings().eventDisplay->setSendKey(iKey);
853853
}

GPU/GPUTracking/Global/GPUChainTrackingIO.cxx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@
4747
#include "TPCFastTransform.h"
4848
#include "CorrectionMapsHelper.h"
4949

50-
#include "utils/linux_helpers.h"
51-
5250
using namespace o2::gpu;
5351

5452
#include "GPUO2DataTypes.h"

0 commit comments

Comments
 (0)