Skip to content

Commit

Permalink
Reduce size of ScatterView test when using OpenMP
Browse files Browse the repository at this point in the history
  • Loading branch information
Rombur committed Apr 14, 2023
1 parent 48b34de commit 4feae9e
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 4feae9e

Please sign in to comment.