Skip to content

Commit c2f066a

Browse files
ariedel-cerndavidrohr
authored andcommitted
Fix: add header guard
1 parent 7b5af49 commit c2f066a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

GPU/GPUTracking/Global/GPUErrors.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
#define GPUERRORS_H
1717

1818
#include "GPUCommonDef.h"
19-
2019
#ifndef GPUCA_GPUCODE
2120
#include <unordered_map>
2221
#endif
@@ -38,7 +37,9 @@ class GPUErrors
3837
void setMemory(GPUglobalref() uint32_t* m) { mErrors = m; }
3938
void clear();
4039
bool printErrors(bool silent = false, uint64_t mask = 0);
40+
#ifndef GPUCA_GPUCODE
4141
static const std::unordered_map<uint32_t, const char*>& getErrorNames();
42+
#endif
4243
uint32_t getNErrors() const;
4344
const uint32_t* getErrorPtr() const;
4445
static uint32_t getMaxErrors();

0 commit comments

Comments
 (0)