31
31
#include " dpctl_sycl_device_interface.h"
32
32
#include " dpctl_sycl_device_manager.h"
33
33
#include " dpctl_sycl_type_casters.hpp"
34
+
35
+ #include < stddef.h>
36
+ #include < stdint.h>
37
+
38
+ #include < cstdint>
34
39
#include < exception>
35
40
#include < sstream>
36
- #include < stddef.h>
37
41
#include < stdexcept>
38
42
#include < sycl/sycl.hpp> /* SYCL headers */
39
43
#include < utility>
@@ -45,49 +49,49 @@ using namespace sycl;
45
49
switch ((ARGTY)) { \
46
50
case DPCTL_INT8_T: \
47
51
{ \
48
- auto la = local_accessor<int8_t , NDIM>(R, CGH); \
52
+ auto la = local_accessor<std:: int8_t , NDIM>(R, CGH); \
49
53
CGH.set_arg (IDX, la); \
50
54
return true ; \
51
55
} \
52
56
case DPCTL_UINT8_T: \
53
57
{ \
54
- auto la = local_accessor<uint8_t , NDIM>(R, CGH); \
58
+ auto la = local_accessor<std:: uint8_t , NDIM>(R, CGH); \
55
59
CGH.set_arg (IDX, la); \
56
60
return true ; \
57
61
} \
58
62
case DPCTL_INT16_T: \
59
63
{ \
60
- auto la = local_accessor<int16_t , NDIM>(R, CGH); \
64
+ auto la = local_accessor<std:: int16_t , NDIM>(R, CGH); \
61
65
CGH.set_arg (IDX, la); \
62
66
return true ; \
63
67
} \
64
68
case DPCTL_UINT16_T: \
65
69
{ \
66
- auto la = local_accessor<uint16_t , NDIM>(R, CGH); \
70
+ auto la = local_accessor<std:: uint16_t , NDIM>(R, CGH); \
67
71
CGH.set_arg (IDX, la); \
68
72
return true ; \
69
73
} \
70
74
case DPCTL_INT32_T: \
71
75
{ \
72
- auto la = local_accessor<int32_t , NDIM>(R, CGH); \
76
+ auto la = local_accessor<std:: int32_t , NDIM>(R, CGH); \
73
77
CGH.set_arg (IDX, la); \
74
78
return true ; \
75
79
} \
76
80
case DPCTL_UINT32_T: \
77
81
{ \
78
- auto la = local_accessor<uint32_t , NDIM>(R, CGH); \
82
+ auto la = local_accessor<std:: uint32_t , NDIM>(R, CGH); \
79
83
CGH.set_arg (IDX, la); \
80
84
return true ; \
81
85
} \
82
86
case DPCTL_INT64_T: \
83
87
{ \
84
- auto la = local_accessor<int64_t , NDIM>(R, CGH); \
88
+ auto la = local_accessor<std:: int64_t , NDIM>(R, CGH); \
85
89
CGH.set_arg (IDX, la); \
86
90
return true ; \
87
91
} \
88
92
case DPCTL_UINT64_T: \
89
93
{ \
90
- auto la = local_accessor<uint64_t , NDIM>(R, CGH); \
94
+ auto la = local_accessor<std:: uint64_t , NDIM>(R, CGH); \
91
95
CGH.set_arg (IDX, la); \
92
96
return true ; \
93
97
} \
@@ -119,8 +123,8 @@ using namespace dpctl::syclinterface;
119
123
120
124
typedef struct complex
121
125
{
122
- uint64_t real;
123
- uint64_t imag;
126
+ std:: uint64_t real;
127
+ std:: uint64_t imag;
124
128
} complexNumber;
125
129
126
130
void set_dependent_events (handler &cgh,
@@ -177,28 +181,28 @@ bool set_kernel_arg(handler &cgh,
177
181
178
182
switch (ArgTy) {
179
183
case DPCTL_INT8_T:
180
- cgh.set_arg (idx, *(int8_t *)Arg);
184
+ cgh.set_arg (idx, *(std:: int8_t *)Arg);
181
185
break ;
182
186
case DPCTL_UINT8_T:
183
- cgh.set_arg (idx, *(uint8_t *)Arg);
187
+ cgh.set_arg (idx, *(std:: uint8_t *)Arg);
184
188
break ;
185
189
case DPCTL_INT16_T:
186
- cgh.set_arg (idx, *(int16_t *)Arg);
190
+ cgh.set_arg (idx, *(std:: int16_t *)Arg);
187
191
break ;
188
192
case DPCTL_UINT16_T:
189
- cgh.set_arg (idx, *(uint16_t *)Arg);
193
+ cgh.set_arg (idx, *(std:: uint16_t *)Arg);
190
194
break ;
191
195
case DPCTL_INT32_T:
192
- cgh.set_arg (idx, *(int32_t *)Arg);
196
+ cgh.set_arg (idx, *(std:: int32_t *)Arg);
193
197
break ;
194
198
case DPCTL_UINT32_T:
195
- cgh.set_arg (idx, *(uint32_t *)Arg);
199
+ cgh.set_arg (idx, *(std:: uint32_t *)Arg);
196
200
break ;
197
201
case DPCTL_INT64_T:
198
- cgh.set_arg (idx, *(int64_t *)Arg);
202
+ cgh.set_arg (idx, *(std:: int64_t *)Arg);
199
203
break ;
200
204
case DPCTL_UINT64_T:
201
- cgh.set_arg (idx, *(uint64_t *)Arg);
205
+ cgh.set_arg (idx, *(std:: uint64_t *)Arg);
202
206
break ;
203
207
case DPCTL_FLOAT32_T:
204
208
cgh.set_arg (idx, *(float *)Arg);
0 commit comments