@@ -23,19 +23,40 @@ jobs:
2323 filters : " .github/file-filter.yml"
2424
2525 self :
26- name : Georgia Tech | Phoenix (NVHPC)
26+ name : " ${{ matrix.name }} (${{ matrix.device }}) "
2727 if : ${{ github.repository == 'MFlowCode/MFC' && needs.file-changes.outputs.checkall == 'true' && (
2828 (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') ||
2929 (github.event_name == 'pull_request' && github.event.pull_request.user.login == 'sbryngelson')
30- ) }}
30+ ) }}
3131 needs : file-changes
3232 strategy :
33- matrix :
34- device : ['cpu', 'gpu']
3533 fail-fast : false
34+ matrix :
35+ include :
36+ - cluster : phoenix
37+ name : Georgia Tech | Phoenix (NVHPC)
38+ group : phoenix
39+ labels : gt
40+ flag : p
41+ device : cpu
42+ build_script : " "
43+ - cluster : phoenix
44+ name : Georgia Tech | Phoenix (NVHPC)
45+ group : phoenix
46+ labels : gt
47+ flag : p
48+ device : gpu
49+ build_script : " "
50+ - cluster : frontier
51+ name : Oak Ridge | Frontier (CCE)
52+ group : phoenix
53+ labels : frontier
54+ flag : f
55+ device : gpu
56+ build_script : " bash .github/workflows/frontier/build.sh gpu bench"
3657 runs-on :
37- group : phoenix
38- labels : gt
58+ group : ${{ matrix.group }}
59+ labels : ${{ matrix.labels }}
3960 timeout-minutes : 1400
4061 env :
4162 ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION : node16
@@ -53,15 +74,22 @@ jobs:
5374 ref : master
5475 path : master
5576
77+ - name : Setup & Build
78+ if : matrix.build_script != ''
79+ run : |
80+ (cd pr && ${{ matrix.build_script }}) &
81+ (cd master && ${{ matrix.build_script }}) &
82+ wait %1 && wait %2
83+
5684 - name : Bench (Master v. PR)
5785 run : |
58- (cd pr && bash .github/workflows/phoenix /submit-bench.sh .github/workflows/phoenix /bench.sh ${{ matrix.device }}) &
59- (cd master && bash .github/workflows/phoenix /submit-bench.sh .github/workflows/phoenix /bench.sh ${{ matrix.device }}) &
86+ (cd pr && bash .github/workflows/${{ matrix.cluster }} /submit-bench.sh .github/workflows/${{ matrix.cluster }} /bench.sh ${{ matrix.device }}) &
87+ (cd master && bash .github/workflows/${{ matrix.cluster }} /submit-bench.sh .github/workflows/${{ matrix.cluster }} /bench.sh ${{ matrix.device }}) &
6088 wait %1 && wait %2
6189
6290 - name : Generate & Post Comment
6391 run : |
64- (cd pr && . ./mfc.sh load -c p -m g)
92+ (cd pr && . ./mfc.sh load -c ${{ matrix.flag }} -m g)
6593 (cd pr && ./mfc.sh bench_diff ../master/bench-${{ matrix.device }}.yaml ../pr/bench-${{ matrix.device }}.yaml)
6694
6795 - name : Print Logs
72100
73101 - name : Archive Logs
74102 uses : actions/upload-artifact@v4
75- if : always()
103+ if : always()
76104 with :
77- name : logs -${{ matrix.device }}
105+ name : ${{ matrix.cluster }} -${{ matrix.device }}
78106 path : |
79107 pr/bench-${{ matrix.device }}.*
80108 pr/build/benchmarks/*
0 commit comments