From 425858c6a9c9806982605784f9dbc2d6f48ccc4f Mon Sep 17 00:00:00 2001 From: Carl Pearson Date: Mon, 18 Dec 2023 11:51:41 -0700 Subject: [PATCH] . --- unit_tests/CMakeLists.txt | 2 +- unit_tests/test_mpi.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/unit_tests/CMakeLists.txt b/unit_tests/CMakeLists.txt index 852cbd40..18e6ab6d 100644 --- a/unit_tests/CMakeLists.txt +++ b/unit_tests/CMakeLists.txt @@ -36,7 +36,7 @@ add_executable(test-main test_main.cpp target_link_libraries(test-main KokkosComm gtest gtest_mpi) add_test(NAME test-main - COMMAND mpirun -np 2 ./test-main + COMMAND mpirun -np 2 --oversubscribe ./test-main ) diff --git a/unit_tests/test_mpi.cpp b/unit_tests/test_mpi.cpp index 9363fa1e..2cc5092e 100644 --- a/unit_tests/test_mpi.cpp +++ b/unit_tests/test_mpi.cpp @@ -1,5 +1,7 @@ #include +#include + int main(int argc, char *argv[]) { // Initialize MPI before any call to gtest_mpi MPI_Init(&argc, &argv);