Skip to content

[CI] Fix L0v2 in benchmarking CI #18713

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

Merged
merged 3 commits into from
May 30, 2025
Merged
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
16 changes: 13 additions & 3 deletions devops/actions/run-tests/benchmark/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,6 @@ runs:
# TODO generate summary + display helpful message here
export CMPLR_ROOT=./toolchain
echo "-----"
sycl-ls
echo "-----"
# Using --break-system-packages because:
# - venv is not installed
# - unable to install anything via pip, as python packages in the docker
Expand All @@ -123,19 +121,31 @@ runs:
sycl_git_repo="$(printf "$sycl_git_info" | cut -d' ' -f1)"
sycl_git_commit="$(printf "$sycl_git_info" | cut -d' ' -f2)"

# By default, the benchmark scripts forceload level_zero
FORCELOAD_ADAPTER="${ONEAPI_DEVICE_SELECTOR%%:*}"
echo "Adapter: $FORCELOAD_ADAPTER"

case "$ONEAPI_DEVICE_SELECTOR" in
level_zero:*) SAVE_SUFFIX="L0" ;;
level_zero_v2:*) SAVE_SUFFIX="L0v2" ;;
level_zero_v2:*)
SAVE_SUFFIX="L0v2"
export ONEAPI_DEVICE_SELECTOR="level_zero:gpu" # "level_zero_v2:gpu" not supported anymore
export SYCL_UR_USE_LEVEL_ZERO_V2=1
;;
opencl:*) SAVE_SUFFIX="OCL" ;;
*) SAVE_SUFFIX="${ONEAPI_DEVICE_SELECTOR%%:*}";;
esac
# TODO accomodate for different GPUs and backends
SAVE_NAME="${SAVE_PREFIX}_PVC_${SAVE_SUFFIX}"
SAVE_TIMESTAMP="$(date -u +'%Y%m%d_%H%M%S')" # Timestamps are in UTC time

sycl-ls
echo "-----"

taskset -c "$CORES" ./devops/scripts/benchmarks/main.py \
"$(realpath ./llvm_test_workdir)" \
--sycl "$(realpath ./toolchain)" \
--adapter "$FORCELOAD_ADAPTER" \
--save "$SAVE_NAME" \
--output-html remote \
--results-dir "./llvm-ci-perf-results/" \
Expand Down
Loading