1- # Compile and test fhevm-backend on a single L40 GPU, on hyperstack
1+ # Compile and test Coprocessor on a single L40 GPU, on hyperstack
22name : Coprocessor GPU backend tests (L40)
33
44env :
2020 - main
2121
2222jobs :
23- should-run :
24- runs-on : ubuntu-latest
23+ check-changes :
2524 permissions :
26- pull-requests : read
25+ actions : ' read'
26+ contents : ' read'
27+ pull-requests : ' read'
28+ runs-on : ubuntu-latest
2729 outputs :
28- gpu_test : ${{ env.IS_PULL_REQUEST == 'false' || steps.changed-files .outputs.gpu_any_changed }}
30+ changes-coprocessor-gpu : ${{ steps.filter .outputs.coprocessor-gpu }}
2931 steps :
30- - name : Checkout fhevm-backend
31- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
32- with :
33- fetch-depth : 0
34- persist-credentials : ' false'
35-
36- - name : Check for file changes
37- id : changed-files
38- uses : tj-actions/changed-files@dcc7a0cba800f454d79fff4b993e8c3555bcc0a8
32+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
33+ - uses : dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
34+ id : filter
3935 with :
40- files_yaml : |
41- gpu:
36+ filters : |
37+ coprocessor- gpu:
4238 - coprocessor/fhevm-engine/Cargo.toml
4339 - coprocessor/fhevm-engine/coprocessor/Cargo.toml
4440 - coprocessor/fhevm-engine/coprocessor/build.rs
@@ -50,14 +46,13 @@ jobs:
5046 - coprocessor/fhevm-engine/scheduler/Cargo.toml
5147 - coprocessor/fhevm-engine/scheduler/build.rs
5248 - coprocessor/proto/**
53- - '.github/workflows/coprocessor_gpu -tests.yml'
49+ - '.github/workflows/coprocessor-gpu -tests.yml'
5450 - ci/slab.toml
5551
5652 setup-instance :
57- name : Setup instance (fhevm-backend GPU tests - L40)
58- needs : should-run
59- if : github.event_name == 'workflow_dispatch' ||
60- needs.should-run.outputs.gpu_test == 'true'
53+ name : Setup instance (Coprocessor GPU tests - L40)
54+ needs : check-changes
55+ if : ${{ github.event_name == 'workflow_dispatch' || needs.check-changes.outputs.changes-coprocessor-gpu == 'true' }}
6156 runs-on : ubuntu-latest
6257 permissions :
6358 contents : read
7671 backend : hyperstack
7772 profile : l40
7873
79- fhevm-backend -gpu :
80- name : fhevm-backend GPU tests - L40
81- needs : [ should-run , setup-instance ]
74+ coprocessor -gpu :
75+ name : Coprocessor GPU tests - L40
76+ needs : [ check-changes , setup-instance ]
8277 if : github.event_name != 'pull_request' ||
8378 (github.event_name == 'pull_request' && needs.setup-instance.result != 'skipped')
8479 concurrency :
10297 sudo apt-get install -y git-lfs
10398 git lfs install
10499
105- - name : Checkout fhevm-backend
100+ - name : Checkout fhevm
106101 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
107102 with :
108103 persist-credentials : ' false'
@@ -165,9 +160,9 @@ jobs:
165160
166161
167162 teardown-instance :
168- name : Teardown instance (fhevm-backend -gpu L40 test)
163+ name : Teardown instance (coprocessor -gpu L40 test)
169164 if : ${{ always() && needs.setup-instance.result == 'success' }}
170- needs : [ setup-instance, fhevm-backend -gpu ]
165+ needs : [ setup-instance, coprocessor -gpu ]
171166 runs-on : ubuntu-latest
172167 permissions :
173168 contents : read
0 commit comments