Skip to content

Commit c4ecc71

Browse files
committed
[ESIMD] Disable ABI changes warnings in host compiler.
Signed-off-by: Konstantin S Bobrovsky <konstantin.s.bobrovsky@intel.com>
1 parent 1f531c0 commit c4ecc71

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

sycl/include/sycl/ext/intel/esimd.hpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,14 @@
7171

7272
/// @} sycl_esimd
7373

74+
// TODO Disable "changes ABI" warnings emitted by host compiler, because ESIMD
75+
// code is supposed to be compiled by clang++ only for now anyway, plus ESIMD
76+
// code performance on host is not an issue yet.
77+
#if !defined(__SYCL_DEVICE_ONLY__) && defined(__clang__)
78+
#pragma clang diagnostic push
79+
#pragma clang diagnostic ignored "-Wpsabi"
80+
#endif // !defined(__SYCL_DEVICE_ONLY__) && defined(__clang__)
81+
7482
#include <sycl/ext/intel/esimd/alt_ui.hpp>
7583
#include <sycl/ext/intel/esimd/common.hpp>
7684
#include <sycl/ext/intel/esimd/math.hpp>
@@ -79,3 +87,7 @@
7987
#include <sycl/ext/intel/esimd/simd_view.hpp>
8088
#include <sycl/ext/intel/experimental/esimd/math.hpp>
8189
#include <sycl/ext/intel/experimental/esimd/memory.hpp>
90+
91+
#if !defined(__SYCL_DEVICE_ONLY__) && defined(__clang__)
92+
#pragma clang diagnostics pop
93+
#endif // !defined(__SYCL_DEVICE_ONLY__) && defined(__clang__)

0 commit comments

Comments
 (0)