Skip to content

fix: do not create cdi object in runtime#102

Merged
sgopinath1 merged 1 commit intoROCm:mainfrom
shiv-tyagi:remove-cdi-form-runtime
Feb 20, 2026
Merged

fix: do not create cdi object in runtime#102
sgopinath1 merged 1 commit intoROCm:mainfrom
shiv-tyagi:remove-cdi-form-runtime

Conversation

@shiv-tyagi
Copy link
Member

@shiv-tyagi shiv-tyagi commented Feb 19, 2026

This removes cdi object creation on container start.

Motivation

The shim (amd-container-runtime) shouldn't create a CDI object each run. We are not using it anywhere.

In addition, the runtime no longer fails entirely when it lacks access or permissions to the CDI spec directory.

Technical Details

Removed CDI initialization and the cdi field from runtime.New() in runtime.go (no remaining uses of rt.cdi in the codebase).

Test Plan

Tested the runtime binary on a GPU setup to verify behavior is unchanged.

Test Result

The runtime works correctly after these changes.

Submission Checklist

Signed-off-by: Shiv Tyagi <Shiv.Tyagi@amd.com>
@shiv-tyagi shiv-tyagi changed the title fix: do not generate cdi specs from shim fix: do not create cdi object in runtime Feb 20, 2026
@sgopinath1 sgopinath1 merged commit c9aa69c into ROCm:main Feb 20, 2026
3 checks passed
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.

2 participants