-
Notifications
You must be signed in to change notification settings - Fork 115
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. - adds HTML output
- Loading branch information
Showing
24 changed files
with
1,174 additions
and
433 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,38 @@ | ||
name: Compute Benchmarks Nightly | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * *' # Runs at midnight UTC every day | ||
|
||
permissions: | ||
contents: read | ||
pull-requests: write | ||
|
||
jobs: | ||
nightly: | ||
name: Compute Benchmarks Nightly level-zero | ||
uses: ./.github/workflows/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: '' | ||
|
||
nightly2: | ||
# we need to wait until previous job is done so that the html report | ||
# contains both runs | ||
needs: nightly | ||
name: Compute Benchmarks Nightly level-zero v2 | ||
uses: ./.github/workflows/benchmarks-reusable.yml | ||
with: | ||
str_name: 'level_zero_v2' | ||
unit: 'gpu' | ||
pr_no: 0 | ||
bench_script_params: '--output-html --save baseline-v2' | ||
sycl_config_params: '' | ||
sycl_repo: 'intel/llvm' | ||
sycl_commit: '' | ||
upload_report: true |
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 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,62 @@ | ||
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: '' | ||
|
||
permissions: | ||
contents: read | ||
pull-requests: write | ||
|
||
jobs: | ||
manual: | ||
name: Compute Benchmarks | ||
uses: ./.github/workflows/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 }} |
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 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.