Skip to content

Commit

Permalink
chore(ci): run fast default ops for multi-bit gpu benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
soonum committed Jul 12, 2024
1 parent 46f0bf4 commit d824194
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 8 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/integer_multi_bit_gpu_benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@ name: Integer GPU Multi-bit benchmarks
on:
workflow_dispatch:
inputs:
full_benchmark:
all_precisions:
description: "Run all precisions"
type: boolean
default: false
fast_default:
description: "Run only deduplicated default operations without scalar variants"
type: boolean
default: false

schedule:
# Weekly benchmarks will be triggered each Saturday at 1a.m.
Expand All @@ -25,6 +29,7 @@ env:
SLACK_USERNAME: ${{ secrets.BOT_USERNAME }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
FAST_BENCH: TRUE
BENCH_OP_FLAVOR: default

jobs:
setup-instance:
Expand Down Expand Up @@ -118,14 +123,19 @@ jobs:
echo "CUDAHOSTCXX=/usr/bin/g++-${{ matrix.gcc }}";
} >> "${GITHUB_ENV}"
- name: Should run full benchmarks
if: inputs.full_benchmark
- name: Should run benchmarks with all precisions
if: inputs.all_precisions
run: |
echo "FAST_BENCH=FALSE" >> "${GITHUB_ENV}"
- name: Should run fast subset benchmarks
if: inputs.fast_default
run: |
echo "BENCH_OP_FLAVOR=fast_default" >> "${GITHUB_ENV}"
- name: Run multi-bit benchmarks with AVX512
run: |
make FAST_BENCH=${{ env.FAST_BENCH }} BENCH_OP_FLAVOR=default bench_unsigned_integer_multi_bit_gpu
make bench_unsigned_integer_multi_bit_gpu
- name: Parse benchmarks to csv
run: |
Expand Down
18 changes: 14 additions & 4 deletions .github/workflows/integer_multi_bit_multi_gpu_benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@ name: Integer multi GPU Multi-bit benchmarks
on:
workflow_dispatch:
inputs:
full_benchmark:
all_precisions:
description: "Run all precisions"
type: boolean
default: false
fast_default:
description: "Run only deduplicated default operations without scalar variants"
type: boolean
default: false

schedule:
# Weekly benchmarks will be triggered each Saturday at 1a.m.
Expand All @@ -24,6 +28,7 @@ env:
SLACK_USERNAME: ${{ secrets.BOT_USERNAME }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
FAST_BENCH: TRUE
BENCH_OP_FLAVOR: default

jobs:
setup-instance:
Expand Down Expand Up @@ -112,14 +117,19 @@ jobs:
path: slab
token: ${{ secrets.FHE_ACTIONS_TOKEN }}

- name: Should run full benchmarks
if: inputs.full_benchmark
- name: Should run benchmarks with all precisions
if: inputs.all_precisions
run: |
echo "FAST_BENCH=FALSE" >> "${GITHUB_ENV}"
- name: Should run fast subset benchmarks
if: inputs.fast_default
run: |
echo "BENCH_OP_FLAVOR=fast_default" >> "${GITHUB_ENV}"
- name: Run multi-bit benchmarks with AVX512
run: |
make FAST_BENCH=${{ env.FAST_BENCH }} BENCH_OP_FLAVOR=default bench_unsigned_integer_multi_bit_gpu
make bench_unsigned_integer_multi_bit_gpu
- name: Parse results
run: |
Expand Down

0 comments on commit d824194

Please sign in to comment.