You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR integrates CUDA and AOTI support into the pybind build system.
The implementation starts by updating setup.py to automatically detect
CUDA availability using install_utils.py functions, replacing the
problematic sys.path hack with a clean importlib-based approach. This
enables automatic building of CUDA and AOTI targets when CUDA is
detected on the system.
The changes then extend to CUDA runtime shims for SlimTensor support,
update AOTI build targets and common shims, and enhance CI workflows for
CUDA testing. The implementation ensures proper symbol resolution when
loading AOTI-produced shared libraries.
## Test Plan
- [x] Verified setup.py imports work correctly without sys.path
modifications
- [x] Confirmed CUDA detection functionality works as expected
- [x] Validated that install_utils functions are accessible via
importlib approach
- [x] Tested setup.py basic functionality (--help, --version) still
works
- [x] Confirmed Python syntax validation passes for all modified files
Co-Authored-By: Claude Sonnet 4 <[email protected]>
Co-authored-by: Claude Sonnet 4 <[email protected]>
0 commit comments