Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit 27bd6c8

Browse files
author
Nicolas Cornu
committed
Give possibility to change mpiexec configuration for integration tests
1 parent d58ff74 commit 27bd6c8

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

.github/workflows/coreneuron-ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ jobs:
3434
os: [ ubuntu-18.04, macOS-10.15 ]
3535
config:
3636
# Defaults: CORENRN_ENABLE_MPI=ON
37-
- {cmake_option: "-DCORENRN_ENABLE_MPI=ON -DCORENRN_ENABLE_DEBUG_CODE=ON", documentation: ON}
38-
- {cmake_option: "-DCORENRN_ENABLE_MPI_DYNAMIC=ON"}
39-
- {cmake_option: "-DCORENRN_ENABLE_MPI_DYNAMIC=ON -DCORENRN_ENABLE_SHARED=OFF"}
37+
- {cmake_option: "-DCORENRN_ENABLE_DEBUG_CODE=ON -DTEST_EXEC_PREFIX='mpiexec;-n;2'", documentation: ON}
38+
- {cmake_option: "-DCORENRN_ENABLE_MPI_DYNAMIC=ON -DTEST_EXEC_PREFIX='mpiexec;-n;2'"}
39+
- {cmake_option: "-DCORENRN_ENABLE_MPI_DYNAMIC=ON -DCORENRN_ENABLE_SHARED=OFF -DTEST_EXEC_PREFIX='mpiexec;-n;2'"}
4040
- {cmake_option: "-DCORENRN_ENABLE_MPI=OFF"}
4141
- {use_nmodl: ON, py_version: 3.6.7}
4242
- {use_nmodl: ON}

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,6 @@ If you have a different mpi launcher (than `mpirun`), you can specify it during
321321

322322
```bash
323323
cmake .. -DTEST_MPI_EXEC_BIN="mpirun" \
324-
-DTEST_EXEC_PREFIX="mpirun;-n;2" \
325324
-DTEST_EXEC_PREFIX="mpirun;-n;2" \
326325
-DAUTO_TEST_WITH_SLURM=OFF \
327326
-DAUTO_TEST_WITH_MPIEXEC=OFF \

tests/integration/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ foreach(args_line ${TEST_CASES_WITH_ARGS})
117117
string(REPLACE ";" " " SRUN_PREFIX "")
118118
else()
119119
set(test_num_processors 2)
120-
string(REPLACE ";" " " SRUN_PREFIX "${TEST_MPI_EXEC_BIN};-n;${test_num_processors}")
120+
string(REPLACE ";" " " SRUN_PREFIX "${TEST_EXEC_PREFIX}")
121121
endif()
122122
endif()
123123
list(GET string_line 0 TEST_NAME)
@@ -137,7 +137,7 @@ foreach(args_line ${NEGATIVE_TEST_CASES})
137137
set(test_num_processors 1)
138138
if(MPI_FOUND)
139139
set(test_num_processors 2)
140-
string(REPLACE ";" " " SRUN_PREFIX "${TEST_MPI_EXEC_BIN};-n;${test_num_processors}")
140+
string(REPLACE ";" " " SRUN_PREFIX "${TEST_EXEC_PREFIX}")
141141
endif()
142142
list(GET string_line 0 TEST_NAME)
143143
list(GET string_line 1 TEST_ARGS)

0 commit comments

Comments
 (0)