Skip to content

Detect vendor before crafting cdiDeviceIDs for --gpus#4728

Open
shiv-tyagi wants to merge 1 commit intocontainerd:mainfrom
shiv-tyagi:detect-vendor-id
Open

Detect vendor before crafting cdiDeviceIDs for --gpus#4728
shiv-tyagi wants to merge 1 commit intocontainerd:mainfrom
shiv-tyagi:detect-vendor-id

Conversation

@shiv-tyagi
Copy link

@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
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
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
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
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 <Shiv.Tyagi@amd.com>
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