Skip to content

Commit 9eafe5d

Browse files
authored
[CI] Add OpenMP parallelism parameters to pure MPI jobs (#211)
1 parent 43905ea commit 9eafe5d

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/main.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,21 +69,30 @@ jobs:
6969
env:
7070
CC: gcc-13
7171
CXX: g++-13
72+
- name: Run func tests (MPI, num_proc=1)
73+
run: |
74+
source scripts/run_mpi.sh
75+
env:
76+
PROC_COUNT: 1
77+
OMP_NUM_THREADS: 3
7278
- name: Run func tests (MPI, num_proc=2)
7379
run: |
7480
source scripts/run_mpi.sh
7581
env:
7682
PROC_COUNT: 2
83+
OMP_NUM_THREADS: 2
7784
- name: Run func tests (MPI, num_proc=3)
7885
run: |
7986
source scripts/run_mpi.sh
8087
env:
8188
PROC_COUNT: 3
89+
OMP_NUM_THREADS: 1
8290
- name: Run func tests (MPI, num_proc=4)
8391
run: |
8492
source scripts/run_mpi.sh
8593
env:
8694
PROC_COUNT: 4
95+
OMP_NUM_THREADS: 1
8796
- name: Run func tests (threads, num_threads=1)
8897
run: source scripts/run_threads.sh
8998
env:
@@ -211,21 +220,30 @@ jobs:
211220
env:
212221
CC: clang-19
213222
CXX: clang++-19
223+
- name: Run func tests (MPI, num_proc=1)
224+
run: |
225+
source scripts/run_mpi.sh
226+
env:
227+
PROC_COUNT: 1
228+
OMP_NUM_THREADS: 3
214229
- name: Run func tests (MPI, num_proc=2)
215230
run: |
216231
source scripts/run_mpi.sh
217232
env:
218233
PROC_COUNT: 2
234+
OMP_NUM_THREADS: 2
219235
- name: Run func tests (MPI, num_proc=3)
220236
run: |
221237
source scripts/run_mpi.sh
222238
env:
223239
PROC_COUNT: 3
240+
OMP_NUM_THREADS: 1
224241
- name: Run func tests (MPI, num_proc=4)
225242
run: |
226243
source scripts/run_mpi.sh
227244
env:
228245
PROC_COUNT: 4
246+
OMP_NUM_THREADS: 1
229247
- name: Run tests (threads, num_threads=1)
230248
run: source scripts/run_threads.sh
231249
env:
@@ -358,6 +376,7 @@ jobs:
358376
source scripts/run_mpi.sh "--oversubscribe"
359377
env:
360378
PROC_COUNT: 2
379+
OMP_NUM_THREADS: 2
361380
- name: Run tests (threads, num_threads=1)
362381
run: source scripts/run_threads.sh
363382
env:
@@ -489,21 +508,30 @@ jobs:
489508
- name: Ninja build
490509
run: |
491510
cmake --build build
511+
- name: Run func tests (MPI, num_proc=1)
512+
run: |
513+
source scripts/run_mpi.sh
514+
env:
515+
PROC_COUNT: 1
516+
OMP_NUM_THREADS: 3
492517
- name: Run func tests (MPI, num_proc=2)
493518
run: |
494519
source scripts/run_mpi.sh
495520
env:
496521
PROC_COUNT: 2
522+
OMP_NUM_THREADS: 2
497523
- name: Run func tests (MPI, num_proc=3)
498524
run: |
499525
source scripts/run_mpi.sh
500526
env:
501527
PROC_COUNT: 3
528+
OMP_NUM_THREADS: 1
502529
- name: Run func tests (MPI, num_proc=4)
503530
run: |
504531
source scripts/run_mpi.sh
505532
env:
506533
PROC_COUNT: 4
534+
OMP_NUM_THREADS: 1
507535
- name: Run tests (threads, num_threads=1)
508536
run: source scripts/run_threads.sh
509537
env:
@@ -880,6 +908,7 @@ jobs:
880908
source scripts/run_mpi.sh
881909
env:
882910
PROC_COUNT: 2
911+
OMP_NUM_THREADS: 2
883912
- name: Run tests (threads, num_threads=1)
884913
run: source scripts/run_threads.sh
885914
env:

0 commit comments

Comments
 (0)