Skip to content

Commit 1418329

Browse files
committed
fix intel/llvm bit_cast not self contained
1 parent 1c15316 commit 1418329

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

dpcpp/base/math.hpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
#include <climits>
99
#include <cmath>
1010

11+
#if GINKGO_DPCPP_MAJOR_VERSION < 7 || \
12+
(GINKGO_DPCPP_MAJOR_VERSION == 7 && GINKGO_DPCPP_MINOR_VERSION < 1)
13+
// bit_cast.hpp became self-contained during SYCL 7.0
14+
// ref: https://github.com/intel/llvm/pull/9684
15+
#include <sycl/detail/defines_elementary.hpp>
16+
#endif
1117
#include <sycl/bit_cast.hpp>
1218
#include <sycl/half_type.hpp>
1319

0 commit comments

Comments
 (0)