@@ -120,7 +120,7 @@ std::enable_if_t<std::is_same<T, bfloat16>::value, T> fabs(T x) {
120
120
#if defined(__SYCL_DEVICE_ONLY__) && defined(__NVPTX__)
121
121
return bfloat16::from_bits (__clc_fabs (x.raw ()));
122
122
#else
123
- ( void ) x;
123
+ std::ignore = x;
124
124
throw runtime_error (" bfloat16 is not currently supported on the host device." ,
125
125
PI_INVALID_DEVICE);
126
126
#endif // defined(__SYCL_DEVICE_ONLY__) && defined(__NVPTX__)
@@ -141,7 +141,7 @@ sycl::marray<bfloat16, N> fabs(sycl::marray<bfloat16, N> x) {
141
141
}
142
142
return res;
143
143
#else
144
- ( void ) x;
144
+ std::ignore = x;
145
145
throw runtime_error (" bfloat16 is not currently supported on the host device." ,
146
146
PI_INVALID_DEVICE);
147
147
#endif // defined(__SYCL_DEVICE_ONLY__) && defined(__NVPTX__)
@@ -152,7 +152,7 @@ std::enable_if_t<std::is_same<T, bfloat16>::value, T> fmin(T x, T y) {
152
152
#if defined(__SYCL_DEVICE_ONLY__) && defined(__NVPTX__)
153
153
return bfloat16::from_bits (__clc_fmin (x.raw (), y.raw ()));
154
154
#else
155
- ( void ) x;
155
+ std::ignore = x;
156
156
(void )y;
157
157
throw runtime_error (" bfloat16 is not currently supported on the host device." ,
158
158
PI_INVALID_DEVICE);
@@ -178,7 +178,7 @@ sycl::marray<bfloat16, N> fmin(sycl::marray<bfloat16, N> x,
178
178
179
179
return res;
180
180
#else
181
- ( void ) x;
181
+ std::ignore = x;
182
182
(void )y;
183
183
throw runtime_error (" bfloat16 is not currently supported on the host device." ,
184
184
PI_INVALID_DEVICE);
@@ -190,7 +190,7 @@ std::enable_if_t<std::is_same<T, bfloat16>::value, T> fmax(T x, T y) {
190
190
#if defined(__SYCL_DEVICE_ONLY__) && defined(__NVPTX__)
191
191
return bfloat16::from_bits (__clc_fmax (x.raw (), y.raw ()));
192
192
#else
193
- ( void ) x;
193
+ std::ignore = x;
194
194
(void )y;
195
195
throw runtime_error (" bfloat16 is not currently supported on the host device." ,
196
196
PI_INVALID_DEVICE);
@@ -215,7 +215,7 @@ sycl::marray<bfloat16, N> fmax(sycl::marray<bfloat16, N> x,
215
215
}
216
216
return res;
217
217
#else
218
- ( void ) x;
218
+ std::ignore = x;
219
219
(void )y;
220
220
throw runtime_error (" bfloat16 is not currently supported on the host device." ,
221
221
PI_INVALID_DEVICE);
@@ -227,7 +227,7 @@ std::enable_if_t<std::is_same<T, bfloat16>::value, T> fma(T x, T y, T z) {
227
227
#if defined(__SYCL_DEVICE_ONLY__) && defined(__NVPTX__)
228
228
return bfloat16::from_bits (__clc_fma (x.raw (), y.raw (), z.raw ()));
229
229
#else
230
- ( void ) x;
230
+ std::ignore = x;
231
231
(void )y;
232
232
(void )z;
233
233
throw runtime_error (" bfloat16 is not currently supported on the host device." ,
@@ -255,7 +255,7 @@ sycl::marray<bfloat16, N> fma(sycl::marray<bfloat16, N> x,
255
255
}
256
256
return res;
257
257
#else
258
- ( void ) x;
258
+ std::ignore = x;
259
259
(void )y;
260
260
throw runtime_error (" bfloat16 is not currently supported on the host device." ,
261
261
PI_INVALID_DEVICE);
0 commit comments