Skip to content

Enable JIT-CDI to inject MIG management capability devices - #1947

Open
henry118 wants to merge 1 commit into
NVIDIA:mainfrom
henry118:jitcdi-migcaps
Open

Enable JIT-CDI to inject MIG management capability devices#1947
henry118 wants to merge 1 commit into
NVIDIA:mainfrom
henry118:jitcdi-migcaps

Conversation

@henry118

@henry118 henry118 commented Jul 21, 2026

Copy link
Copy Markdown
Member

Fixes: #1740

# docker run --rm -it --runtime nvidia -e NVIDIA_VISIBLE_DEVICES=all -e NVIDIA_MIG_CONFIG_DEVICES="all" -e NVIDIA_MIG_MONITOR_DEVICES="all" ubuntu ls -l /dev/nvidia-caps
total 0
cr-------- 1 root root 511, 1 Aug 10 20:02 nvidia-cap1
cr--r--r-- 1 root root 511, 2 Aug 10 20:02 nvidia-cap2

@coveralls

coveralls commented Jul 21, 2026

Copy link
Copy Markdown

Coverage Report for CI Build 31427176524

Coverage increased (+0.2%) to 43.846%

Details

  • Coverage increased (+0.2%) from the base build.
  • Patch coverage: 19 uncovered changes across 4 files (64 of 83 lines covered, 77.11%).
  • No coverage regressions found.

Uncovered Changes

File Changed Covered %
pkg/nvcdi/lib-mig-caps.go 47 36 76.6%
internal/nvcaps/nvcaps.go 4 0 0.0%
internal/modifier/cdi.go 29 26 89.66%
pkg/nvcdi/mode.go 1 0 0.0%
Total (5 files) 83 64 77.11%

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 15347
Covered Lines: 6729
Line Coverage: 43.85%
Coverage Strength: 0.49 hits per line

💛 - Coveralls

Signed-off-by: Henry Wang <henrwang@nvidia.com>
@henry118
henry118 marked this pull request as ready for review August 10, 2026 20:03
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.

[Bug]: Non-privileged MIG_STRATEGY=mixed fails due to missing device-cgroup access for nvidia-cap1/nvidia-cap2 (nvidia-container-toolkit 1.18+ / 1.19.0)

3 participants