Skip to content

Commit 6a70d9a

Browse files
authored
[ESIMD] Disable ABI changes warnings in host compiler. (#5931)
Signed-off-by: Konstantin S Bobrovsky <[email protected]>
1 parent cdf561a commit 6a70d9a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

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

+12
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)