Skip to content

Commit 070e38e

Browse files
committed
restricting workaround to a specific icx version
Signed-off-by: Dan Hoeflinger <[email protected]>
1 parent 3634cce commit 070e38e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/parallel_api/sycl_canary.pass.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@
2727

2828
#include <cstdlib>
2929

30-
#if _MSC_VER
31-
// algorithm is required as a workaround for a bug on windows with sycl includes not including it for std::iter_swap
30+
#if _MSC_VER && __INTEL_LLVM_COMPILER <= 20240000
31+
// Algorithm is required as a workaround for a bug on windows before icx 2024.0.0 with sycl headers
32+
// not including the appropriate headers for std::iter_swap
3233
# include <algorithm>
3334
#endif
3435

0 commit comments

Comments
 (0)