gh-120326: Include intrin.h on Windows#120329
Conversation
|
@cdgriffith can you confirm that this resolves the issue? |
intrih.h on Windowsintrin.h on Windows
|
@Eclips4 The build completes, and produces a 3.14 executable (assuming this will also be merged into 3.13). Thank you for fast fix! |
Misc/NEWS.d/next/Build/2024-06-11-00-38-05.gh-issue-120326.JHSDF1.rst
Outdated
Show resolved
Hide resolved
vstinner
left a comment
There was a problem hiding this comment.
LGTM, I just left minor suggestions.
…DF1.rst Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Victor Stinner <vstinner@python.org>
|
Thanks for the review, Victor. |
vstinner
left a comment
There was a problem hiding this comment.
Oh wait, now I recall vaguely a C++20 module issue if the include is done inside a extern "C" { ... }. Would it be possible to move the include to Python.h, and add a comment explaining why it's needed, mention at least one function which is used?
Also, is this include only needed for Free Threading, or for JIT compiler, or both?
|
Thanks, I enabled auto-merge. For example, I see that _Py_ThreadId() uses: |
|
@vstinner I've disabled automerge due to failure of "Tests / Windows (free-threading) / build and test (x86) (pull_request)" job (see https://github.com/python/cpython/actions/runs/9468440435/attempts/1?pr=120329) . I've re-run it and seems it will pass (UPD: Yes, it is). I don't know if it is related to this pull request, but it is definitely something strange, and I am not sure we can merge it now. However, I cannot reproduce the failure from the job locally on my Windows setup :( |
…ythonGH-120329) (cherry picked from commit 939c201) Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
|
GH-120363 is a backport of this pull request to the 3.13 branch. |
I don't see how an include can trigger this issue. It's strange since the job passed when re-run. |
|
Oh, the x86 job failed again on the commit checks: https://github.com/python/cpython/actions/runs/9470417218/job/26091279722 |
|
I built Python with Free Threading on Windows for x86: I failed to reproduce the issue. I ran |
|
Windows x86 Free Threading failed 2x in a row, and then succeeded 5x in a row. This bug is strange. I don't know how to debug it since I cannot reproduce it locally. |
…ythonGH-120329) (cherry picked from commit 939c201) Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
|
GH-120414 is a backport of this pull request to the 3.13 branch. |
--experimental-jitand--disable-gil#120326