Skip to content

Commit

Permalink
ci: Add macos specific logic for TestMPI action
Browse files Browse the repository at this point in the history
  • Loading branch information
gtdang committed May 29, 2024
1 parent 5c6061a commit 089d704
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ jobs:
- name: Test MPI
shell: bash -el {0}
run: |
if [ "${{ matrix.os }}" == "macos-latest" ]; then
export DYLD_FALLBACK_LIBRARY_PATH=${CONDA_PREFIX}/lib
fi;
mpiexec -np 2 nrniv -mpi -python -c 'from neuron import h; from mpi4py import MPI; \
print(f"Hello from proc {MPI.COMM_WORLD.Get_rank()}"); \
h.quit()'
Expand Down

0 comments on commit 089d704

Please sign in to comment.