Skip to content

Commit 5304cce

Browse files
committed
Github CI: add one to test OpenMPI
1 parent b2d4cba commit 5304cce

File tree

1 file changed

+78
-0
lines changed

1 file changed

+78
-0
lines changed
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
name: OpenMPI Default Installed on Github
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
end_to_end_regression:
13+
strategy:
14+
matrix:
15+
platform: [ubuntu-latest]
16+
runs-on: ${{ matrix.platform }}
17+
steps:
18+
- uses: actions/checkout@v3
19+
- name: Install dependencies
20+
run: |
21+
sudo apt-get update -y
22+
sudo apt-get install openmpi-bin openmpi-common libopenmpi-dev
23+
- name: Dump OpenMPI info
24+
run: |
25+
ompi_info --param io ompio --level 9
26+
ompi_info --param fcoll all --level 9
27+
ompi_info --param fs all --level 9
28+
ompi_info --param fbtl all --level 9
29+
ompi_info --param sharedfp all --level 9
30+
- name: Initialize Darshan
31+
run: |
32+
git submodule update --init
33+
autoreconf -i
34+
- name: Install Darshan
35+
run: |
36+
export DARSHAN_ROOT=$PWD
37+
export DARSHAN_LOG_PATH=$PWD/darshan_logs
38+
export DARSHAN_INSTALL_PREFIX=$PWD/darshan_install
39+
export DARSHAN_BUILD=$PWD/darshan_build
40+
mkdir -p $DARSHAN_LOG_PATH $DARSHAN_BUILD
41+
cd $DARSHAN_BUILD
42+
$DARSHAN_ROOT/configure --prefix=$DARSHAN_INSTALL_PREFIX \
43+
--silent \
44+
--with-log-path=$DARSHAN_LOG_PATH \
45+
--with-jobid-env=NONE \
46+
CC=mpicc RUNTIME_CC=mpicc UTIL_CC=gcc
47+
make -s LIBTOOLFLAGS=--silent V=1 -j8
48+
make -s install
49+
- name: make check with NP=2
50+
if: ${{ always() }}
51+
run: |
52+
cd darshan_build
53+
make check NP=2
54+
- name: Dump test log files
55+
if: ${{ always() }}
56+
run: |
57+
cat darshan_build/darshan-runtime/test/tst_runs.log
58+
59+
- name: make check with NP=4
60+
if: ${{ always() }}
61+
run: |
62+
cd darshan_build
63+
make check NP=4
64+
- name: Dump test log files
65+
if: ${{ always() }}
66+
run: |
67+
cat darshan_build/darshan-runtime/test/tst_runs.log
68+
69+
- name: make check with NP=4 and export DARSHAN_LOGHINTS=""
70+
if: ${{ always() }}
71+
run: |
72+
cd darshan_build
73+
export DARSHAN_LOGHINTS=""
74+
make check NP=4
75+
- name: Dump test log files
76+
if: ${{ always() }}
77+
run: |
78+
cat darshan_build/darshan-runtime/test/tst_runs.log

0 commit comments

Comments
 (0)