Skip to content

Commit 63d8c5b

Browse files
committed
GPU: Fix missing headers
1 parent 91d4cee commit 63d8c5b

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

GPU/GPUTracking/Definitions/GPULogging.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
#define GPUError(...)
3535
#define GPUFatal(...)
3636
#elif defined(GPUCA_STANDALONE) && !defined(GPUCA_GPUCODE_DEVICE) && !defined(GPUCA_NO_FMT)
37+
#include <cstdio>
3738
#include <fmt/printf.h>
3839
#define GPUInfo(string, ...) \
3940
{ \
@@ -54,6 +55,7 @@
5455
#elif defined(GPUCA_STANDALONE) || defined(GPUCA_GPUCODE_DEVICE) || (defined(GPUCA_ALIROOT_LIB) && defined(GPUCA_GPUCODE) && defined(__cplusplus) && __cplusplus < 201703L)
5556
// For standalone / CUDA / HIP, we just use printf, which should be available
5657
// Temporarily, we also have to handle CUDA on AliRoot with O2 defaults due to ROOT / CUDA incompatibilities
58+
#include <cstdio>
5759
#define GPUInfo(string, ...) \
5860
{ \
5961
printf(string "\n", ##__VA_ARGS__); \

GPU/GPUTracking/display/GPUDisplayInterface.cxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include <dlfcn.h>
2020
#include <mutex>
2121
#include <tuple>
22+
#include <stdexcept>
2223

2324
using namespace GPUCA_NAMESPACE::gpu;
2425

0 commit comments

Comments
 (0)