Skip to content

Commit 2ea2ca4

Browse files
committed
Support the new way to support Tier2 and JIT
1 parent ccb3830 commit 2ea2ca4

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

bench_runner/scripts/should_run.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ def _main(
3030
)
3131
sys.exit(1)
3232

33+
if tier2 and jit:
34+
print("Tier 2 interpreter and JIT may not be selected at the same time")
35+
sys.exit(1)
36+
3337
# Now that we've assert we are Python 3.11 or later, we can import
3438
# parts of our library.
3539
from bench_runner import git

bench_runner/templates/_benchmark.src.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ jobs:
211211
if: ${{ steps.should_run.outputs.should_run != 'false' }}
212212
run: |
213213
cd cpython
214-
./configure ${{ inputs.pgo == true && '--enable-optimizations --with-lto=yes' || '' }} ${{ inputs.jit == true && '--enable-experimental-jit' || '' }}
214+
./configure ${{ inputs.pgo == true && '--enable-optimizations --with-lto=yes' || '' }} ${{ inputs.tier2 == true && '--enable-experimental-jit=interpreter' || '' }} ${{ inputs.jit == true && '--enable-experimental-jit=yes' || '' }}
215215
make -j4
216216
- name: Install pyperformance
217217
if: ${{ steps.should_run.outputs.should_run != 'false' }}
@@ -308,7 +308,7 @@ jobs:
308308
if: ${{ steps.should_run.outputs.should_run != 'false' }}
309309
run: |
310310
cd cpython
311-
./configure ${{ inputs.pgo == true && '--enable-optimizations --with-lto=yes' || '' }} ${{ inputs.jit == true && '--enable-experimental-jit' || '' }}
311+
./configure ${{ inputs.pgo == true && '--enable-optimizations --with-lto=yes' || '' }} ${{ inputs.tier2 == true && '--enable-experimental-jit=interpreter' || '' }} ${{ inputs.jit == true && '--enable-experimental-jit=yes' || '' }}
312312
make -j4
313313
# On macos ARM64, actions/setup-python isn't available, so we rely on a
314314
# pre-installed homebrew one, used through a venv

bench_runner/templates/_pystats.src.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ jobs:
109109
if: ${{ steps.should_run.outputs.should_run != 'false' }}
110110
run: |
111111
cd cpython
112-
./configure --enable-pystats --prefix=$PWD/install ${{ inputs.jit == true && '--enable-experimental-jit' || '' }}
112+
./configure --enable-pystats --prefix=$PWD/install ${{ inputs.tier2 == true && '--enable-experimental-jit=interpreter' || '' }} ${{ inputs.jit == true && '--enable-experimental-jit=yes' || '' }}
113113
make -j4
114114
make install
115115
- name: Install pyperformance into the system python

0 commit comments

Comments
 (0)