Skip to content

Commit 4c1e29e

Browse files
committed
GPU: Hide FairLogger more effectively when compiling kernels
1 parent 5b0d25d commit 4c1e29e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

GPU/Common/GPUCommonLogger.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ struct DummyLogger {
4545
#define LOGP(...)
4646
// #define LOGP(...) static_assert(false, "LOGP(...) unsupported in GPU code");
4747

48-
#elif defined(GPUCA_STANDALONE)
48+
#elif defined(GPUCA_STANDALONE) || defined(GPUCA_GPUCODE_COMPILEKERNELS) || defined(GPUCA_COMPILEKERNELS)
4949
#include <iostream>
5050
#include <cstdio>
5151
#define LOG(type) std::cout

GPU/GPUTracking/Base/cuda/GPUReconstructionCUDAKernels.cu

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
/// \file GPUReconstructionCUDAKernels.cu
1313
/// \author David Rohr
1414

15+
#define GPUCA_COMPILEKERNELS
1516
#include "GPUReconstructionCUDAIncludesSystem.h"
1617
#include "GPUReconstructionCUDADef.h"
1718

0 commit comments

Comments
 (0)