Skip to content

Commit

Permalink
Check compiler version
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Arndt <[email protected]>
  • Loading branch information
masterleinad committed Feb 25, 2025
1 parent 2d9a47e commit 8479c62
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions common/unit_test/Test_Common_AlignPtrTo.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,15 @@ void test_alignPtrTo() {
Kokkos::RangePolicy<ExecSpace>(space, 0, teamSize),
KOKKOS_LAMBDA(int i, int &lerr) { lerr += (results(i) != i); }, errs);

#if defined(KOKKOS_COMPILER_INTEL_LLVM) && KOKKOS_COMPILER_INTEL_LLVM < 20250000
if constexpr ((1 == TEST_FN) || (4 == TEST_FN)) {
EXPECT_EQ(0, errs);
} else {
EXPECT_NE(0, errs);
}
#else
EXPECT_EQ(0, errs);
#endif
}

TEST_F(TestCategory, common_AlignPtrTo_0) { test_alignPtrTo<0, TestDevice>(); }
Expand Down

0 comments on commit 8479c62

Please sign in to comment.