From ccfca50c56405b8ce3ad9e128433624e29b399fd Mon Sep 17 00:00:00 2001 From: Andrei Elovikov Date: Tue, 19 Nov 2024 14:09:35 -0800 Subject: [PATCH] [NFC][SYCL][ESIMD] Don't use boost/mp11 in e2e tests I believe that was the last explicit usage of it in the project. Can't remove CMake support for it still because we use boost's `unordered_*map` that depends on mp11. --- sycl/test-e2e/InvokeSimd/Spec/simd_mask.cpp | 19 +++++++++++-------- .../InvokeSimd/Spec/simd_mask_merge.cpp | 1 - 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/sycl/test-e2e/InvokeSimd/Spec/simd_mask.cpp b/sycl/test-e2e/InvokeSimd/Spec/simd_mask.cpp index eeabbe0f52774..9d603ec8289e7 100644 --- a/sycl/test-e2e/InvokeSimd/Spec/simd_mask.cpp +++ b/sycl/test-e2e/InvokeSimd/Spec/simd_mask.cpp @@ -14,7 +14,6 @@ * This test also runs with all types of VISA link time optimizations enabled. */ -#include #include #include #include @@ -141,18 +140,22 @@ int main() { << "\n"; bool passed = true; const bool SupportsDouble = dev.has(aspect::fp64); - using namespace sycl::detail::boost::mp11; using MaskTypes = std::tuple; - tuple_for_each(MaskTypes{}, [&](auto &&x) { - using T = std::remove_reference_t; - if (std::is_same_v && !SupportsDouble) - return; - passed &= !test(q); - }); + std::apply( + [&](auto &&...xs) { + auto f = [&](auto &&x) { + using T = std::remove_reference_t; + if (std::is_same_v && !SupportsDouble) + return; + passed &= !test(q); + }; + ((f(std::forward(xs)), ...)); + }, + MaskTypes{}); std::cout << (passed ? "Test passed\n" : "TEST FAILED\n"); return passed ? 0 : 1; } diff --git a/sycl/test-e2e/InvokeSimd/Spec/simd_mask_merge.cpp b/sycl/test-e2e/InvokeSimd/Spec/simd_mask_merge.cpp index 982a8259783b4..245bb5557869b 100644 --- a/sycl/test-e2e/InvokeSimd/Spec/simd_mask_merge.cpp +++ b/sycl/test-e2e/InvokeSimd/Spec/simd_mask_merge.cpp @@ -1,7 +1,6 @@ // Check that full compilation works: // RUN: %{build} -fno-sycl-device-code-split-esimd -Xclang -fsycl-allow-func-ptr -o %t.out // RUN: env IGC_VCSaveStackCallLinkage=1 IGC_VCDirectCallsOnly=1 %{run} %t.out -#include #include #include #include