Skip to content

Commit 222bb90

Browse files
authored
Merge pull request #147 from sbryngelson/master
2 parents 1e16cff + fbce336 commit 222bb90

File tree

3 files changed

+144
-62
lines changed

3 files changed

+144
-62
lines changed

.github/workflows/ci.yml

Lines changed: 116 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -98,86 +98,140 @@ jobs:
9898
${{ matrix.intel-command }}
9999
/bin/bash mfc.sh test -j $(nproc) -a
100100
101-
self-cpu:
102-
name: (Self) Test Suite - CPU
103-
strategy:
104-
matrix:
105-
include:
106-
- os: [self-hosted, wingtip]
107-
runs-on: ${{ matrix.os }}
101+
102+
self-cpu-release:
103+
name: Test CPU release - nvhpc
104+
runs-on:
105+
group: phoenix
106+
labels: self-hosted
108107
if: github.repository == 'MFlowCode/MFC'
109108
steps:
110109
- name: Clone
111110
uses: actions/checkout@v3
112-
113-
- name: Setup
114-
run: echo "test"
115-
111+
116112
- name: Build
117113
run: |
118-
module use /opt/nvidia/hpc_sdk/modulefiles/
119-
module load nvhpc
120-
/bin/bash mfc.sh build -j 8
114+
. ./mfc.sh load -c p -m g
115+
./mfc.sh build -j 2
121116
122-
- name: Test Suite
123-
run: |
124-
module use /opt/nvidia/hpc_sdk/modulefiles/
125-
module load nvhpc
126-
/bin/bash mfc.sh test -j 8 -a
127-
128-
self-cpu-debug:
129-
name: (Self) Test Suite - CPU - debug
130-
strategy:
131-
matrix:
132-
include:
133-
- os: [self-hosted, wingtip]
134-
runs-on: ${{ matrix.os }}
117+
- name: Test
118+
run: |
119+
. ./mfc.sh load -c p -m g
120+
mv misc/run-phoenix-release-cpu.sh ./
121+
sbatch run-phoenix-release-cpu.sh
122+
123+
- name: Print
124+
if: always()
125+
run: |
126+
cat test.out
127+
128+
self-gpu-release:
129+
name: Test GPU release - nvhpc
130+
runs-on:
131+
group: phoenix
132+
labels: self-hosted
135133
if: github.repository == 'MFlowCode/MFC'
136134
steps:
137135
- name: Clone
138136
uses: actions/checkout@v3
139-
140-
- name: Setup
141-
run: echo "test"
142-
137+
143138
- name: Build
144139
run: |
145-
module use /opt/nvidia/hpc_sdk/modulefiles/
146-
module load nvhpc
147-
/bin/bash mfc.sh build -j 8 --debug
140+
. ./mfc.sh load -c p -m g
141+
./mfc.sh build -j 2 --gpu
148142
149-
- name: Test Suite
150-
run: |
151-
module use /opt/nvidia/hpc_sdk/modulefiles/
152-
module load nvhpc
153-
/bin/bash mfc.sh test -j 8 --debug
143+
- name: Test
144+
run: |
145+
. ./mfc.sh load -c p -m g
146+
mv misc/run-phoenix-release-gpu.sh ./
147+
sbatch run-phoenix-release-gpu.sh
154148
155-
self-gpu:
156-
name: (Self) Test Suite - GPU
157-
strategy:
158-
matrix:
159-
include:
160-
- os: [self-hosted, wingtip]
161-
runs-on: ${{ matrix.os }}
162-
if: github.repository == 'MFlowCode/MFC'
163-
steps:
164-
- name: Clone
165-
uses: actions/checkout@v3
149+
- name: Print
150+
if: always()
151+
run: |
152+
cat test.out
153+
154+
155+
# self-cpu:
156+
# name: (Self) Test Suite - CPU
157+
# strategy:
158+
# matrix:
159+
# include:
160+
# - os: [self-hosted, wingtip]
161+
# runs-on: ${{ matrix.os }}
162+
# if: github.repository == 'MFlowCode/MFC'
163+
# steps:
164+
# - name: Clone
165+
# uses: actions/checkout@v3
166166

167-
- name: Setup
168-
run: echo "test"
167+
# - name: Setup
168+
# run: echo "test"
169169

