Skip to content

Commit

Permalink
test_array_ctad: disable test for intel versions < 2021
Browse files Browse the repository at this point in the history
Address issue #6702
  • Loading branch information
ndellingwood committed Jan 4, 2024
1 parent 9f5e38e commit 716bef2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/unit_test/TestArray.cpp
Expand Up @@ -60,6 +60,8 @@ KOKKOS_FUNCTION constexpr bool is_equal(L const& l, R const& r) {
return true;
}

// Disable ctad test for intel versions < 2021, see issue #6702
#if !defined(KOKKOS_COMPILER_INTEL) || KOKKOS_COMPILER_INTEL >= 2021
KOKKOS_FUNCTION constexpr bool test_array_ctad() {
constexpr int x = 10;
constexpr Kokkos::Array a{1, 2, 3, 5, x};
Expand All @@ -69,5 +71,6 @@ KOKKOS_FUNCTION constexpr bool test_array_ctad() {
}

static_assert(test_array_ctad());
#endif

} // namespace

0 comments on commit 716bef2

Please sign in to comment.