DNM: test wheel ci on cuda base#2298
Draft
gforsyth wants to merge 3 commits into
Draft
Conversation
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
Contributor
Author
|
/ok to test |
This was referenced Jul 6, 2026
rapids-bot Bot
pushed a commit
that referenced
this pull request
Jul 6, 2026
Same patch as cudf#23089 I am testing a smaller base image for wheel testing in #2298 -- the current `dlopen` scripts find `libnvrtc.so.12` when the base image is the full cuda development image, but they don't find it when it's provided by nvidia-cuda-nvrtc-cu12. Here's what the loading looks like with a before+after of this fix: ```python >>> import libcuvs >>> libcuvs.load_library() [] # so nothing was loaded above (silent failure due to the way wheel library loading is architected) # try to directly load `libcuvs.so` >>> from libcuvs.load import _load_wheel_installation >>> _load_wheel_installation('libcuvs.so') Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/pyenv/versions/3.11.15/lib/python3.11/site-packages/libcuvs/load.py", line 31, in _load_wheel_installation return ctypes.CDLL(lib, PREFERRED_LOAD_FLAG) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/pyenv/versions/3.11.15/lib/python3.11/ctypes/__init__.py", line 376, in __init__ self._handle = _dlopen(self._name, mode) ^^^^^^^^^^^^^^^^^^^^^^^^^ OSError: libnvrtc.so.12: cannot open shared object file: No such file or directory # that's the issue preventing `libcuvs.so` from loading # use cuda.pathfinder to load nvrtc >>> from cuda.pathfinder import load_nvidia_dynamic_lib >>> load_nvidia_dynamic_lib('nvrtc') LoadedDL(abs_path='/pyenv/versions/3.11.15/lib/python3.11/site-packages/nvidia/cuda_nvrtc/lib/libnvrtc.so.12', was_already_loaded_from_elsewhere=False, _handle_uint=95154333901152, found_via='site-packages') # now load `libcuvs.so` again: >>> _load_wheel_installation('libcuvs.so') <CDLL '/pyenv/versions/3.11.15/lib/python3.11/site-packages/libcuvs/lib64/libcuvs.so', handle 568ad84cc0c0 at 0x70554dc89b90> ``` xref rapidsai/build-planning#143 Authors: - Gil Forsyth (https://github.com/gforsyth) Approvers: - Divye Gala (https://github.com/divyegala) URL: #2299
Contributor
Author
|
/ok to test |
Contributor
Author
|
/ok to test |
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.
xref rapidsai/build-planning#143
xref rapidsai/ci-imgs#400
xref rapidsai/shared-workflows#521
Test run using the smaller
cuda-baseimage as the parent image ofcitestwheelThis shouldn't be merged. If all projects can run wheel tests with this image, we'll swap out the image upstream in
shared-workflows.