Skip to content

[SYCL] Fix unused parameter warnings in bf16 storage builtins #5811

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 15, 2022
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
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