[CUB] Add relocatable test installation - #10817
Draft
ratnachandugembali-lgtm wants to merge 1 commit into
Draft
Conversation
Contributor
ratnachandugembali-lgtm
force-pushed
the
cub/relocatable-test-install-main
branch
from
August 14, 2026 06:58
330f15d to
6ee30ab
Compare
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
Adds an optional relocatable installation for CUB runtime tests using RAPIDS CMake.
cub-testsinstall componentrun_test.cmakeand compute-sanitizer suppressionsImplementation
Each runtime registration uses
INSTALL_COMPONENT_SET cub-tests. The executable is recorded withINSTALL_TARGET, allowingrapids_test_install_relocatable()to install the target and regenerateCTestTestfile.cmakewith install-tree paths.CUB-specific support files are staged under the build tree and installed with the same component because RAPIDS CMake cannot infer them:
cub/test/run_test.cmakeci/compute-sanitizer-suppressions.xmlThe component remains
EXCLUDE_FROM_ALL, so normal CCCL installation does not include the test package.Usage
The installed directory can be moved before running CTest. The destination system must still provide compatible CUDA runtime libraries and
cmake/ctestonPATH.Validation
pre-commit run --files cmake/CCCLGetDependencies.cmake cmake/RAPIDS.cmake cub/test/CMakeLists.txtA complete CUB configure, install, relocation, and runtime test has not yet been run in this local environment because
nvccis unavailable.