-
Notifications
You must be signed in to change notification settings - Fork 791
[Benchmarks] remove force rebuild path and unify installdir use #20388
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: sycl
Are you sure you want to change the base?
Changes from all commits
da899be
31fedcd
bbe077f
53db78d
dc9b85c
3609c5d
354c551
fda5bdc
648f183
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,6 +41,12 @@ on: | |
description: | | ||
Upload results to https://intel.github.io/llvm/benchmarks/. | ||
required: true | ||
exit_on_failure: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add this also to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. applied |
||
type: string # true/false: workflow_dispatch does not support booleans | ||
description: | | ||
Fail benchmark script on any error. | ||
required: false | ||
default: 'false' | ||
runner: | ||
type: string | ||
required: true | ||
|
@@ -90,6 +96,13 @@ on: | |
- false | ||
- true | ||
default: true | ||
exit_on_failure: | ||
description: Fail benchmark script on any error. | ||
type: choice | ||
options: | ||
- false | ||
- true | ||
default: false | ||
runner: | ||
description: Self-hosted runner to use for the benchmarks | ||
type: choice | ||
|
@@ -193,6 +206,7 @@ jobs: | |
benchmark_upload_results: ${{ inputs.upload_results }} | ||
benchmark_save_name: ${{ needs.sanitize_inputs.outputs.benchmark_save_name }} | ||
benchmark_preset: ${{ inputs.preset }} | ||
benchmark_exit_on_failure: ${{ inputs.exit_on_failure }} | ||
repo_ref: ${{ needs.sanitize_inputs.outputs.build_ref }} | ||
toolchain_artifact: ${{ needs.build_sycl.outputs.toolchain_artifact }} | ||
toolchain_artifact_filename: ${{ needs.build_sycl.outputs.toolchain_artifact_filename }} | ||
|
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -32,6 +32,9 @@ inputs: | |||||||
dry_run: | ||||||||
type: string | ||||||||
required: False | ||||||||
exit_on_failure: | ||||||||
type: string | ||||||||
required: False | ||||||||
|
||||||||
runs: | ||||||||
using: "composite" | ||||||||
|
@@ -192,8 +195,10 @@ runs: | |||||||
sycl-ls | ||||||||
echo "-----" | ||||||||
|
||||||||
taskset -c "$CORES" ./devops/scripts/benchmarks/main.py \ | ||||||||
"$(realpath ./llvm_test_workdir)" \ | ||||||||
WORKDIR="$(realpath ./llvm_test_workdir)" | ||||||||
if [ -n "$WORKDIR" ] && [ -d "$WORKDIR" ] && [[ "$WORKDIR" == *llvm_test_workdir* ]]; then rm -rf "$WORKDIR" ; fi | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The workdir cleanup uses a substring match which could accidentally delete unintended directories. Consider using a more robust check, such as verifying the full path starts with a known safe prefix or checking if it's a subdirectory of the current directory.
Suggested change
Copilot uses AI. Check for mistakes. Positive FeedbackNegative Feedback There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. rejected, too complex |
||||||||
|
||||||||
taskset -c "$CORES" ./devops/scripts/benchmarks/main.py "$WORKDIR" \ | ||||||||
--sycl "$(realpath ./toolchain)" \ | ||||||||
--ur "$(realpath ./ur/install)" \ | ||||||||
--adapter "$FORCELOAD_ADAPTER" \ | ||||||||
|
@@ -204,7 +209,8 @@ runs: | |||||||
--preset "$PRESET" \ | ||||||||
--timestamp-override "$SAVE_TIMESTAMP" \ | ||||||||
--detect-version sycl,compute_runtime \ | ||||||||
--flamegraph inclusive | ||||||||
${{ inputs.exit_on_failure == 'true' && '--exit-on-failure' || '' }} | ||||||||
# TODO: add back: "--flamegraph inclusive" once works properly | ||||||||
|
||||||||
echo "-----" | ||||||||
python3 ./devops/scripts/benchmarks/compare.py to_hist \ | ||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be added to
workflow_dispatch
path, too.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
applied