Skip to content

Commit 8cf9196

Browse files
[CI] Use venv for pip installation in bench
Moved on to new Ubuntu and it doesn't support global pip installation.
1 parent 785c710 commit 8cf9196

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/reusable_benchmarks.yml

Lines changed: 4 additions & 1 deletion
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)