@@ -161,7 +161,7 @@ std::enable_if_t<std::is_same<T, bfloat16>::value, T> fmin(T x, T y) {
161
161
return bfloat16::from_bits (__clc_fmin (x.raw (), y.raw ()));
162
162
#else
163
163
std::ignore = x;
164
- ( void ) y;
164
+ std::ignore = y;
165
165
throw runtime_error (" bfloat16 is not currently supported on the host device." ,
166
166
PI_ERROR_INVALID_DEVICE);
167
167
#endif // defined(__SYCL_DEVICE_ONLY__) && defined(__NVPTX__)
@@ -187,7 +187,7 @@ sycl::marray<bfloat16, N> fmin(sycl::marray<bfloat16, N> x,
187
187
return res;
188
188
#else
189
189
std::ignore = x;
190
- ( void ) y;
190
+ std::ignore = y;
191
191
throw runtime_error (" bfloat16 is not currently supported on the host device." ,
192
192
PI_ERROR_INVALID_DEVICE);
193
193
#endif // defined(__SYCL_DEVICE_ONLY__) && defined(__NVPTX__)
@@ -199,7 +199,7 @@ std::enable_if_t<std::is_same<T, bfloat16>::value, T> fmax(T x, T y) {
199
199
return bfloat16::from_bits (__clc_fmax (x.raw (), y.raw ()));
200
200
#else
201
201
std::ignore = x;
202
- ( void ) y;
202
+ std::ignore = y;
203
203
throw runtime_error (" bfloat16 is not currently supported on the host device." ,
204
204
PI_ERROR_INVALID_DEVICE);
205
205
#endif // defined(__SYCL_DEVICE_ONLY__) && defined(__NVPTX__)
@@ -224,7 +224,7 @@ sycl::marray<bfloat16, N> fmax(sycl::marray<bfloat16, N> x,
224
224
return res;
225
225
#else
226
226
std::ignore = x;
227
- ( void ) y;
227
+ std::ignore = y;
228
228
throw runtime_error (" bfloat16 is not currently supported on the host device." ,
229
229
PI_ERROR_INVALID_DEVICE);
230
230
#endif // defined(__SYCL_DEVICE_ONLY__) && defined(__NVPTX__)
@@ -236,8 +236,8 @@ std::enable_if_t<std::is_same<T, bfloat16>::value, T> fma(T x, T y, T z) {
236
236
return bfloat16::from_bits (__clc_fma (x.raw (), y.raw (), z.raw ()));
237
237
#else
238
238
std::ignore = x;
239
- ( void ) y;
240
- ( void ) z;
239
+ std::ignore = y;
240
+ std::ignore = z;
241
241
throw runtime_error (" bfloat16 is not currently supported on the host device." ,
242
242
PI_ERROR_INVALID_DEVICE);
243
243
#endif // defined(__SYCL_DEVICE_ONLY__) && defined(__NVPTX__)
@@ -264,7 +264,8 @@ sycl::marray<bfloat16, N> fma(sycl::marray<bfloat16, N> x,
264
264
return res;
265
265
#else
266
266
std::ignore = x;
267
- (void )y;
267
+ std::ignore = y;
268
+ std::ignore = z;
268
269
throw runtime_error (" bfloat16 is not currently supported on the host device." ,
269
270
PI_ERROR_INVALID_DEVICE);
270
271
#endif // defined(__SYCL_DEVICE_ONLY__) && defined(__NVPTX__)
0 commit comments