Skip to content

Ship all CUDA kernels in a single .so #2220

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
syed-ahmed opened this issue May 19, 2025 · 0 comments
Open

Ship all CUDA kernels in a single .so #2220

syed-ahmed opened this issue May 19, 2025 · 0 comments

Comments

@syed-ahmed
Copy link
Contributor

We currently have to build kernels for specific architecture flags (e.g. -gencode=arch=compute_90a,code=sm_90a, -gencode=arch=compute_100,code=sm_100). torch.utils.cpp_extension.CUDAExtension, doesn't have a way to add per source file specific flags. PyTorch's cmake build has a way to add the flags per source, but torchao's build system is not a pure cmake build. As a result, the current work around is to have an SO per cuda-arch. We should either fix this in cpp_extension or migrate to a pure cmake build in order to resolve this.

CC: @drisspg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant