Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Detect vendor before crafting cdiDeviceIDs for --gpus#4728

Merged
AkihiroSuda merged 1 commit intocontainerd:mainfrom
shiv-tyagi:detect-vendor-id
Feb 10, 2026
Merged

Detect vendor before crafting cdiDeviceIDs for --gpus#4728
AkihiroSuda merged 1 commit intocontainerd:mainfrom
shiv-tyagi:detect-vendor-id

Conversation

@shiv-tyagi
Copy link
Contributor

@shiv-tyagi shiv-tyagi commented Jan 30, 2026

This detects the GPU vendor from the CDI spec files while generating devicesIDs corresponding to the values passed to --gpus option. With this, the users can also use AMD gpus if a corresponding CDI spec is present.

Here is a similar PR for ctr containerd/containerd#12839

@shiv-tyagi
Copy link
Contributor Author

shiv-tyagi commented Jan 31, 2026

Can someone help me explain these test failures? These don't seem to be related to the changes in the PR.

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can we do that in a follow up?

Once this is merged, we might organise our docs better and put the latest links here to help users install the AMD CDI specs through amd-ctk.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have updated the documentation in this PR itself. PTAL whenever you get time.

cc @elezar

@AkihiroSuda AkihiroSuda added this to the v2.3.0 milestone Feb 4, 2026
@shiv-tyagi shiv-tyagi force-pushed the detect-vendor-id branch 2 times, most recently from 138f373 to 0e65876 Compare February 4, 2026 09:26
@shiv-tyagi
Copy link
Contributor Author

shiv-tyagi commented Feb 4, 2026

I have added the TestRunGPU and TestRunGPUWithOtherCDIDevices integration tests as well to ensure the behavior is as expected.

@shiv-tyagi shiv-tyagi force-pushed the detect-vendor-id branch 2 times, most recently from a945e3c to 9ad72de Compare February 6, 2026 13:01
This detects the GPU vendor from the CDI spec files while generating devicesIDs corresponding to the values passed to --gpus option. With this, the users can also use AMD gpus if a corresponding CDI spec is present.

Signed-off-by: Shiv Tyagi <[email protected]>
Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

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

Thanks

@AkihiroSuda AkihiroSuda merged commit 364e97f into containerd:main Feb 10, 2026
145 of 156 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants