We're working on adding support for Triton on Windows + free-threaded Python. The…
Jump to turn (22)
- 1We're working on adding support for Triton on Windows + free-threaded Python. Th
- 2Stop and ask me when you need to rebuild Triton. This requires MSVC. Currently w
- 3You may also check the Python headers if needed.
- 4You may also ask me to download the Python source code if needed.
- 5The TinyCC distribution bundled with Triton is at C:\Python312\Lib\site-packages
- 6Do you think it also happens on Linux with gcc?
- 7If you think it's an issue in tinycc, then fix it in C:\tinycc\ . You may use th
- 8BTW, you're running in PowerShell. Use Get-Command instead of where. where is an
- 9For now we pass PyUSEGCCBUILTINATOMICS to TinyCC. Try to mimic the behavior of G
- 10More formally, try to stick to C17 standard first, then mimic the behavior of GC
- 11Apart from PyUSEGCCBUILTINATOMICS, what other atomics can Python use? Which is t
- 12We prefer sticking to C11/17 standard. Let's try to use pyatomicstd.h instead.
- 13What unit tests do we need to run after patching TinyCC?
- 14Add the two new tests, make a git commit, then run the must-run and recommended
- 15Now modify C:\triton\ so it passes testtriton.py for both Python 3.12 and 3.14t
- 16Do you need gdb or windbg to debug this?
- 17Review the git diff in C:\triton\ . Do you think they're issues of Python 3.12 v
- 18Minimize the diff. We are maintaining a fork so we prefer minimize the diff from
- 19Does the ref-leak workaround still exist? What do we need to properly fix it? Wh
- 20Fix it in C:\tinycc\ . We prefer sticking to C11/17 standard, and make non-stand
- 21Why do we need to define MINGW32 / MINGW64 , even though TinyCC is unrelated to
- 22What's the change in x8664-link.c ?
- User
We're working on adding support for Triton on Windows + free-threaded Python. The current env uses C:\Python312\ by default. You may activate C:\tmp.venv_cp314t\ when needed. By default Triton uses the bundled TinyCC. For now we focus on TinyCC rather than MSVC. You may read the source code in C:\tinycc\ . If you need to build it, stop and ask me and I'll give you instructions. When cd to C:\tmp\test_triton\ and run test_triton.py , it works for Python 3.12, but not Python 3.14t. How do you explain it? Note that you need to delete the cache folder C:\tmp\test_triton.triton\ before running the experiment.
- Assistant
Reproducing the clean-cache run under both interpreters first, then I’ll compare the failure path against the Triton/TinyCC code.
- Assistant