Skip to content

Commit 4306be4

Browse files
authored
Update ci.yml
1 parent 8f76c4a commit 4306be4

File tree

1 file changed

+29
-2
lines changed

1 file changed

+29
-2
lines changed

.github/workflows/ci.yml

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ jobs:
5151
- name: Test Suite
5252
run: /bin/bash mfc.sh test -j $(nproc)
5353

54-
self:
55-
name: (Self) Test Suite
54+
self-cpu:
55+
name: (Self) Test Suite - CPU
5656
strategy:
5757
matrix:
5858
include:
@@ -78,3 +78,30 @@ jobs:
7878
module load nvhpc/22.11
7979
/bin/bash mfc.sh test -j 4
8080
81+
self-gpu:
82+
name: (Self) Test Suite - GPU
83+
strategy:
84+
matrix:
85+
include:
86+
- os: self-hosted
87+
runs-on: ${{ matrix.os }}
88+
if: github.repository == 'MFlowCode/MFC'
89+
steps:
90+
- name: Clone
91+
uses: actions/checkout@v3
92+
93+
- name: Setup
94+
run: echo "test"
95+
96+
- name: Build
97+
run: |
98+
module use /opt/nvidia/hpc_sdk/modulefiles/
99+
module load nvhpc/22.11
100+
/bin/bash mfc.sh build -j 4 --gpu
101+
102+
- name: Test Suite
103+
run: |
104+
module use /opt/nvidia/hpc_sdk/modulefiles/
105+
module load nvhpc/22.11
106+
/bin/bash mfc.sh test -b mpirun --gpu
107+

0 commit comments

Comments
 (0)