-
Notifications
You must be signed in to change notification settings - Fork 154
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
prefer wheel-provided libcuspatial.so in load_library(), use RTLD_LOCAL #1483
Merged
Conversation
This file contains 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
jameslamb
added
5 - DO NOT MERGE
Hold off on merging; see PR for details
improvement
Improvement / enhancement to an existing function
breaking
Breaking change
labels
Nov 13, 2024
vyasr
reviewed
Nov 13, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The general logic looks right. Rewrote the explanatory comment to hopefully clarify what we're doing, and left one comment on resolution order.
Co-authored-by: Vyas Ramasubramani <vyas.ramasubramani@gmail.com>
vyasr
reviewed
Nov 13, 2024
3 tasks
This was referenced Nov 14, 2024
vyasr
approved these changes
Nov 14, 2024
jameslamb
changed the title
WIP: [DO NOT MERGE] prefer wheel-provided libcudf.so in load_library(), use RTLD_LOCAL
prefer wheel-provided libcudf.so in load_library(), use RTLD_LOCAL
Nov 14, 2024
jameslamb
changed the title
prefer wheel-provided libcudf.so in load_library(), use RTLD_LOCAL
prefer wheel-provided libcuspatial.so in load_library(), use RTLD_LOCAL
Nov 14, 2024
bdice
approved these changes
Nov 14, 2024
/merge |
rapids-bot bot
pushed a commit
to rapidsai/kvikio
that referenced
this pull request
Nov 14, 2024
Contributes to rapidsai/build-planning#118 Modifies `libkvikio.load_library()` in the following ways: * prefer wheel-provided `libkvikio.so` to system installation * expose environment variable `RAPIDS_LIBKVIKIO_PREFER_SYSTEM_LIBRARY` for switching that preference * load `libkvikio.so` with `RTLD_LOCAL`, to prevent adding symbols to the global namespace ([dlopen docs](https://linux.die.net/man/3/dlopen)) ## Notes for Reviewers ### How I tested this Tested the general approach on rapidsai/cudf#17316 and rapidsai/cuspatial#1483. Authors: - James Lamb (https://github.com/jameslamb) Approvers: - Vyas Ramasubramani (https://github.com/vyasr) URL: #551
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
breaking
Breaking change
improvement
Improvement / enhancement to an existing function
Python
Related to Python code
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
Contributes to rapidsai/build-planning#118
Modifies
libcuspatial.load_library()
in the following ways:libcuspatial.so
to system installationRAPIDS_LIBCUSPATIAL_PREFER_SYSTEM_LIBRARY
for switching that preferencelibcuspatial.so
withRTLD_LOCAL
, to prevent adding symbols to the global namespace (dlopen docs)Notes for Reviewers
How I tested this
See "How I tested this" in rapidsai/cudf#17316
Also opened this PR originally pulling in built packages from rapidsai/cudf#17316
Checklist