Repository navigation
Compress CUDA binaries - #3465
Merged
Merged
Conversation
Signed-off-by: Fred Heinecke <fheinecke@nvidia.com>
Collaborator
Author
|
/te-ci |
fheinecke
marked this pull request as ready for review
September 3, 2026 18:33
Contributor
Greptile SummaryThis PR enables compression for every embedded CUDA fatbinary and selects size-optimized compression for CUDA 13 or newer, reducing the packaged native core library and wheel sizes.
Confidence Score: 5/5The PR appears safe to merge, with no concrete build, compatibility, or runtime defect identified. The added options use the existing global CUDA flag construction pattern, and size mode is restricted to CUDA 13 or newer while CUDA 12 retains the compatibility-oriented default mode. Important Files Changed
Reviews (1): Last reviewed commit: "Compress CUDA binaries" | Re-trigger Greptile |
ptrendx
approved these changes
Sep 3, 2026
fheinecke
added a commit
that referenced
this pull request
Sep 3, 2026
Signed-off-by: Fred Heinecke <fheinecke@nvidia.com> (cherry picked from commit 888da30)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Compresses build CUDA binaries to shrink the TE core library size.
I ran a build with and without this PR. The impact on CUDA 13 TE amd64 builds is significant:
mainwithout this change is 556 MB, but implementing this cuts the size to 292 MB (which is much closer to the 2.18 release wheel size despite containing more GPU architectures and features)The downsides are:
I'm not expecting decompression time to be meaningful, given that other projects (like pytorch itself) is using this same approach already. It's possible in some systems startup time may actually be improved, if the added decompression time is less than the time savings from reduced disk I/O.
Type of change
Changes
Please list the changes introduced in this PR:
Checklist: