Skip to content

Commit

Permalink
Merge pull request kokkos#7041 from ndellingwood/issue-7038
Browse files Browse the repository at this point in the history
TestArray: add intel guard to to_array implicit conversion test
  • Loading branch information
dalg24 authored May 29, 2024
2 parents e06ddf6 + 0f9efac commit 561818b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/unit_test/TestArray.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,9 @@ constexpr bool test_to_array() {
static_assert(std::is_same_v<decltype(a2), Kokkos::Array<int, 4>>);
maybe_unused(a2);

// gcc8 doesn't support the implicit conversion
#if !defined(KOKKOS_COMPILER_GNU) || (KOKKOS_COMPILER_GNU >= 910)
// gcc8 and icc do not support the implicit conversion
#if !(defined(KOKKOS_COMPILER_GNU) && (KOKKOS_COMPILER_GNU < 910)) && \
!(defined(KOKKOS_COMPILER_INTEL) && (KOKKOS_COMPILER_INTEL < 2021))
// deduces length with element type specified
// implicit conversion happens
[[maybe_unused]] auto a3 = Kokkos::to_array<long>({0, 1, 3});
Expand Down

0 comments on commit 561818b

Please sign in to comment.