From 4b399565442da4b94771c5fe89d22658865885d7 Mon Sep 17 00:00:00 2001 From: David Rohr Date: Mon, 17 Mar 2025 15:16:10 +0100 Subject: [PATCH] GPU: Fix GPUChkErr macro, GPU::Common should not use GPU::GPUTracking internals --- GPU/Common/GPUCommonHelpers.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GPU/Common/GPUCommonHelpers.h b/GPU/Common/GPUCommonHelpers.h index ad876db0d6c3a..915d93c9bc791 100644 --- a/GPU/Common/GPUCommonHelpers.h +++ b/GPU/Common/GPUCommonHelpers.h @@ -33,6 +33,7 @@ #define GPUChkErrSI(x) o2::gpu::internal::GPUReconstructionChkErr(x, __FILE__, __LINE__, false) #include "GPUCommonDef.h" +#include "GPUCommonLogger.h" #include namespace o2::gpu::internal @@ -43,7 +44,7 @@ extern int32_t GPUCOMMON_INTERNAL_CAT(GPUReconstruction, GPUCA_GPUTYPE, ChkErr)( inline int32_t GPUReconstructionCPUChkErr(const int64_t error, const char* file, int32_t line) { if (error) { - GPUError("GPUCommon Error Code %d (%s:%d)", error, file, line); + LOGF(error, "GPUCommon Error Code %ld (%s:%d)", (long)error, file, line); } return error != 0; }