Skip to content
Merged
Changes from 1 commit
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
8 changes: 8 additions & 0 deletions sycl/include/sycl/ext/oneapi/bf16_storage_builtins.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ std::enable_if_t<detail::is_bf16_storage_type<T>::value, T> fabs(T x) {
#ifdef __SYCL_DEVICE_ONLY__
return __clc_fabs(x);
#else
(void) x;
throw runtime_error("bf16 is not supported on host device.",
PI_INVALID_DEVICE);
#endif
Expand All @@ -50,6 +51,8 @@ std::enable_if_t<detail::is_bf16_storage_type<T>::value, T> fmin(T x, T y) {
#ifdef __SYCL_DEVICE_ONLY__
return __clc_fmin(x, y);
#else
(void) x;
(void) y;
throw runtime_error("bf16 is not supported on host device.",
PI_INVALID_DEVICE);
#endif
Expand All @@ -59,6 +62,8 @@ std::enable_if_t<detail::is_bf16_storage_type<T>::value, T> fmax(T x, T y) {
#ifdef __SYCL_DEVICE_ONLY__
return __clc_fmax(x, y);
#else
(void) x;
(void) y;
throw runtime_error("bf16 is not supported on host device.",
PI_INVALID_DEVICE);
#endif
Expand All @@ -68,6 +73,9 @@ std::enable_if_t<detail::is_bf16_storage_type<T>::value, T> fma(T x, T y, T z) {
#ifdef __SYCL_DEVICE_ONLY__
return __clc_fma(x, y, z);
#else
(void) x;
(void) y;
(void) z;
throw runtime_error("bf16 is not supported on host device.",
PI_INVALID_DEVICE);
#endif
Expand Down