Skip to content

Commit ee0eff4

Browse files
committed
Minor fixes of debug printouts
1 parent 79d4f09 commit ee0eff4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

DataFormats/common/include/CommonDataFormat/InteractionRecord.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ struct InteractionRecord {
281281
return tmp;
282282
}
283283

284-
#ifndef GPUCA_ALIGPUCODE
284+
#if !defined(GPUCA_GPUCODE) && !defined(GPUCA_STANDALONE)
285285
void print() const;
286286
std::string asString() const;
287287
friend std::ostream& operator<<(std::ostream& stream, InteractionRecord const& ir);
@@ -359,7 +359,7 @@ struct InteractionTimeRecord : public InteractionRecord {
359359
return !((*this) > other);
360360
}
361361

362-
#ifndef GPUCA_ALIGPUCODE
362+
#if !defined(GPUCA_GPUCODE) && !defined(GPUCA_STANDALONE)
363363
void print() const;
364364
std::string asString() const;
365365
friend std::ostream& operator<<(std::ostream& stream, InteractionTimeRecord const& ir);

GPU/GPUTracking/Base/GPUReconstructionCPU.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ inline void GPUReconstructionCPU::runKernelBackend(const krnlSetupTime& _xyz, co
6666
int32_t nThreads = getNKernelHostThreads(false);
6767
if (nThreads > 1) {
6868
if (GetProcessingSettings().debugLevel >= 5) {
69-
printf("Running %d Threads\n", mThreading->activeThreads->max_concurrency());
69+
GPUInfo("Running %d Threads", mThreading->activeThreads->max_concurrency());
7070
}
7171
tbb::this_task_arena::isolate([&] {
7272
mThreading->activeThreads->execute([&] {
@@ -227,7 +227,7 @@ int32_t GPUReconstructionCPU::RunChains()
227227
mNEventsProcessed++;
228228

229229
if (GetProcessingSettings().debugLevel >= 3 || GetProcessingSettings().allocDebugLevel) {
230-
printf("Allocated memory when starting processing %34s", "");
230+
GPUInfo("Allocated memory when starting processing %34s", "");
231231
PrintMemoryOverview();
232232
}
233233
mTimerTotal.Start();
@@ -254,7 +254,7 @@ int32_t GPUReconstructionCPU::RunChains()
254254
mTimerTotal.Stop();
255255
mStatCPUTime += (double)(std::clock() - cpuTimerStart) / CLOCKS_PER_SEC;
256256
if (GetProcessingSettings().debugLevel >= 3 || GetProcessingSettings().allocDebugLevel) {
257-
printf("Allocated memory when ending processing %36s", "");
257+
GPUInfo("Allocated memory when ending processing %36s", "");
258258
PrintMemoryOverview();
259259
}
260260

0 commit comments

Comments
 (0)