Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions sycl/include/sycl/ext/oneapi/experimental/bfloat16.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class bfloat16 {
return __spirv_ConvertFToBF16INTEL(a);
#endif
#else
(void)a;
throw exception{errc::feature_not_supported,
"Bfloat16 conversion is not supported on host device"};
#endif
Expand All @@ -50,6 +51,7 @@ class bfloat16 {
return __spirv_ConvertBF16ToFINTEL(a);
#endif
#else
(void)a;
throw exception{errc::feature_not_supported,
"Bfloat16 conversion is not supported on host device"};
#endif
Expand Down Expand Up @@ -88,6 +90,7 @@ class bfloat16 {
return bfloat16{-__spirv_ConvertBF16ToFINTEL(lhs.value)};
#endif
#else
(void)lhs;
throw exception{errc::feature_not_supported,
"Bfloat16 unary minus is not supported on host device"};
#endif
Expand Down