Skip to content

Commit

Permalink
Merge pull request #6059 from Rombur/fix_ci_host
Browse files Browse the repository at this point in the history
Reduce the size of ScatterView in the CI when using OpenMP
  • Loading branch information
crtrott authored Apr 20, 2023
2 parents 57413bb + 4feae9e commit c09dd1c
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions containers/unit_tests/TestScatterView.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -773,9 +773,18 @@ TEST(TEST_CATEGORY, scatterview) {
int big_n = 100 * 1000;
#else

#ifdef KOKKOS_ENABLE_SERIAL
#if defined(KOKKOS_ENABLE_SERIAL) || defined(KOKKOS_ENABLE_OPENMP)
#if defined(KOKKOS_ENABLE_SERIAL)
bool is_serial = std::is_same<TEST_EXECSPACE, Kokkos::Serial>::value;
int big_n = is_serial ? 100 * 1000 : 10000 * 1000;
#else
bool is_serial = false;
#endif
#if defined(KOKKOS_ENABLE_OPENMP)
bool is_openmp = std::is_same<TEST_EXECSPACE, Kokkos::OpenMP>::value;
#else
bool is_openmp = false;
#endif
int big_n = is_serial || is_openmp ? 100 * 1000 : 10000 * 1000;
#else
int big_n = 10000 * 1000;
#endif
Expand Down

0 comments on commit c09dd1c

Please sign in to comment.