File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
sycl/include/sycl/ext/oneapi Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -235,7 +235,7 @@ __devicelib_ConvertBF16ToFINTELVec16(const uint16_t *, float *) noexcept;
235
235
template <int N>
236
236
inline void BF16VecToFloatVec (const bfloat16 src[N], float dst[N]) {
237
237
static_assert (N == 1 || N == 2 || N == 3 || N == 4 || N == 8 || N == 16 ,
238
- " Unsupported vector size" );
238
+ " Unsupported vector size for bfloat16 conversion " );
239
239
#if defined(__SYCL_DEVICE_ONLY__) && (defined(__SPIR__) || defined(__SPIRV__))
240
240
const uint16_t *src_i16 = sycl::bit_cast<const uint16_t *>(src);
241
241
if constexpr (N == 1 )
@@ -593,7 +593,8 @@ inline bfloat16 getBfloat16WithRoundingMode(const Ty &a) {
593
593
return getBFloat16FromSIntegralWithRoundingMode<Ty>(a, roundingMode);
594
594
} else {
595
595
static_assert (std::is_integral_v<Ty> || std::is_floating_point_v<Ty>,
596
- " Only integral and floating point types are supported." );
596
+ " Only integral and floating-point types are supported for "
597
+ " conversion to bfloat16." );
597
598
}
598
599
}
599
600
} // namespace ConvertToBfloat16
You can’t perform that action at this time.
0 commit comments