From c4ecc71893429d2d8f2125cba8b5ac4635467d92 Mon Sep 17 00:00:00 2001 From: Konstantin S Bobrovsky Date: Wed, 30 Mar 2022 16:09:58 -0700 Subject: [PATCH] [ESIMD] Disable ABI changes warnings in host compiler. Signed-off-by: Konstantin S Bobrovsky --- sycl/include/sycl/ext/intel/esimd.hpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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__)