Skip to content

[CUB] Add relocatable test installation - #10817

Draft
ratnachandugembali-lgtm wants to merge 1 commit into
NVIDIA:mainfrom
ratnachandugembali-lgtm:cub/relocatable-test-install-main
Draft

[CUB] Add relocatable test installation#10817
ratnachandugembali-lgtm wants to merge 1 commit into
NVIDIA:mainfrom
ratnachandugembali-lgtm:cub/relocatable-test-install-main

Conversation

@ratnachandugembali-lgtm

@ratnachandugembali-lgtm ratnachandugembali-lgtm commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds an optional relocatable installation for CUB runtime tests using RAPIDS CMake.

  • registers CUB test executables with a cub-tests install component
  • installs RAPIDS CTest resource metadata and GPU-aware test launch support
  • packages CUB's run_test.cmake and compute-sanitizer suppressions
  • preserves the existing small/large GPU resource claims in installed CTest registrations
  • updates RAPIDS CMake to v26.08.00, which supports rewriting nested test-command arguments during relocation

Implementation

Each runtime registration uses INSTALL_COMPONENT_SET cub-tests. The executable is recorded with INSTALL_TARGET, allowing rapids_test_install_relocatable() to install the target and regenerate CTestTestfile.cmake with 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.cmake
  • ci/compute-sanitizer-suppressions.xml

The component remains EXCLUDE_FROM_ALL, so normal CCCL installation does not include the test package.

Usage

cmake --install <cub-build-dir> \
  --prefix <install-prefix> \
  --component cub-tests

ctest \
  --test-dir <install-prefix>/bin/cub-tests \
  -j8 \
  --output-on-failure

The installed directory can be moved before running CTest. The destination system must still provide compatible CUDA runtime libraries and cmake/ctest on PATH.

Validation

  • pre-commit run --files cmake/CCCLGetDependencies.cmake cmake/RAPIDS.cmake cub/test/CMakeLists.txt
  • reviewed against the RAPIDS CMake v26.08.00 relocatable-test implementation and tests

A complete CUB configure, install, relocation, and runtime test has not yet been run in this local environment because nvcc is unavailable.

@copy-pr-bot

copy-pr-bot Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@github-project-automation github-project-automation Bot moved this to Todo in CCCL Aug 14, 2026
@cccl-authenticator-app cccl-authenticator-app Bot moved this from Todo to In Progress in CCCL Aug 14, 2026
@ratnachandugembali-lgtm
ratnachandugembali-lgtm force-pushed the cub/relocatable-test-install-main branch from 330f15d to 6ee30ab Compare August 14, 2026 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

1 participant