Skip to content

Commit 3cbed5e

Browse files
committed
Test UR benchmarking suite
1 parent 4f08dd6 commit 3cbed5e

File tree

1 file changed

+25
-21
lines changed

1 file changed

+25
-21
lines changed

devops/actions/run-tests/benchmark/action.yml

Lines changed: 25 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ runs:
4747
echo "#" ;;
4848
esac
4949
- name: Compute CPU core range to run benchmarks on
50+
shell: bash
5051
run: |
5152
# Taken from ur-benchmark-reusable.yml:
5253
@@ -89,27 +90,30 @@ runs:
8990
echo "-----"
9091
sycl-ls
9192
echo "-----"
92-
taskset -c "$CORES" ./devops/scripts/benchmarking/benchmark.sh -n '${{ runner.name }}' -s || exit 1
93-
- name: Push compute-benchmarks results
94-
if: always()
95-
shell: bash
96-
run: |
97-
# TODO -- waiting on security clearance
98-
# Load configuration values
99-
$(python ./devops/scripts/benchmarking/load_config.py ./devops constants)
100-
101-
cd "./llvm-ci-perf-results"
102-
git config user.name "SYCL Benchmarking Bot"
103-
git config user.email "[email protected]"
104-
git pull
105-
git add .
106-
# Make sure changes have been made
107-
if git diff --quiet && git diff --cached --quiet; then
108-
echo "No new results added, skipping push."
109-
else
110-
git commit -m "[GHA] Upload compute-benchmarks results from https://github.com/intel/llvm/actions/runs/${{ github.run_id }}"
111-
git push "https://[email protected]/$SANITIZED_PERF_RES_GIT_REPO.git" "$SANITIZED_PERF_RES_GIT_BRANCH"
112-
fi
93+
mkdir -v ./llvm_test_workdir
94+
taskset -c "$CORES" ./devops/scripts/benchmarks/main.py "$(realpath ./llvm_test_workdir)" --sycl ./toolchain --save baseline
95+
echo "-----"
96+
ls
97+
# - name: Push compute-benchmarks results
98+
# if: always()
99+
# shell: bash
100+
# run: |
101+
# # TODO -- waiting on security clearance
102+
# # Load configuration values
103+
# $(python ./devops/scripts/benchmarking/load_config.py ./devops constants)
104+
#
105+
# cd "./llvm-ci-perf-results"
106+
# git config user.name "SYCL Benchmarking Bot"
107+
# git config user.email "[email protected]"
108+
# git pull
109+
# git add .
110+
# # Make sure changes have been made
111+
# if git diff --quiet && git diff --cached --quiet; then
112+
# echo "No new results added, skipping push."
113+
# else
114+
# git commit -m "[GHA] Upload compute-benchmarks results from https://github.com/intel/llvm/actions/runs/${{ github.run_id }}"
115+
# git push "https://[email protected]/$SANITIZED_PERF_RES_GIT_REPO.git" "$SANITIZED_PERF_RES_GIT_BRANCH"
116+
# fi
113117
- name: Find benchmark result artifact here
114118
if: always()
115119
shell: bash

0 commit comments

Comments
 (0)