From 070e38ec3423c5f71279da7f43cde18a85b071ad Mon Sep 17 00:00:00 2001 From: Dan Hoeflinger Date: Fri, 6 Sep 2024 17:27:01 -0400 Subject: [PATCH] restricting workaround to a specific icx version Signed-off-by: Dan Hoeflinger --- test/parallel_api/sycl_canary.pass.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/parallel_api/sycl_canary.pass.cpp b/test/parallel_api/sycl_canary.pass.cpp index 8a42c12510d..32f6d09055a 100644 --- a/test/parallel_api/sycl_canary.pass.cpp +++ b/test/parallel_api/sycl_canary.pass.cpp @@ -27,8 +27,9 @@ #include -#if _MSC_VER -// algorithm is required as a workaround for a bug on windows with sycl includes not including it for std::iter_swap +#if _MSC_VER && __INTEL_LLVM_COMPILER <= 20240000 +// Algorithm is required as a workaround for a bug on windows before icx 2024.0.0 with sycl headers +// not including the appropriate headers for std::iter_swap # include #endif