Skip to content

Conversation

@elezar
Copy link
Member

@elezar elezar commented Dec 3, 2025

This change allows device IDs to be specified when generating CDI specs using
the nvidia-ctk cdi generate CDI. The command now accepts a (repeatable) CLI
flag allowing device IDs to be specified. These can be indices or uuids.

This change allows device IDs to be specified when generating CDI specs using
the nvidia-ctk cdi generate CDI. The command now accepts a (repeatable) CLI
flag allowing device IDs to be specified. These can be indices or uuids.

The devices IDs can also be specified as a comma-separated list using the
NVIDIA_CTK_CDI_GENERATE_DEVICE_IDS environment variable.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
@coveralls
Copy link

Pull Request Test Coverage Report for Build 19896104216

Details

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 37.657%

Totals Coverage Status
Change from base Build 19891238769: 0.0%
Covered Lines: 5179
Relevant Lines: 13753

💛 - Coveralls

for _, tc := range testCases {
// Apply overrides for all test cases:
tc.options.nvidiaCDIHookPath = "/usr/bin/nvidia-cdi-hook"
if tc.options.deviceIDs == nil {
Copy link
Collaborator

Choose a reason for hiding this comment

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

should we add a test case for a bad/dummy/good device id?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants