Skip to content

Commit 00bf9de

Browse files
committed
adding ci
1 parent f3e3f26 commit 00bf9de

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Test for mpi injection script
2+
on:
3+
pull_request:
4+
workflow_dispatch:
5+
permissions:
6+
contents: read # to fetch code (actions/checkout)
7+
jobs:
8+
build:
9+
runs-on: ubuntu-24.04
10+
steps:
11+
- uses: actions/checkout@v4
12+
- 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
18+
19+
- name: Inject OpenMPI libs
20+
run: |
21+
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/
23+
24+
- name: Check with OSU
25+
run: |
26+
module load OSU-Micro-Benchmarks/7.2-gompi-2023b
27+
mpirun -n 2 osu_latency
28+
export output=$?
29+
if [ $output -ne 0 ]; then
30+
echo "MPI injection failed, check the logs for more detail"
31+
else
32+
echo "MPI injection succeded!"
33+
fi

0 commit comments

Comments
 (0)