Skip to content

[Feature Request] Add Aliases in Device spec #86

Description

@yeahdongcn

I'm using Nvidia Container Toolkit to provision GPU-capable containers for AI training. After I shifted to CDI, I could only use the index of the GPU devices rather than UUID. So I think it would be good if Aliases (or something else) could be introduced into specs.Device. As an end user, then I can specify both index and UUID. From Nvidia Container Toolkit perspective, the user experiences will become more consistent.

@@ -17,6 +17,7 @@ type Spec struct {
 // Device is a "Device" a container runtime can add to a container
 type Device struct {
        Name           string         `json:"name"`
+       Aliases        []string       `json:"aliases"`
        ContainerEdits ContainerEdits `json:"containerEdits"`
 }

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions