Re: experimental jit support in python 3.13?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I wouldn't personally depend on anything from ChatGPT exclusively. It's a semi-useful tool but shouldn't be your only safeguard. Back it up with further web search/reading documentation.

There's an alternative validation mechanism here: https://drew.silcock.dev/blog/everything-you-need-to-know-about-python-3-13/#how-do-i-try-out-the-jit contains 

Which works for me on f41 with the bundled Python.

[wmcdonald@fedora ~ ]$ python --version
Python 3.13.1
[wmcdonald@fedora ~ ]$ python -c 'import sysconfig;print("JIT enabled 🚀" if "-D_Py_JIT" in sysconfig.get_config_var("PY_CORE_CFLAGS") else "JIT disabled 😒")'
JIT enabled 🚀
[wmcdonald@fedora ~ ]$

There's also a further example program calculating Fibonacci sequences which works as you'd expect:

[wmcdonald@fedora ~ ]$ python jit.py
Doesn't look like the JIT is enabled 🥱
[wmcdonald@fedora ~ ]$ export PYTHON_JIT=1
[wmcdonald@fedora ~ ]$ python jit.py
JIT enabled 🚀

On Sat, 11 Jan 2025 at 12:04, Neal Becker <ndbecker2@xxxxxxxxx> wrote:
Thanks, but just to verify I asked chatgpt how to tell if it was enabled at compile time and it suggested:
 import sysconfig
print(sysconfig.get_config_var("WITH_EXPERIMENTAL_JIT"))
which prints "None".

On Fri, Jan 10, 2025 at 11:39 PM Todd Zullinger <tmz@xxxxxxxxx> wrote:
Neal Becker wrote:
> I believe experimental jit support in python 3.13 needs to
> be enabled both at compile time and at runtime.  Does
> Fedora's python3.13 have this enabled?

Knowing nothing about this, I searched the fine web and
checked the Python 3.13 release notes which explain this and
how it is enabled and used:

https://docs.python.org/3/whatsnew/3.13.html#an-experimental-just-in-time-jit-compiler

Then I looked at the source for the python3.13 package in
Fedora and can see that it is enabled at compile-time, but
disabled by default at runtime:

https://src.fedoraproject.org/rpms/python3.13/blob/rawhide/f/python3.13.spec#_123-133

You simply need to set PYTHON_JIT=1 to enable it.

--
Todd
--
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue


--
Those who don't understand recursion are doomed to repeat it
--
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
-- 
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux