GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||
GeezerVison is showing github.com — gh-118335: Configure Tier 2 interpreter at build time by gvanrossum · Pull Request #118339 · python/cpython Conversation
|
|
WASI build is failing, just like it did before when I had an option to disable Tier 2. I'm away from my Windows laptop so I can't debug the Windows JIT failures yet -- this seems to be in |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
There's also this failure (a hang in test_multiprocessing, apparently): https://github.com/python/cpython/actions/runs/8857124270/job/24324215355?pr=118339 PS. I've updated the discussion in the initial comment. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Benchmark says 1% faster (in Tier 1 mode). |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Looks like Windows JIT builds now pass. WASI build still fails. I wonder if there's something in the WASI build similar to the Windows problem (which had to do with |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
It doesn't work. I'm giving up. This reverts commit 877a005.
…l-jit=XXX There's more to do.
The value is a bitflag: - 0: off - 1: JIT, on by default - 3: JIT, off by default (not yet implemented, requires fiddling pystate.c) - 4: tier 2 interpreter, on by default
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This may already be on your radar, but a reminder to also update the Windows build.bat script to support this 4-way option.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
WASI bliss at last. @brandtbucher Do you have time to review this? @mdboom I peeked at your new-flags branch in the benchmarking repo. We lose the ability to benchmark Tier 2 on Windows (for now) -- is that reflected in the diff there? (As an only occasional user of the UI there I rely on the script to let me know if I've selected an impossible combination.) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Yep, looking at it now. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking the time to tackle this. Performing the surgery after-the-fact definitely seems like a tricky task.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
@brandtbucher I believe I've done everything from your review that I gave a thumbs up, and for everything else I stated a reason. @mdboom -- At Brandt's suggestion I've shortened the "default off" flag to |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
@brandtbucher I believe I've done everything from your review that I gave a thumbs up, and for everything else I stated a reason.
Yep!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Apparently makes the CI fuzzer unhappy. This reverts commit 3c919bb.
|
Okay, I've got the Windows flag stuff sorted out. It's a little different from Unix, because you apparently can't say "--experimental-jit=yes-off" while also supporting "--experimental-jit"; it treats the "=" as a space. Rather than becoming a .BAT file CLI parsing expert I chose the following option names:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…18339) The code for Tier 2 is now only compiled when configured with `--enable-experimental-jit[=yes|interpreter]`. We drop support for `PYTHON_UOPS` and -`Xuops`, but you can disable the interpreter or JIT at runtime by setting `PYTHON_JIT=0`. You can also build it without enabling it by default using `--enable-experimental-jit=yes-off`; enable with `PYTHON_JIT=1`. On Windows, the `build.bat` script supports `--experimental-jit`, `--experimental-jit-off`, `--experimental-interpreter`. In the C code, `_Py_JIT` is defined as before when the JIT is enabled; the new variable `_Py_TIER2` is defined when the JIT *or* the interpreter is enabled. It is actually a bitmask: 1: JIT; 2: default-off; 4: interpreter.
…abled (python#118493) Also patch up news blurb for pythongh-118339 (add warning that PYTHON_UOPS is now PYTHON_JIT).
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.