-
Notifications
You must be signed in to change notification settings - Fork 36
45 lines (37 loc) · 1022 Bytes
/
openmp_cmake.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: CMAKE GNU MPI+OpenMP CI
on:
push:
branches: [ "master", "dev" ]
paths-ignore:
- LICENSE.md
- README.md
pull_request:
branches: [ "master", "dev" ]
jobs:
build_and_test:
runs-on: ubuntu-latest
strategy:
matrix:
omp_num_threads: [1, 2, 4, 8]
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Install MPI
run: |
sudo apt update
sudo apt install -y mpich
which mpicc
which mpicxx
- name: Clean up
run: |
rm -rf ${{runner.workspace}}/Quicksilver/build
mkdir ${{runner.workspace}}/Quicksilver/build
- name: Make the code
run: |
cd ${{runner.workspace}}/Quicksilver/build
cmake .. -DENABLE_MPI=ON -DENABLE_OMP=ON
make -j16
- name: Run smoke test
run: |
export OMP_NUM_THREADS=${{ matrix.omp_num_threads }}
mpirun -n 1 ${{runner.workspace}}/Quicksilver/build/qs