@@ -33,10 +33,10 @@ T reduce_over_group_impl(GroupHelper group_helper, T x, size_t num_elements,
33
33
group_barrier (g);
34
34
return group_broadcast (g, result);
35
35
#else
36
- std::ignore = group_helper;
37
- std::ignore = x;
38
- std::ignore = num_elements;
39
- std::ignore = binary_op;
36
+ ( void ) group_helper;
37
+ ( void ) x;
38
+ ( void ) num_elements;
39
+ ( void ) binary_op;
40
40
throw exception (make_error_code (errc::runtime),
41
41
" Group algorithms are not supported on host." );
42
42
#endif
@@ -73,7 +73,7 @@ reduce_over_group(GroupHelper group_helper, V x, T init,
73
73
#ifdef __SYCL_DEVICE_ONLY__
74
74
return binary_op (init, reduce_over_group (group_helper, x, binary_op));
75
75
#else
76
- std::ignore = group_helper;
76
+ ( void ) group_helper;
77
77
throw exception (make_error_code (errc::runtime),
78
78
" Group algorithms are not supported on host." );
79
79
#endif
@@ -107,10 +107,10 @@ joint_reduce(GroupHelper group_helper, Ptr first, Ptr last,
107
107
return detail::reduce_over_group_impl (group_helper, partial, num_elements,
108
108
binary_op);
109
109
#else
110
- std::ignore = group_helper;
111
- std::ignore = first;
112
- std::ignore = last;
113
- std::ignore = binary_op;
110
+ ( void ) group_helper;
111
+ ( void ) first;
112
+ ( void ) last;
113
+ ( void ) binary_op;
114
114
throw exception (make_error_code (errc::runtime),
115
115
" Group algorithms are not supported on host." );
116
116
#endif
@@ -129,8 +129,8 @@ joint_reduce(GroupHelper group_helper, Ptr first, Ptr last, T init,
129
129
#ifdef __SYCL_DEVICE_ONLY__
130
130
return binary_op (init, joint_reduce (group_helper, first, last, binary_op));
131
131
#else
132
- std::ignore = group_helper;
133
- std::ignore = last;
132
+ ( void ) group_helper;
133
+ ( void ) last;
134
134
throw exception (make_error_code (errc::runtime),
135
135
" Group algorithms are not supported on host." );
136
136
#endif
0 commit comments