Python version agnostic C++ extensions #126683
Labels
module: cpp-extensions
Related to torch.utils.cpp_extension
module: custom-operators
custom operators, custom ops, custom-operators, custom-ops
module: pt2-dispatcher
PT2 dispatcher-related issues (e.g., aotdispatch, functionalization, faketensor, custom-op,
oncall: pt2
triaged
This issue has been looked at a team member, and triaged and prioritized into an appropriate module
Recording some offline discussions with @drisspg and @malfet and also because this came up again in a thread on Slack
Today, C++ extensions in PyTorch need a separate build per python version. This is for two main reasons:
Pitch: for C++/CUDA custom-operator only C++ extensions (which is the vast majority of them), if we can excise all the python dependencies, then one should be able to have a single build that works for all Python versions.
cc @malfet @ezyang @msaroufim @bdhirsh @anijain2305 @chauhang
The text was updated successfully, but these errors were encountered: