-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve benchmark scripts and add a nightly job
This patch: - Adds a benchmark suite abstraction and moves all existing benchmarks into it. This makes individual benchmark types self-contained and allows us to skip over benchmarks that don't have their dependencies met. - Makes sycl and ur optional, and they are no longer positional arguments. - Creates a benchmark history that stores benchmark runs. This then enables us to do comparisions not just with the latest result but also against e.g., a historical average. - adds a nightly job to store baseline results. This is all in preparation for adding an HTML output that will generate a static HTML with historical benchmark data.
- Loading branch information
Showing
19 changed files
with
690 additions
and
436 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
name: Compute Benchmarks | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
str_name: | ||
description: Formatted adapter name | ||
type: choice | ||
required: true | ||
default: 'level_zero' | ||
options: | ||
- level_zero | ||
- level_zero_v2 | ||
unit: | ||
description: Test unit (cpu/gpu) | ||
type: choice | ||
required: true | ||
default: 'gpu' | ||
options: | ||
- cpu | ||
- gpu | ||
pr_no: | ||
description: PR number (if 0, it'll run on the main) | ||
type: number | ||
required: true | ||
bench_script_params: | ||
description: Parameters passed to script executing benchmark | ||
type: string | ||
required: false | ||
default: '' | ||
sycl_config_params: | ||
description: Extra params for SYCL configuration | ||
type: string | ||
required: false | ||
default: '' | ||
sycl_repo: | ||
description: 'Compiler repo' | ||
type: string | ||
required: true | ||
default: 'intel/llvm' | ||
sycl_commit: | ||
description: 'Compiler commit' | ||
type: string | ||
required: false | ||
default: '' | ||
|
||
schedule: | ||
- cron: '0 0 * * *' # Runs at midnight UTC every day | ||
|
||
permissions: | ||
contents: read | ||
pull-requests: write | ||
|
||
jobs: | ||
manual: | ||
name: Manual Compute Benchmarks | ||
uses: ./.github/workflows/compute-benchmarks-reusable.yml | ||
with: | ||
str_name: ${{ inputs.str_name }} | ||
unit: ${{ inputs.unit }} | ||
pr_no: ${{ inputs.pr_no }} | ||
bench_script_params: ${{ inputs.bench_script_params }} | ||
sycl_config_params: ${{ inputs.sycl_config_params }} | ||
sycl_repo: ${{ inputs.sycl_repo }} | ||
sycl_commit: ${{ inputs.sycl_commit }} | ||
|
||
nightly: | ||
name: Nightly Compute Benchmarks | ||
uses: ./.github/workflows/compute-benchmarks-reusable.yml | ||
with: | ||
str_name: 'level_zero' | ||
unit: 'gpu' | ||
pr_no: 0 | ||
bench_script_params: '--save baseline' | ||
sycl_config_params: '' | ||
sycl_repo: 'intel/llvm' | ||
sycl_commit: '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.