Skip to content

Commit 7727ad1

Browse files
authored
Merge pull request #1178 from lukaszstolarczuk/venv-bench-ci
[CI] Use venv for pip installation in benchmarks
2 parents 902877b + 8cf9196 commit 7727ad1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/reusable_benchmarks.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ jobs:
111111

112112
- name: Install benchmarking scripts deps
113113
run: |
114-
pip install --force-reinstall -r ${{github.workspace}}/sycl-repo/unified-runtime/third_party/benchmark_requirements.txt
114+
python -m venv .venv
115+
source .venv/bin/activate
116+
pip install -r ${{github.workspace}}/sycl-repo/unified-runtime/third_party/benchmark_requirements.txt
115117
116118
- name: Set core range and GPU mask
117119
run: |
@@ -135,6 +137,7 @@ jobs:
135137
id: benchmarks
136138
working-directory: ${{env.BUILD_DIR}}
137139
run: >
140+
source ${{github.workspace}}/.venv/bin/activate &&
138141
taskset -c ${{ env.CORES }} ${{ github.workspace }}/sycl-repo/unified-runtime/scripts/benchmarks/main.py
139142
~/bench_workdir_umf
140143
--umf ${{env.BUILD_DIR}}

0 commit comments

Comments
 (0)