trunk/fcebff2edcedc4a973b6124659b9b7932db725ad: Fix the version gate on the free-threaded profiler warning (#194697)
- PyTorch: 68 events in the last 90 days
- PyTorch: 68th Release in the last 90 days
- Previous: earlier the same day · ciflow/torchtitan/194829: Update
What happened
IS_PYTHON_3_14_PLUS is always defined (as PY_VERSION_HEX >= 0x030E0000 ), so !defined(IS_PYTHON_3_14_PLUS) was always false and the warning never fired on 3.13t. Introduced in #178551 , which almost certainly meant to check the macro's boolean value, not whether it's defined. Fix uses the macro's value instead. Test plan: compiled a probe with the guard against free-threaded 3.14 headers; old form is unreachable on…
Summary assembled by rule from the sources below