Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions .github/workflows/benchmark_dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,19 @@ on:
required: false
type: boolean
default: false
schedule:
- cron: '0 8 * * *' # Runs at midnight PST (8 AM UTC)
kernels:
description: 'Comma-separated list of kernels to benchmark'
required: false
type: string
default: "softmax,jsd,welford,kl_div,layer_norm,layer_norm-bwd,rms_norm,rms_norm-bwd,cross_entropy,flash_attention,gemm,grouped_gemm"

jobs:
gen-matrix-h100:
if: ${{ github.event.inputs.run_h100 == 'true' || github.event_name == 'schedule' }}
if: ${{ github.event.inputs.run_h100 == 'true' }}
uses: ./.github/workflows/compute-benchmark-matrix.yml
with:
max-runners: 12
kernels: "softmax,jsd,welford,kl_div,layer_norm,layer_norm-bwd,rms_norm,rms_norm-bwd,cross_entropy,flash_attention,gemm,grouped_gemm"
kernels: ${{ github.event.inputs.kernels }}

run-h100:
needs: gen-matrix-h100
Expand All @@ -49,10 +52,10 @@ jobs:

gen-matrix-b200:
uses: ./.github/workflows/compute-benchmark-matrix.yml
if: ${{ github.event.inputs.run_b200 == 'true' || github.event_name == 'schedule' }}
if: ${{ github.event.inputs.run_b200 == 'true' }}
with:
max-runners: 12
kernels: "softmax,jsd,welford,kl_div,layer_norm,layer_norm-bwd,rms_norm,rms_norm-bwd,cross_entropy,flash_attention,gemm,grouped_gemm"
kernels: ${{ github.event.inputs.kernels }}

run-b200:
needs: gen-matrix-b200
Expand All @@ -74,10 +77,10 @@ jobs:

gen-matrix-mi325x:
uses: ./.github/workflows/compute-benchmark-matrix.yml
if: ${{ github.event.inputs.run_mi325x == 'true' || github.event_name == 'schedule' }}
if: ${{ github.event.inputs.run_mi325x == 'true' }}
with:
max-runners: 6
kernels: "softmax,jsd,welford,kl_div,layer_norm,layer_norm-bwd,rms_norm,rms_norm-bwd,cross_entropy,flash_attention,gemm,grouped_gemm"
kernels: ${{ github.event.inputs.kernels }}

run-mi325x:
needs: gen-matrix-mi325x
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/benchmark_nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Benchmark Nightly

on:
schedule:
- cron: '0 8 * * *' # Runs at midnight PST (8 AM UTC)

jobs:
dispatch-benchmark:
runs-on: ubuntu-latest
steps:
- name: Dispatch benchmark_dispatch workflow
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
await github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: 'benchmark_dispatch.yml',
ref: 'main',
inputs: {
run_h100: 'true',
run_b200: 'true',
run_mi325x: 'true'
}
})
Loading