170-
- name: Build
171-
run: |
172-
module use /opt/nvidia/hpc_sdk/modulefiles/
173-
module load nvhpc
174-
/bin/bash mfc.sh build -j 8 --gpu
170+
# - name: Build
171+
# run: |
172+
# module use /opt/nvidia/hpc_sdk/modulefiles/
173+
# module load nvhpc
174+
# /bin/bash mfc.sh build -j 8
175175

176-
- name: Test Suite
177-
run: |
178-
module use /opt/nvidia/hpc_sdk/modulefiles/
179-
module load nvhpc
180-
/bin/bash mfc.sh test -j 8 -b mpirun --gpu -a
176+
# - name: Test Suite
177+
# run: |
178+
# module use /opt/nvidia/hpc_sdk/modulefiles/
179+
# module load nvhpc
180+
# /bin/bash mfc.sh test -j 8 -a
181+
182+
# self-cpu-debug:
183+
# name: (Self) Test Suite - CPU - debug
184+
# strategy:
185+
# matrix:
186+
# include:
187+
# - os: [self-hosted, wingtip]
188+
# runs-on: ${{ matrix.os }}
189+
# if: github.repository == 'MFlowCode/MFC'
190+
# steps:
191+
# - name: Clone
192+
# uses: actions/checkout@v3
193+
194+
# - name: Setup
195+
# run: echo "test"
196+
197+
# - name: Build
198+
# run: |
199+
# module use /opt/nvidia/hpc_sdk/modulefiles/
200+
# module load nvhpc
201+
# /bin/bash mfc.sh build -j 8 --debug
202+
203+
# - name: Test Suite
204+
# run: |
205+
# module use /opt/nvidia/hpc_sdk/modulefiles/
206+
# module load nvhpc
207+
# /bin/bash mfc.sh test -j 8 --debug
208+
209+
# self-gpu:
210+
# name: (Self) Test Suite - GPU
211+
# strategy:
212+
# matrix:
213+
# include:
214+
# - os: [self-hosted, wingtip]
215+
# runs-on: ${{ matrix.os }}
216+
# if: github.repository == 'MFlowCode/MFC'
217+
# steps:
218+
# - name: Clone
219+
# uses: actions/checkout@v3
220+
221+
# - name: Setup
222+
# run: echo "test"
223+
224+
# - name: Build
225+
# run: |
226+
# module use /opt/nvidia/hpc_sdk/modulefiles/
227+
# module load nvhpc
228+
# /bin/bash mfc.sh build -j 8 --gpu
229+
230+
# - name: Test Suite
231+
# run: |
232+
# module use /opt/nvidia/hpc_sdk/modulefiles/
233+
# module load nvhpc
234+
# /bin/bash mfc.sh test -j 8 -b mpirun --gpu -a
181235

182236
# self-gpu-debug:
183237
# name: (Self) Test Suite - GPU - debug

misc/run-phoenix-release-cpu.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
#SBATCH -Jshb-test-jobs # Job name
3+
#SBATCH --account=gts-sbryngelson3 # charge account
4+
#SBATCH -N1 --ntasks-per-node=12 # Number of nodes and cores per node required
5+
#SBATCH --mem-per-cpu=2G # Memory per core
6+
#SBATCH -t 04:00:00 # Duration of the job (Ex: 15 mins)
7+
#SBATCH -q inferno # QOS Name
8+
#SBATCH -otest.out # Combined output and error messages file
9+
#SBATCH -W # Do not exit until the submitted job terminates.
10+
11+
cd $SLURM_SUBMIT_DIR # Change to working directory
12+
echo $(pwd)
13+
. ./mfc.sh load -c p -m g
14+
./mfc.sh test -j 12 -b mpirun -a

misc/run-phoenix-release-gpu.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
#SBATCH -Jshb-test-jobs # Job name
3+
#SBATCH --account=gts-sbryngelson3 # charge account
4+
#SBATCH -N1 # Number of nodes and cores per node required
5+
#SBATCH --gres=gpu:V100:2
6+
#SBATCH -t 02:00:00 # Duration of the job (Ex: 15 mins)
7+
#SBATCH -q inferno # QOS Name
8+
#SBATCH -otest.out # Combined output and error messages file
9+
#SBATCH -W # Do not exit until the submitted job terminates.
10+
11+
cd $SLURM_SUBMIT_DIR # Change to working directory
12+
echo $(pwd)
13+
. ./mfc.sh load -c p -m g
14+
./mfc.sh test -j 1 -b mpirun -a --gpu

0 commit comments

Comments
 (0)