Skip to content

Commit 08547bb

Browse files
committed
some fixes to faster the script
1 parent ffa761e commit 08547bb

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

.github/workflows/mpi_injections.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,29 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v4
1212
- uses: eessi/github-action-eessi@v3
13-
14-
- name: Install OpenMPI
15-
run: |
16-
module load EESSI-extend
17-
eb --rebuild OpenMPI-4.1.6-GCC-13.2.0.eb
1813

1914
- name: Inject OpenMPI libs
2015
run: |
16+
# Needed dir for the injected libs
2117
mkdir /opt/eessi
22-
./scripts/mpi_support/install_openmpi_host_injection.sh --mpi-path $HOME/eessi/versions/2023.06/software/linux/$EESSI_SOFTWARE_SUBDIR/software/OpenMPI/4.1.6-GCC-13.2.0/
18+
19+
# Load last OpenMPI from 2023b and declaring var for injection path
20+
module load OpenMPI/4.1.6-GCC-13.2.0
21+
export OPENMPI_TO_INJECT=$EBROOTOPENMPI
22+
module purge
23+
24+
# Inject script
25+
./scripts/mpi_support/install_openmpi_host_injection.sh --mpi-path $OPENMPI_TO_INJECT
2326
2427
- name: Check with OSU
2528
run: |
26-
module load OSU-Micro-Benchmarks/7.2-gompi-2023b
29+
# Load OSU version that uses older OpenMPI
30+
module load OSU-Micro-Benchmarks/7.1-1-gompi-2023a
31+
32+
# Verify injected libs are being used
2733
ldd $(which osu_latency) | grep host_injections
34+
35+
# Check it works correctly
2836
mpirun -n 2 osu_latency
2937
export output=$?
3038
if [ $output -ne 0 ]; then

0 commit comments

Comments
 (0)