Skip to content

Commit 60d80a9

Browse files
committed
enforce UTC time in benchmark action
1 parent 3726a7d commit 60d80a9

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,12 @@ runs:
101101
echo "-----"
102102
sycl-ls
103103
echo "-----"
104+
# Using --break-system-packages because:
105+
# - venv is not installed
106+
# - unable to install anything via pip, as python packages in the docker
107+
# container are managed by apt
108+
# - apt is unable to install anything due to unresolved dpkg dependencies,
109+
# as a result of how the sycl nightly images are created
104110
pip install --user --break-system-packages -r ./devops/scripts/benchmarks/requirements.txt
105111
echo "-----"
106112
@@ -112,7 +118,7 @@ runs:
112118
esac
113119
# TODO accomodate for different GPUs and backends
114120
SAVE_NAME="${SAVE_PREFIX}_PVC_${SAVE_SUFFIX}"
115-
SAVE_TIMESTAMP="$(date +'%Y%m%d_%H%M%S')"
121+
SAVE_TIMESTAMP="$(date -u +'%Y%m%d_%H%M%S')" # Timestamps are in UTC time
116122
117123
taskset -c "$CORES" ./devops/scripts/benchmarks/main.py \
118124
"$(realpath ./llvm_test_workdir)" \
@@ -126,8 +132,8 @@ runs:
126132
echo "-----"
127133
python3 ./devops/scripts/benchmarks/compare.py to_hist \
128134
--name Baseline_PVC_L0 \
129-
--compare-file "./llvm-ci-perf-results/$RUNNER_NAME/results/${SAVE_NAME}_${SAVE_TIMESTAMP}.json" \
130-
--results-dir "./llvm-ci-perf-results/$RUNNER_NAME/results/"
135+
--compare-file "./llvm-ci-perf-results/results/${SAVE_NAME}_${SAVE_TIMESTAMP}.json" \
136+
--results-dir "./llvm-ci-perf-results/results/"
131137
132138
- name: Push compute-benchmarks results
133139
if: inputs.upload_results == 'true' && always()

0 commit comments

Comments
 (0)