Skip to content

Allow Orin CUDA forward compat root to be specified#1614

Open
elezar wants to merge 4 commits intoNVIDIA:mainfrom
elezar:configure-nvgpu-compat
Open

Allow Orin CUDA forward compat root to be specified#1614
elezar wants to merge 4 commits intoNVIDIA:mainfrom
elezar:configure-nvgpu-compat

Conversation

@elezar
Copy link
Member

@elezar elezar commented Jan 27, 2026

This change allows the CUDA forward compat root used for Orin-based systems to be specified as a config option or as a flag to the nvidia-ctk cdi generate command.

@elezar elezar force-pushed the configure-nvgpu-compat branch 3 times, most recently from b102e2a to 728cbe5 Compare January 27, 2026 13:55
@coveralls
Copy link

coveralls commented Jan 27, 2026

Pull Request Test Coverage Report for Build 21713873757

Details

  • 39 of 105 (37.14%) changed or added relevant lines in 10 files are covered.
  • 6 unchanged lines in 5 files lost coverage.
  • Overall coverage decreased (-0.01%) to 39.464%

Changes Missing Coverage Covered Lines Changed/Added Lines %
internal/modifier/csv.go 0 1 0.0%
internal/modifier/gated.go 0 1 0.0%
pkg/nvcdi/driver-nvml.go 0 1 0.0%
pkg/nvcdi/lib.go 0 1 0.0%
pkg/nvcdi/options.go 0 6 0.0%
cmd/nvidia-cdi-hook/cudacompat/cudacompat.go 6 14 42.86%
cmd/nvidia-cdi-hook/cudacompat/cuda-elf-header.go 0 12 0.0%
internal/discover/compat_libs.go 0 15 0.0%
pkg/nvcdi/lib-csv.go 32 53 60.38%
Files with Coverage Reduction New Missed Lines %
cmd/nvidia-cdi-hook/cudacompat/cudacompat.go 1 44.6%
cmd/nvidia-cdi-hook/cudacompat/cuda-elf-header.go 1 55.71%
internal/discover/compat_libs.go 1 0.0%
pkg/nvcdi/options.go 1 11.65%
pkg/nvcdi/lib-csv.go 2 71.93%
Totals Coverage Status
Change from base Build 21595673871: -0.01%
Covered Lines: 5727
Relevant Lines: 14512

💛 - Coveralls

@elezar elezar added this to the v1.19.0 milestone Jan 27, 2026
@elezar elezar added the tegra label Jan 27, 2026
@elezar elezar force-pushed the configure-nvgpu-compat branch from 728cbe5 to 9cf3975 Compare January 28, 2026 16:54
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This change allows the container compat root for nvgpu (e.g. Orin) systems
to be specified either as the

nvidia-container-runtime.modes.csv.compat-container-root option in the config.toml
file, or with the --csv.compat-container-root (NVIDIA_CTK_CDI_GENERATE_CSV_COMPAT_CONTAINER_ROOT)
option when generating CDI specifications.

A WithCSVCompatContainerRoot option is also exposed in the nvcdi API.

Note that this option is only relevant when nvgpu devices are detected.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This change adds a --host-cuda-version to enable CUDA forward compat
checks on Orin (nvgpu)-based systems where no meaningful host driver
version is available.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
@elezar elezar force-pushed the configure-nvgpu-compat branch from 9cf3975 to a2807ae Compare February 5, 2026 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants