Skip to content

Commit

Permalink
Merge pull request #7063 from masterleinad/restrict_to_array_subtest
Browse files Browse the repository at this point in the history
Restrict to_array subtest to NVCC >= 11.4.0
  • Loading branch information
crtrott committed Jun 12, 2024
2 parents 0a5fac0 + 5d09838 commit 00b4e7f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions core/unit_test/TestArray.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,10 @@ constexpr bool test_to_array() {
static_assert(std::is_same_v<decltype(a2), Kokkos::Array<int, 4>>);
maybe_unused(a2);

// 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))
// gcc8, icc, and nvcc 11.3 do not support the implicit conversion
#if !(defined(KOKKOS_COMPILER_GNU) && (KOKKOS_COMPILER_GNU < 910)) && \
!(defined(KOKKOS_COMPILER_INTEL) && (KOKKOS_COMPILER_INTEL < 2021)) && \
!(defined(KOKKOS_COMPILER_NVCC) && (KOKKOS_COMPILER_NVCC < 1140))
// 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 00b4e7f

Please sign in to comment.