Skip to content

Commit 64abf5c

Browse files
committed
GPU: Fix GPUChkErr macro, GPU::Common should not use GPU::GPUTracking internals
1 parent 74c2ec2 commit 64abf5c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

GPU/Common/GPUCommonHelpers.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#define GPUChkErrSI(x) o2::gpu::internal::GPUReconstructionChkErr(x, __FILE__, __LINE__, false)
3434

3535
#include "GPUCommonDef.h"
36+
#include "GPUCommonLogger.h"
3637
#include <cstdint>
3738

3839
namespace o2::gpu::internal
@@ -43,7 +44,7 @@ extern int32_t GPUCOMMON_INTERNAL_CAT(GPUReconstruction, GPUCA_GPUTYPE, ChkErr)(
4344
inline int32_t GPUReconstructionCPUChkErr(const int64_t error, const char* file, int32_t line)
4445
{
4546
if (error) {
46-
GPUError("GPUCommon Error Code %d (%s:%d)", error, file, line);
47+
LOGF(error, "GPUCommon Error Code %ld (%s:%d)", (long)error, file, line);
4748
}
4849
return error != 0;
4950
}

0 commit comments

Comments
 (0)