Skip to content
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

Statically link libnvcomp into libcudfjni [skip ci] #8334

Merged
merged 1 commit into from
May 26, 2021

Conversation

jlowe
Copy link
Member

@jlowe jlowe commented May 24, 2021

Updates the Java bindings to nvcomp to statically link libnvcomp. This will help avoid libnvcomp v1.x and v2.x conflicts when libcudf starts pulling in libnvcomp 2.x as part of #8229.

Switching to a statically-linked libnvcomp requires a small patch to the nvcomp source, as it is hard-coded to only produce a shared library. The patch changes the target to a static library compiled with position-independent code so it can be linked into a shared object like libcudfjni.so.

@jlowe jlowe added CMake CMake build issue Java Affects Java cuDF API. 4 - Needs cuDF (Java) Reviewer improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels May 24, 2021
@jlowe jlowe self-assigned this May 24, 2021
@jlowe jlowe requested a review from a team as a code owner May 24, 2021 18:25
Copy link
Contributor

@revans2 revans2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks fine, but it kind of scares me and I would like to see a follow on ASAP to have us move to the same version of nvcomp that the rest of cudf uses.

@jlowe
Copy link
Member Author

jlowe commented May 24, 2021

I would like to see a follow on ASAP to have us move to the same version of nvcomp that the rest of cudf uses.

Filed #8336 and will begin working on it.

@jlowe
Copy link
Member Author

jlowe commented May 24, 2021

rerun tests

@jlowe
Copy link
Member Author

jlowe commented May 26, 2021

@gpucibot merge

@rapids-bot rapids-bot bot merged commit 341ebe4 into rapidsai:branch-21.08 May 26, 2021
@jlowe jlowe deleted the jni-static-nvcomp branch September 10, 2021 15:46
@vyasr vyasr added 4 - Needs Review Waiting for reviewer to review or respond and removed 4 - Needs cuDF (Java) Reviewer labels Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4 - Needs Review Waiting for reviewer to review or respond CMake CMake build issue improvement Improvement / enhancement to an existing function Java Affects Java cuDF API. non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants