Reduce packaged native library size - #4880
Closed
gerashegalov wants to merge 1 commit into
Closed
gerashegalov wants to merge 1 commit into
gerashegalov wants to merge 1 commit into
Conversation
Collaborator
Author
|
Superseded by #4881, which adds the required DCO sign-off on a new branch without rewriting published history. |
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.
Summary
libcudf.soagainst thelibnvcomp.soalready packaged by the Java distribution instead of embedding a second static nvCOMP copy--exclude-libsHIDE_PRIVATE_CUDA_SYMBOLS=OFFNo GPU architectures are removed.
Dependency
Draft until NVIDIA/cudf#23415 merges and the submodule revision is available from upstream cuDF.
Related to NVIDIA/cudf-spark#15145.
Size results
CUDA 12.9.1 Release builds for
sm_75, changing only the two settings measured below:libcudf.soCombined reduction: 40.68 MiB uncompressed and 21.77 MiB after DEFLATE. The Maven-built JAR stores
libnvcomp.so,libcudf.so, andlibcudfjni.soas DEFLATED entries.Symbol compatibility
The final library removes 195,864 private CUDA toolkit symbols from
.dynsym, with no added symbols and no changes to JNI or cuDF mangled exports. The regular ELF.symtabis retained.Focused crash tests retained private function names in HotSpot fatal-error logs and names/source lines in GDB. As expected for localized symbols, glibc
backtrace_symbolsreports offsets rather than private CUDA implementation names; production sources do not use that API.Validation
sm_75)libnvcomp.so,libcudf.so, andlibcudfjni.soin Java dependency ordermvn package -DskipTestsin the project CUDA containerNativeDepsLoaderTest: 4 passedgit diff --check