diff --git a/sycl/include/sycl/ext/intel/esimd.hpp b/sycl/include/sycl/ext/intel/esimd.hpp index fa9503c0c4ce3..df78948ab5c08 100644 --- a/sycl/include/sycl/ext/intel/esimd.hpp +++ b/sycl/include/sycl/ext/intel/esimd.hpp @@ -71,6 +71,14 @@ /// @} sycl_esimd +// TODO Disable "changes ABI" warnings emitted by host compiler, because ESIMD +// code is supposed to be compiled by clang++ only for now anyway, plus ESIMD +// code performance on host is not an issue yet. +#if !defined(__SYCL_DEVICE_ONLY__) && defined(__clang__) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wpsabi" +#endif // !defined(__SYCL_DEVICE_ONLY__) && defined(__clang__) + #include #include #include @@ -79,3 +87,7 @@ #include #include #include + +#if !defined(__SYCL_DEVICE_ONLY__) && defined(__clang__) +#pragma clang diagnostics pop +#endif // !defined(__SYCL_DEVICE_ONLY__) && defined(__clang__)