@@ -160,18 +160,16 @@ struct sub_group {
160
160
/* --- vote / ballot functions --- */
161
161
162
162
#if __cplusplus >= 201402L
163
- [[deprecated (" Use sycl::intel::any_of instead." )]]
163
+ __SYCL_DEPRECATED__ (" Use sycl::intel::any_of instead." )
164
164
#endif
165
- bool
166
- any (bool predicate) const {
165
+ bool any (bool predicate) const {
167
166
return __spirv_GroupAny (__spv::Scope::Subgroup, predicate);
168
167
}
169
168
170
169
#if __cplusplus >= 201402L
171
- [[deprecated (" Use sycl::intel::all_of instead." )]]
170
+ __SYCL_DEPRECATED__ (" Use sycl::intel::all_of instead." )
172
171
#endif
173
- bool
174
- all (bool predicate) const {
172
+ bool all (bool predicate) const {
175
173
return __spirv_GroupAll (__spv::Scope::Subgroup, predicate);
176
174
}
177
175
@@ -183,50 +181,46 @@ struct sub_group {
183
181
184
182
template <typename T>
185
183
#if __cplusplus >= 201402L
186
- [[deprecated (" Use sycl::intel::broadcast instead." )]]
184
+ __SYCL_DEPRECATED__ (" Use sycl::intel::broadcast instead." )
187
185
#endif
188
- EnableIfIsScalarArithmetic<T>
189
- broadcast (T x, id<1 > local_id) const {
186
+ EnableIfIsScalarArithmetic<T> broadcast (T x, id<1 > local_id) const {
190
187
return detail::spirv::GroupBroadcast<__spv::Scope::Subgroup>(x, local_id);
191
188
}
192
189
193
190
template <typename T, class BinaryOperation >
194
191
#if __cplusplus >= 201402L
195
- [[deprecated (" Use sycl::intel::reduce instead." )]]
192
+ __SYCL_DEPRECATED__ (" Use sycl::intel::reduce instead." )
196
193
#endif
197
- EnableIfIsScalarArithmetic<T>
198
- reduce (T x, BinaryOperation op) const {
194
+ EnableIfIsScalarArithmetic<T> reduce (T x, BinaryOperation op) const {
199
195
return detail::calc<T, __spv::GroupOperation::Reduce,
200
196
__spv::Scope::Subgroup>(
201
197
typename detail::GroupOpTag<T>::type (), x, op);
202
198
}
203
199
204
200
template <typename T, class BinaryOperation >
205
201
#if __cplusplus >= 201402L
206
- [[deprecated (" Use sycl::intel::reduce instead." )]]
202
+ __SYCL_DEPRECATED__ (" Use sycl::intel::reduce instead." )
207
203
#endif
208
- EnableIfIsScalarArithmetic<T>
209
- reduce (T x, T init, BinaryOperation op) const {
204
+ EnableIfIsScalarArithmetic<T> reduce (T x, T init, BinaryOperation op) const {
210
205
return op (init, reduce (x, op));
211
206
}
212
207
213
208
template <typename T, class BinaryOperation >
214
209
#if __cplusplus >= 201402L
215
- [[deprecated (" Use sycl::intel::exclusive_scan instead." )]]
210
+ __SYCL_DEPRECATED__ (" Use sycl::intel::exclusive_scan instead." )
216
211
#endif
217
- EnableIfIsScalarArithmetic<T>
218
- exclusive_scan (T x, BinaryOperation op) const {
212
+ EnableIfIsScalarArithmetic<T> exclusive_scan (T x, BinaryOperation op) const {
219
213
return detail::calc<T, __spv::GroupOperation::ExclusiveScan,
220
214
__spv::Scope::Subgroup>(
221
215
typename detail::GroupOpTag<T>::type (), x, op);
222
216
}
223
217
224
218
template <typename T, class BinaryOperation >
225
219
#if __cplusplus >= 201402L
226
- [[deprecated (" Use sycl::intel::exclusive_scan instead." )]]
220
+ __SYCL_DEPRECATED__ (" Use sycl::intel::exclusive_scan instead." )
227
221
#endif
228
- EnableIfIsScalarArithmetic<T>
229
- exclusive_scan (T x, T init, BinaryOperation op) const {
222
+ EnableIfIsScalarArithmetic<T> exclusive_scan (T x, T init,
223
+ BinaryOperation op) const {
230
224
if (get_local_id ().get (0 ) == 0 ) {
231
225
x = op (init, x);
232
226
}
@@ -239,21 +233,20 @@ struct sub_group {
239
233
240
234
template <typename T, class BinaryOperation >
241
235
#if __cplusplus >= 201402L
242
- [[deprecated (" Use sycl::intel::inclusive_scan instead." )]]
236
+ __SYCL_DEPRECATED__ (" Use sycl::intel::inclusive_scan instead." )
243
237
#endif
244
- EnableIfIsScalarArithmetic<T>
245
- inclusive_scan (T x, BinaryOperation op) const {
238
+ EnableIfIsScalarArithmetic<T> inclusive_scan (T x, BinaryOperation op) const {
246
239
return detail::calc<T, __spv::GroupOperation::InclusiveScan,
247
240
__spv::Scope::Subgroup>(
248
241
typename detail::GroupOpTag<T>::type (), x, op);
249
242
}
250
243
251
244
template <typename T, class BinaryOperation >
252
245
#if __cplusplus >= 201402L
253
- [[deprecated (" Use sycl::intel::inclusive_scan instead." )]]
246
+ __SYCL_DEPRECATED__ (" Use sycl::intel::inclusive_scan instead." )
254
247
#endif
255
- EnableIfIsScalarArithmetic<T>
256
- inclusive_scan (T x, BinaryOperation op, T init) const {
248
+ EnableIfIsScalarArithmetic<T> inclusive_scan (T x, BinaryOperation op,
249
+ T init) const {
257
250
if (get_local_id ().get (0 ) == 0 ) {
258
251
x = op (init, x);
259
252
}
0 commit comments