@@ -21,247 +21,247 @@ namespace sycl {
21
21
// Explicit USM
22
22
// /
23
23
__SYCL_EXPORT void *malloc_device (size_t size, const device &dev,
24
- const context &ctxt _CODELOCPARAM (&CL ));
24
+ const context &ctxt _CODELOCPARAM (&CodeLoc ));
25
25
__SYCL_EXPORT void *
26
26
malloc_device (size_t size, const device &dev, const context &ctxt,
27
- const property_list &propList _CODELOCPARAM (&CL ));
27
+ const property_list &propList _CODELOCPARAM (&CodeLoc ));
28
28
__SYCL_EXPORT void *malloc_device (size_t size,
29
- const queue &q _CODELOCPARAM (&CL ));
29
+ const queue &q _CODELOCPARAM (&CodeLoc ));
30
30
__SYCL_EXPORT void *
31
31
malloc_device (size_t size, const queue &q,
32
- const property_list &propList _CODELOCPARAM (&CL ));
32
+ const property_list &propList _CODELOCPARAM (&CodeLoc ));
33
33
34
34
__SYCL_EXPORT void *
35
35
aligned_alloc_device (size_t alignment, size_t size, const device &dev,
36
- const context &ctxt _CODELOCPARAM (&CL ));
36
+ const context &ctxt _CODELOCPARAM (&CodeLoc ));
37
37
__SYCL_EXPORT void *
38
38
aligned_alloc_device (size_t alignment, size_t size, const device &dev,
39
39
const context &ctxt,
40
- const property_list &propList _CODELOCPARAM (&CL ));
40
+ const property_list &propList _CODELOCPARAM (&CodeLoc ));
41
41
__SYCL_EXPORT void *aligned_alloc_device (size_t alignment, size_t size,
42
- const queue &q _CODELOCPARAM (&CL ));
42
+ const queue &q _CODELOCPARAM (&CodeLoc ));
43
43
__SYCL_EXPORT void *
44
44
aligned_alloc_device (size_t alignment, size_t size, const queue &q,
45
- const property_list &propList _CODELOCPARAM (&CL ));
45
+ const property_list &propList _CODELOCPARAM (&CodeLoc ));
46
46
47
- __SYCL_EXPORT void free (void *ptr, const context &ctxt _CODELOCPARAM (&CL ));
48
- __SYCL_EXPORT void free (void *ptr, const queue &q _CODELOCPARAM (&CL ));
47
+ __SYCL_EXPORT void free (void *ptr, const context &ctxt _CODELOCPARAM (&CodeLoc ));
48
+ __SYCL_EXPORT void free (void *ptr, const queue &q _CODELOCPARAM (&CodeLoc ));
49
49
50
50
// /
51
51
// Restricted USM
52
52
// /
53
53
__SYCL_EXPORT void *malloc_host (size_t size,
54
- const context &ctxt _CODELOCPARAM (&CL ));
54
+ const context &ctxt _CODELOCPARAM (&CodeLoc ));
55
55
__SYCL_EXPORT void *
56
56
malloc_host (size_t size, const context &ctxt,
57
- const property_list &propList _CODELOCPARAM (&CL ));
58
- __SYCL_EXPORT void *malloc_host (size_t size, const queue &q _CODELOCPARAM (&CL ));
57
+ const property_list &propList _CODELOCPARAM (&CodeLoc ));
58
+ __SYCL_EXPORT void *malloc_host (size_t size, const queue &q _CODELOCPARAM (&CodeLoc ));
59
59
__SYCL_EXPORT void *
60
60
malloc_host (size_t size, const queue &q,
61
- const property_list &propList _CODELOCPARAM (&CL ));
61
+ const property_list &propList _CODELOCPARAM (&CodeLoc ));
62
62
63
63
__SYCL_EXPORT void *malloc_shared (size_t size, const device &dev,
64
- const context &ctxt _CODELOCPARAM (&CL ));
64
+ const context &ctxt _CODELOCPARAM (&CodeLoc ));
65
65
__SYCL_EXPORT void *
66
66
malloc_shared (size_t size, const device &dev, const context &ctxt,
67
- const property_list &propList _CODELOCPARAM (&CL ));
67
+ const property_list &propList _CODELOCPARAM (&CodeLoc ));
68
68
__SYCL_EXPORT void *malloc_shared (size_t size,
69
- const queue &q _CODELOCPARAM (&CL ));
69
+ const queue &q _CODELOCPARAM (&CodeLoc ));
70
70
__SYCL_EXPORT void *
71
71
malloc_shared (size_t size, const queue &q,
72
- const property_list &propList _CODELOCPARAM (&CL ));
72
+ const property_list &propList _CODELOCPARAM (&CodeLoc ));
73
73
74
74
__SYCL_EXPORT void *aligned_alloc_host (size_t alignment, size_t size,
75
- const context &ctxt _CODELOCPARAM (&CL ));
75
+ const context &ctxt _CODELOCPARAM (&CodeLoc ));
76
76
__SYCL_EXPORT void *
77
77
aligned_alloc_host (size_t alignment, size_t size, const context &ctxt,
78
- const property_list &propList _CODELOCPARAM (&CL ));
78
+ const property_list &propList _CODELOCPARAM (&CodeLoc ));
79
79
__SYCL_EXPORT void *aligned_alloc_host (size_t alignment, size_t size,
80
- const queue &q _CODELOCPARAM (&CL ));
80
+ const queue &q _CODELOCPARAM (&CodeLoc ));
81
81
__SYCL_EXPORT void *
82
82
aligned_alloc_host (size_t alignment, size_t size, const queue &q,
83
- const property_list &propList _CODELOCPARAM (&CL ));
83
+ const property_list &propList _CODELOCPARAM (&CodeLoc ));
84
84
85
85
__SYCL_EXPORT void *
86
86
aligned_alloc_shared (size_t alignment, size_t size, const device &dev,
87
- const context &ctxt _CODELOCPARAM (&CL ));
87
+ const context &ctxt _CODELOCPARAM (&CodeLoc ));
88
88
__SYCL_EXPORT void *
89
89
aligned_alloc_shared (size_t alignment, size_t size, const device &dev,
90
90
const context &ctxt,
91
- const property_list &propList _CODELOCPARAM (&CL ));
91
+ const property_list &propList _CODELOCPARAM (&CodeLoc ));
92
92
__SYCL_EXPORT void *aligned_alloc_shared (size_t alignment, size_t size,
93
- const queue &q _CODELOCPARAM (&CL ));
93
+ const queue &q _CODELOCPARAM (&CodeLoc ));
94
94
__SYCL_EXPORT void *
95
95
aligned_alloc_shared (size_t alignment, size_t size, const queue &q,
96
- const property_list &propList _CODELOCPARAM (&CL ));
96
+ const property_list &propList _CODELOCPARAM (&CodeLoc ));
97
97
98
98
// /
99
99
// single form
100
100
// /
101
101
__SYCL_EXPORT void *malloc (size_t size, const device &dev, const context &ctxt,
102
- usm::alloc kind _CODELOCPARAM (&CL ));
102
+ usm::alloc kind _CODELOCPARAM (&CodeLoc ));
103
103
__SYCL_EXPORT void *malloc (size_t size, const device &dev, const context &ctxt,
104
104
usm::alloc kind,
105
- const property_list &propList _CODELOCPARAM (&CL ));
105
+ const property_list &propList _CODELOCPARAM (&CodeLoc ));
106
106
__SYCL_EXPORT void *malloc (size_t size, const queue &q,
107
- usm::alloc kind _CODELOCPARAM (&CL ));
107
+ usm::alloc kind _CODELOCPARAM (&CodeLoc ));
108
108
__SYCL_EXPORT void *malloc (size_t size, const queue &q, usm::alloc kind,
109
- const property_list &propList _CODELOCPARAM (&CL ));
109
+ const property_list &propList _CODELOCPARAM (&CodeLoc ));
110
110
111
111
__SYCL_EXPORT void *aligned_alloc (size_t alignment, size_t size,
112
112
const device &dev, const context &ctxt,
113
- usm::alloc kind _CODELOCPARAM (&CL ));
113
+ usm::alloc kind _CODELOCPARAM (&CodeLoc ));
114
114
__SYCL_EXPORT void *
115
115
aligned_alloc (size_t alignment, size_t size, const device &dev,
116
116
const context &ctxt, usm::alloc kind,
117
- const property_list &propList _CODELOCPARAM (&CL ));
117
+ const property_list &propList _CODELOCPARAM (&CodeLoc ));
118
118
__SYCL_EXPORT void *aligned_alloc (size_t alignment, size_t size, const queue &q,
119
- usm::alloc kind _CODELOCPARAM (&CL ));
119
+ usm::alloc kind _CODELOCPARAM (&CodeLoc ));
120
120
__SYCL_EXPORT void *
121
121
aligned_alloc (size_t alignment, size_t size, const queue &q, usm::alloc kind,
122
- const property_list &propList _CODELOCPARAM (&CL ));
122
+ const property_list &propList _CODELOCPARAM (&CodeLoc ));
123
123
124
124
// /
125
125
// Template forms
126
126
// /
127
127
template <typename T>
128
128
T *malloc_device (
129
129
size_t Count, const device &Dev, const context &Ctxt,
130
- const property_list &PropList = {} _CODELOCPARAM(&CL )) {
131
- _CODELOCARG (&CL );
130
+ const property_list &PropList = {} _CODELOCPARAM(&CodeLoc )) {
131
+ _CODELOCARG (&CodeLoc );
132
132
return static_cast <T *>(aligned_alloc_device (alignof (T), Count * sizeof (T),
133
- Dev, Ctxt, PropList, CL ));
133
+ Dev, Ctxt, PropList, CodeLoc ));
134
134
}
135
135
136
136
template <typename T>
137
137
T *malloc_device (
138
138
size_t Count, const queue &Q,
139
- const property_list &PropList = {} _CODELOCPARAM(&CL )) {
140
- _CODELOCARG (&CL );
141
- return malloc_device<T>(Count, Q.get_device (), Q.get_context (), PropList, CL );
139
+ const property_list &PropList = {} _CODELOCPARAM(&CodeLoc )) {
140
+ _CODELOCARG (&CodeLoc );
141
+ return malloc_device<T>(Count, Q.get_device (), Q.get_context (), PropList, CodeLoc );
142
142
}
143
143
144
144
template <typename T>
145
145
T *aligned_alloc_device (
146
146
size_t Alignment, size_t Count, const device &Dev, const context &Ctxt,
147
- const property_list &PropList = {} _CODELOCPARAM(&CL )) {
148
- _CODELOCARG (&CL );
147
+ const property_list &PropList = {} _CODELOCPARAM(&CodeLoc )) {
148
+ _CODELOCARG (&CodeLoc );
149
149
return static_cast <T *>(aligned_alloc_device (
150
- max (Alignment, alignof (T)), Count * sizeof (T), Dev, Ctxt, PropList, CL ));
150
+ max (Alignment, alignof (T)), Count * sizeof (T), Dev, Ctxt, PropList, CodeLoc ));
151
151
}
152
152
153
153
template <typename T>
154
154
T *aligned_alloc_device (
155
155
size_t Alignment, size_t Count, const queue &Q,
156
- const property_list &PropList = {} _CODELOCPARAM(&CL )) {
157
- _CODELOCARG (&CL );
156
+ const property_list &PropList = {} _CODELOCPARAM(&CodeLoc )) {
157
+ _CODELOCARG (&CodeLoc );
158
158
return aligned_alloc_device<T>(Alignment, Count, Q.get_device (),
159
- Q.get_context (), PropList, CL );
159
+ Q.get_context (), PropList, CodeLoc );
160
160
}
161
161
162
162
template <typename T>
163
163
T *malloc_host (
164
164
size_t Count, const context &Ctxt,
165
- const property_list &PropList = {} _CODELOCPARAM(&CL )) {
166
- _CODELOCARG (&CL );
165
+ const property_list &PropList = {} _CODELOCPARAM(&CodeLoc )) {
166
+ _CODELOCARG (&CodeLoc );
167
167
return static_cast <T *>(
168
- aligned_alloc_host (alignof (T), Count * sizeof (T), Ctxt, PropList, CL ));
168
+ aligned_alloc_host (alignof (T), Count * sizeof (T), Ctxt, PropList, CodeLoc ));
169
169
}
170
170
171
171
template <typename T>
172
172
T *malloc_host (
173
173
size_t Count, const queue &Q,
174
- const property_list &PropList = {} _CODELOCPARAM(&CL )) {
175
- _CODELOCARG (&CL );
176
- return malloc_host<T>(Count, Q.get_context (), PropList, CL );
174
+ const property_list &PropList = {} _CODELOCPARAM(&CodeLoc )) {
175
+ _CODELOCARG (&CodeLoc );
176
+ return malloc_host<T>(Count, Q.get_context (), PropList, CodeLoc );
177
177
}
178
178
179
179
template <typename T>
180
180
T *malloc_shared (
181
181
size_t Count, const device &Dev, const context &Ctxt,
182
- const property_list &PropList = {} _CODELOCPARAM(&CL )) {
183
- _CODELOCARG (&CL );
182
+ const property_list &PropList = {} _CODELOCPARAM(&CodeLoc )) {
183
+ _CODELOCARG (&CodeLoc );
184
184
return static_cast <T *>(aligned_alloc_shared (alignof (T), Count * sizeof (T),
185
- Dev, Ctxt, PropList, CL ));
185
+ Dev, Ctxt, PropList, CodeLoc ));
186
186
}
187
187
188
188
template <typename T>
189
189
T *malloc_shared (
190
190
size_t Count, const queue &Q,
191
- const property_list &PropList = {} _CODELOCPARAM(&CL )) {
192
- _CODELOCARG (&CL );
193
- return malloc_shared<T>(Count, Q.get_device (), Q.get_context (), PropList, CL );
191
+ const property_list &PropList = {} _CODELOCPARAM(&CodeLoc )) {
192
+ _CODELOCARG (&CodeLoc );
193
+ return malloc_shared<T>(Count, Q.get_device (), Q.get_context (), PropList, CodeLoc );
194
194
}
195
195
196
196
template <typename T>
197
197
T *aligned_alloc_host (
198
198
size_t Alignment, size_t Count, const context &Ctxt,
199
- const property_list &PropList = {} _CODELOCPARAM(&CL )) {
200
- _CODELOCARG (&CL );
199
+ const property_list &PropList = {} _CODELOCPARAM(&CodeLoc )) {
200
+ _CODELOCARG (&CodeLoc );
201
201
return static_cast <T *>(aligned_alloc_host (
202
- std ::max (Alignment, alignof (T)), Count * sizeof (T), Ctxt, PropList, CL ));
202
+ std ::max (Alignment, alignof (T)), Count * sizeof (T), Ctxt, PropList, CodeLoc ));
203
203
}
204
204
205
205
template <typename T>
206
206
T *aligned_alloc_host (
207
207
size_t Alignment, size_t Count, const queue &Q,
208
- const property_list &PropList = {} _CODELOCPARAM(&CL )) {
209
- _CODELOCARG (&CL );
210
- return aligned_alloc_host<T>(Alignment, Count, Q.get_context (), PropList, CL );
208
+ const property_list &PropList = {} _CODELOCPARAM(&CodeLoc )) {
209
+ _CODELOCARG (&CodeLoc );
210
+ return aligned_alloc_host<T>(Alignment, Count, Q.get_context (), PropList, CodeLoc );
211
211
}
212
212
213
213
template <typename T>
214
214
T *aligned_alloc_shared (
215
215
size_t Alignment, size_t Count, const device &Dev, const context &Ctxt,
216
- const property_list &PropList = {} _CODELOCPARAM(&CL )) {
217
- _CODELOCARG (&CL );
216
+ const property_list &PropList = {} _CODELOCPARAM(&CodeLoc )) {
217
+ _CODELOCARG (&CodeLoc );
218
218
return static_cast <T *>(aligned_alloc_shared (
219
- max (Alignment, alignof (T)), Count * sizeof (T), Dev, Ctxt, PropList, CL ));
219
+ max (Alignment, alignof (T)), Count * sizeof (T), Dev, Ctxt, PropList, CodeLoc ));
220
220
}
221
221
222
222
template <typename T>
223
223
T *aligned_alloc_shared (
224
224
size_t Alignment, size_t Count, const queue &Q,
225
- const property_list &PropList = {} _CODELOCPARAM(&CL )) {
226
- _CODELOCARG (&CL );
225
+ const property_list &PropList = {} _CODELOCPARAM(&CodeLoc )) {
226
+ _CODELOCARG (&CodeLoc );
227
227
return aligned_alloc_shared<T>(Alignment, Count, Q.get_device (),
228
- Q.get_context (), PropList, CL );
228
+ Q.get_context (), PropList, CodeLoc );
229
229
}
230
230
231
231
template <typename T>
232
232
T *malloc (
233
233
size_t Count, const device &Dev, const context &Ctxt, usm::alloc Kind,
234
- const property_list &PropList = {} _CODELOCPARAM(&CL )) {
235
- _CODELOCARG (&CL );
234
+ const property_list &PropList = {} _CODELOCPARAM(&CodeLoc )) {
235
+ _CODELOCARG (&CodeLoc );
236
236
return static_cast <T *>(aligned_alloc (alignof (T), Count * sizeof (T), Dev,
237
- Ctxt, Kind, PropList, CL ));
237
+ Ctxt, Kind, PropList, CodeLoc ));
238
238
}
239
239
240
240
template <typename T>
241
241
T *malloc (
242
242
size_t Count, const queue &Q, usm::alloc Kind,
243
- const property_list &PropList = {} _CODELOCPARAM(&CL )) {
244
- _CODELOCARG (&CL );
245
- return malloc<T>(Count, Q.get_device (), Q.get_context (), Kind, PropList, CL );
243
+ const property_list &PropList = {} _CODELOCPARAM(&CodeLoc )) {
244
+ _CODELOCARG (&CodeLoc );
245
+ return malloc<T>(Count, Q.get_device (), Q.get_context (), Kind, PropList, CodeLoc );
246
246
}
247
247
248
248
template <typename T>
249
249
T *aligned_alloc (
250
250
size_t Alignment, size_t Count, const device &Dev, const context &Ctxt,
251
- usm::alloc Kind, const property_list &PropList = {} _CODELOCPARAM(&CL )) {
252
- _CODELOCARG (&CL );
251
+ usm::alloc Kind, const property_list &PropList = {} _CODELOCPARAM(&CodeLoc )) {
252
+ _CODELOCARG (&CodeLoc );
253
253
return static_cast <T *>(aligned_alloc (max (Alignment, alignof (T)),
254
254
Count * sizeof (T), Dev, Ctxt, Kind,
255
- PropList, CL ));
255
+ PropList, CodeLoc ));
256
256
}
257
257
258
258
template <typename T>
259
259
T *aligned_alloc (
260
260
size_t Alignment, size_t Count, const queue &Q, usm::alloc Kind,
261
- const property_list &PropList = {} _CODELOCPARAM(&CL )) {
262
- _CODELOCARG (&CL );
261
+ const property_list &PropList = {} _CODELOCPARAM(&CodeLoc )) {
262
+ _CODELOCARG (&CodeLoc );
263
263
return aligned_alloc<T>(Alignment, Count, Q.get_device (), Q.get_context (),
264
- Kind, PropList, CL );
264
+ Kind, PropList, CodeLoc );
265
265
}
266
266
267
267
// Pointer queries
0 commit comments