Skip to content

Commit e15b94f

Browse files
committed
[benchmarks] use python venv for scripts
1 parent 6c28d33 commit e15b94f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/ur-benchmarks-reusable.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,13 @@ jobs:
8080
git checkout origin/pr/${{ inputs.pr_no }}/merge
8181
git rev-parse origin/pr/${{ inputs.pr_no }}/merge
8282
83-
- name: Install pip packages
83+
- name: Create virtual environment
84+
run: python -m venv .venv
85+
86+
- name: Activate virtual environment and install pip packages
8487
run: |
85-
pip install --force-reinstall -r ${{github.workspace}}/sycl-repo/devops/scripts/benchmarks/requirements.txt
88+
source .venv/bin/activate
89+
pip install -r ${{github.workspace}}/sycl-repo/devops/scripts/benchmarks/requirements.txt
8690
8791
- name: Configure SYCL
8892
run: >
@@ -139,6 +143,7 @@ jobs:
139143
working-directory: ${{ github.workspace }}
140144
id: benchmarks
141145
run: >
146+
source .venv/bin/activate &&
142147
taskset -c "${{ env.CORES }}" ${{ github.workspace }}/sycl-repo/devops/scripts/benchmarks/main.py
143148
~/llvm_bench_workdir
144149
--sycl ${{ github.workspace }}/sycl_build

0 commit comments

Comments
 (0)