File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 13
13
#include < sycl/detail/defines_elementary.hpp>
14
14
#include < sycl/detail/export.hpp>
15
15
16
- #include < cstdint>
17
-
18
16
__SYCL_INLINE_NAMESPACE (cl) {
19
17
namespace sycl {
20
18
namespace detail {
@@ -23,6 +21,18 @@ namespace detail {
23
21
#define _Bool bool
24
22
#endif
25
23
24
+ // As stated above, this header file cannot include any of the standard C++
25
+ // headers. We need int64_t. Here we are matching the exact definition used by
26
+ // the SemaSYCL version of kernel_desc.hpp in the FE.
27
+ template <bool Cond, typename TrueT, typename FalseT> struct conditional {
28
+ using type = TrueT;
29
+ };
30
+ template <typename TrueT, typename FalseT>
31
+ struct conditional <false , TrueT, FalseT> {
32
+ using type = FalseT;
33
+ };
34
+ using int64_t = conditional<sizeof (long ) == 8 , long , long long >::type;
35
+
26
36
// kernel parameter kinds
27
37
enum class kernel_param_kind_t {
28
38
kind_accessor = 0 ,
You can’t perform that action at this time.
0 commit comments