Skip to content

Commit d1e6670

Browse files
authored
SYCL: Fix Test_Common_AlignPtrTo.hpp (kokkos#2506)
* SYCL: Fix Test_Common_AlignPtrTo.hpp Signed-off-by: Daniel Arndt <[email protected]> * Check compiler version Signed-off-by: Daniel Arndt <[email protected]> * Check for ExecutionSpace again Signed-off-by: Daniel Arndt <[email protected]> --------- Signed-off-by: Daniel Arndt <[email protected]>
1 parent 4f483cd commit d1e6670

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/unit_test/Test_Common_AlignPtrTo.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ void test_alignPtrTo() {
132132
Kokkos::RangePolicy<ExecSpace>(space, 0, teamSize),
133133
KOKKOS_LAMBDA(int i, int &lerr) { lerr += (results(i) != i); }, errs);
134134

135-
// if SYCL is enabled, only TEST_FN 1 and 4 should work
136-
#if defined(KOKKOS_ENABLE_SYCL)
135+
// if SYCL is enabled, only TEST_FN 1 and 4 should work with older compiler versions
136+
#if defined(KOKKOS_ENABLE_SYCL) && KOKKOS_COMPILER_INTEL_LLVM < 20250000
137137
if constexpr (std::is_same_v<ExecSpace, Kokkos::Experimental::SYCL>) {
138138
if constexpr ((1 == TEST_FN) || (4 == TEST_FN)) {
139139
EXPECT_EQ(0, errs);

0 commit comments

Comments
 (0)