From 4c1e29e8f348228f547bc7fa66021117782fa116 Mon Sep 17 00:00:00 2001 From: David Rohr Date: Thu, 27 Nov 2025 18:40:40 +0100 Subject: [PATCH] GPU: Hide FairLogger more effectively when compiling kernels --- GPU/Common/GPUCommonLogger.h | 2 +- GPU/GPUTracking/Base/cuda/GPUReconstructionCUDAKernels.cu | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/GPU/Common/GPUCommonLogger.h b/GPU/Common/GPUCommonLogger.h index 0b6b5ae401244..a70710e9ae744 100644 --- a/GPU/Common/GPUCommonLogger.h +++ b/GPU/Common/GPUCommonLogger.h @@ -45,7 +45,7 @@ struct DummyLogger { #define LOGP(...) // #define LOGP(...) static_assert(false, "LOGP(...) unsupported in GPU code"); -#elif defined(GPUCA_STANDALONE) +#elif defined(GPUCA_STANDALONE) || defined(GPUCA_GPUCODE_COMPILEKERNELS) || defined(GPUCA_COMPILEKERNELS) #include #include #define LOG(type) std::cout diff --git a/GPU/GPUTracking/Base/cuda/GPUReconstructionCUDAKernels.cu b/GPU/GPUTracking/Base/cuda/GPUReconstructionCUDAKernels.cu index e8779415f0ea4..d668bc7da1513 100644 --- a/GPU/GPUTracking/Base/cuda/GPUReconstructionCUDAKernels.cu +++ b/GPU/GPUTracking/Base/cuda/GPUReconstructionCUDAKernels.cu @@ -12,6 +12,7 @@ /// \file GPUReconstructionCUDAKernels.cu /// \author David Rohr +#define GPUCA_COMPILEKERNELS #include "GPUReconstructionCUDAIncludesSystem.h" #include "GPUReconstructionCUDADef.h"