Skip to content

Conversation

@elezar
Copy link
Member

@elezar elezar commented Nov 17, 2025

This change allows CDI specs to be generated for multiple
devices when using CSV mode. This can be used in cases where
a Tegra-based system consists of an iGPU and dGPU.

This behavior can be opted out of using the disable-multiple-csv-devices
feature flag. This can be specified by adding the

            --feaure-flags=disable-multiple-csv-devices

command line option to the nvidia-ctk cdi generate command or to the
automatic CDI spec generation by adding

    NVIDIA_CTK_CDI_GENERATE_FEATURE_FLAGS=disable-multiple-csv-devices

to the /etc/nvidia-container-toolkit/nvidia-cdi-refresh.env file.

Copy link
Collaborator

@ArangoGutierrez ArangoGutierrez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just 2 non-blocking nits

@coveralls
Copy link

coveralls commented Dec 3, 2025

Pull Request Test Coverage Report for Build 20024248479

Details

  • 30 of 366 (8.2%) changed or added relevant lines in 9 files are covered.
  • 4 unchanged lines in 3 files lost coverage.
  • Overall coverage decreased (-0.6%) to 37.031%

Changes Missing Coverage Covered Lines Changed/Added Lines %
internal/platform-support/tegra/tegra.go 0 7 0.0%
internal/platform-support/tegra/csv.go 4 12 33.33%
pkg/nvcdi/full-gpu-nvml.go 0 9 0.0%
pkg/nvcdi/common-nvml.go 0 13 0.0%
internal/platform-support/tegra/options.go 0 28 0.0%
internal/platform-support/tegra/filter.go 10 44 22.73%
internal/platform-support/tegra/mount_specs.go 15 63 23.81%
pkg/nvcdi/lib-csv.go 0 189 0.0%
Files with Coverage Reduction New Missed Lines %
internal/platform-support/tegra/tegra.go 1 0.0%
pkg/nvcdi/lib-csv.go 1 0.0%
pkg/nvcdi/full-gpu-nvml.go 2 18.85%
Totals Coverage Status
Change from base Build 20024159196: -0.6%
Covered Lines: 5197
Relevant Lines: 14034

💛 - Coveralls

@elezar
Copy link
Member Author

elezar commented Dec 3, 2025

I have split two of the commits originally included here into their own PRs: #1511 and #1512

ArangoGutierrez
ArangoGutierrez previously approved these changes Dec 4, 2025
Copy link
Collaborator

@ArangoGutierrez ArangoGutierrez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - I'll now proceed to review the spin-off PR's

@elezar elezar force-pushed the dgpu-on-nvgpu branch 2 times, most recently from b416704 to a8d7b65 Compare December 4, 2025 13:25
@ArangoGutierrez ArangoGutierrez self-requested a review December 4, 2025 13:46
@ArangoGutierrez ArangoGutierrez dismissed their stale review December 4, 2025 13:47

Updated commits

@elezar elezar added the tegra label Dec 8, 2025
This change updates the way we construct a discoverer for tegra systems
to be more flexible in terms of how the SOURCES of the mount specs can
be specified. This allows for subsequent changes like adding (or removing)
mount specs at the point of construction.

Signed-off-by: Evan Lezar <[email protected]>
This change allows CDI specs to be generated for multiple
devices when using CSV mode. This can be used in cases where
a Tegra-based system consists of an iGPU and dGPU.

This behavior can be opted out of using the disable-multiple-csv-devices
feature flag. This can be specified by adding the

	--feaure-flags=disable-multiple-csv-devices

command line option to the nvidia-ctk cdi generate command or to the
automatic CDI spec generation by adding

NVIDIA_CTK_CDI_GENERATE_FEATURE_FLAGS=disable-multiple-csv-devices

to the /etc/nvidia-container-toolkit/nvidia-cdi-refresh.env file.

Signed-off-by: Evan Lezar <[email protected]>
Copy link
Collaborator

@ArangoGutierrez ArangoGutierrez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@elezar elezar merged commit 923fa9b into NVIDIA:main Dec 8, 2025
16 checks passed
@elezar elezar deleted the dgpu-on-nvgpu branch December 8, 2025 13:27
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.

3 participants