Skip to content

Commit e488394

Browse files
committed
add omp guard for DeviceGlobal
1 parent d28267d commit e488394

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libdevice/include/sanitizer_device_utils.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include "spir_global_var.hpp"
1111
#include <cstdint>
1212

13+
#if !OMP_LIBDEVICE || !INTEL_COLLAB
1314
template <typename T>
1415
class
1516
#ifdef __SYCL_DEVICE_ONLY__
@@ -39,5 +40,6 @@ class
3940
private:
4041
T val;
4142
};
43+
#endif
4244

4345
enum DeviceType : uint64_t { UNKNOWN, CPU, GPU_PVC, GPU_DG2 };

0 commit comments

Comments
 (0)