Skip to content

Commit

Permalink
Seems we need the MPI workaround for Conda now too..... (#1628)
Browse files Browse the repository at this point in the history
  • Loading branch information
franzpoeschel authored Jun 7, 2024
1 parent 2c1dbc9 commit 51caab3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,8 @@ jobs:
-DopenPMD_USE_MPI=ON \
-DopenPMD_USE_HDF5=ON \
-DopenPMD_USE_ADIOS2=ON \
-DopenPMD_USE_INVASIVE_TESTS=ON
-DopenPMD_USE_INVASIVE_TESTS=ON \
-DMPIEXEC_EXECUTABLE=".github/workflows/mpirun_workaround.sh"
cmake --build build --parallel 2
cd build
ctest --output-on-failure
3 changes: 2 additions & 1 deletion .github/workflows/mpirun_workaround.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
# This script provides a workaround by putting the called sub-command into
# a script in a temporary file.

mpiexec -n 1 ls --all \
ls="$(which ls)"
mpiexec "$ls" -m \
&& echo "MPIRUN WORKING AGAIN, PLEASE REMOVE WORKAROUND" >&2 \
&& exit 1 \
|| true
Expand Down

0 comments on commit 51caab3

Please sign in to comment.