Skip to content

Commit d1bd531

Browse files
committed
fix(gpu): fix workflow
1 parent 9b9016a commit d1bd531

1 file changed

Lines changed: 16 additions & 17 deletions

File tree

.github/workflows/benchmark_gpu_coprocessor.yml

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ env:
4545
OPTIMIZATION_TARGET: "throughput"
4646
BATCH_SIZE: "5000"
4747
SCHEDULING_POLICY: "MAX_PARALLELISM"
48-
BENCHMARKS: "erc7984"
48+
BENCHMARKS: "erc20"
4949
BRANCH_NAME: ${{ github.ref_name }}
5050
COMMIT_SHA: ${{ github.sha }}
5151
SLAB_SECRET: ${{ secrets.JOB_SECRET }}
@@ -138,7 +138,6 @@ jobs:
138138
- name: Checkout tfhe-rs
139139
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
140140
with:
141-
path: tfhe-rs
142141
persist-credentials: false
143142

144143
- name: Check fhEVM and TFHE-rs repos
@@ -164,20 +163,19 @@ jobs:
164163
echo "COMMIT_DATE=$COMMIT_DATE_ENV";
165164
echo "COMMIT_HASH=$(git rev-parse HEAD)";
166165
} >> "${GITHUB_ENV}"
167-
working-directory: tfhe-rs/
168166
169167
- name: Setup cloud GPU machine dependencies
170-
uses: ./tfhe-rs/.github/actions/gpu_setup
168+
uses: ./.github/actions/gpu_setup
171169
with:
172170
cuda-version: ${{ matrix.cuda }}
173171
gcc-version: ${{ matrix.gcc }}
174172
cloud-provider: ${{ needs.parse-inputs.outputs.cloud_provider }}
175173

176-
- name: Check fhEVM and TFHE-rs repos
177-
run: |
178-
pwd
179-
ls
180-
mv tfhe-rs fhevm/coprocessor/
174+
- name: Checkout tfhe-rs in fhevm coprocessor
175+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
176+
with:
177+
path: fhevm/coprocessor/tfhe-rs
178+
persist-credentials: false
181179

182180
- name: Checkout LFS objects
183181
run: git lfs checkout
@@ -191,6 +189,7 @@ jobs:
191189
- name: Install Safe-chain
192190
run: |
193191
make install_aikido_safe_chain_ci
192+
working-directory: fhevm/coprocessor/tfhe-rs
194193

195194
- name: Install cargo dependencies
196195
run: |
@@ -199,7 +198,7 @@ jobs:
199198
sudo usermod -aG docker "$USER"
200199
newgrp docker
201200
sudo setfacl --modify user:"$USER":rw /var/run/docker.sock
202-
cargo install sqlx-cli
201+
cargo install sqlx-cli --version=0.8.6 --locked
203202
204203
- name: Install foundry
205204
uses: foundry-rs/foundry-toolchain@c7450ba673e133f5ee30098b3b54f444d3a2ca2d
@@ -249,13 +248,13 @@ jobs:
249248
npm install && npm run deploy:emptyProxies && npx hardhat compile
250249
working-directory: fhevm/
251250

252-
- name: Profile erc7984 no-cmux benchmark on GPU
251+
- name: Profile erc20 no-cmux benchmark on GPU
253252
run: |
254253
BENCHMARK_BATCH_SIZE="${BATCH_SIZE}" \
255254
FHEVM_DF_SCHEDULE="${SCHEDULING_POLICY}" \
256255
BENCHMARK_TYPE="THROUGHPUT_200" \
257256
OPTIMIZATION_TARGET="${OPTIMIZATION_TARGET}" \
258-
make -e "profile_erc7984_gpu"
257+
make -e "profile_erc20_gpu"
259258
working-directory: fhevm/coprocessor/fhevm-engine/tfhe-worker
260259

261260
- name: Get nsys profile name
@@ -289,7 +288,7 @@ jobs:
289288

290289
- name: Parse results
291290
run: |
292-
cargo run --release -p tfhe-benchmark-parser -- -i coprocessor/fhevm-engine/target/criterion -o "${RESULTS_FILENAME}" \
291+
cargo run --release -p tfhe-benchmark-parser -- -i ../fhevm-engine/target/criterion -o "${RESULTS_FILENAME}" \
293292
--database coprocessor \
294293
--hardware "${HW_NAME}" \
295294
--backend cuda \
@@ -300,13 +299,13 @@ jobs:
300299
--walk-subdirs \
301300
--crate "coprocessor/fhevm-engine/tfhe-worker" \
302301
--name-suffix "operation_batch_size_${BATCH_SIZE}-schedule_${SCHEDULING_POLICY}-optimization_target_${OPTIMIZATION_TARGET}"
303-
working-directory: fhevm/
302+
working-directory: fhevm/coprocessor/tfhe-rs
304303

305304
- name: Upload parsed results artifact
306305
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
307306
with:
308-
name: ${COMMIT_SHA}_${BENCHMARKS}_${{ needs.parse-inputs.outputs.profile }}
309-
path: fhevm/$${{ env.RESULTS_FILENAME }}
307+
name: ${{ env.COMMIT_SHA }}_${{ env.BENCHMARKS }}_${{ needs.parse-inputs.outputs.profile }}
308+
path: fhevm/coprocessor/tfhe-rs/${{ env.RESULTS_FILENAME }}
310309

311310
- name: Checkout Slab repo
312311
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
@@ -321,7 +320,7 @@ jobs:
321320
env:
322321
SLAB_URL: ${{ secrets.SLAB_URL }}
323322
run: |
324-
python3 slab/scripts/data_sender.py fhevm/"${RESULTS_FILENAME}" "${SLAB_SECRET}" \
323+
python3 slab/scripts/data_sender.py fhevm/coprocessor/tfhe-rs/"${RESULTS_FILENAME}" "${SLAB_SECRET}" \
325324
--slab-url "${SLAB_URL}"
326325
327326
teardown-instance:

0 commit comments

Comments
 (0)