-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Add Aliases
in Device spec
#86
Comments
@yeahdongcn aliases were part of the original proposal but removed to simplify the API once we started actively developing this. It would defintely be worth including again. As a matter of interest, are you working in an environment where you need both simultaneously, or would more flexibility in generating the spec be sufficient to cover your use cases? |
I'm still in the stage of migrating from the previous version of For validation training, I prefer to use the index, while for performance tuning, I choose to use UUID (looks more accurate to me). This can be done using |
@yeahdongcn I was just thinking about this and realized that if you generate two specs with
(the latter being the default) When checking the specifications you would apear to have double the number of devices, but since CDI is not intended to restrict or count resources in this way, this should not matter. There will also be duplicate |
@elezar Thank you for letting me know about the new usage. Do you mean after the CDI spec generation, |
Any CDI client (consumer) such as podman, crio, containerd, or the nvidia-container-runtime in CDI mode loads all spec files to determine what valid CDI devices exist. Any of these will then have loaded both of the specs and see both device names as valid. |
@yeahdongcn I have just done a quick test myself, and the duplicate We will update our tooling to make this easier. |
This issue is stale because it has been open 90 days with no activity. This issue will be closed in 30 days unless new comments are made or the stale label is removed. |
This issue was automatically closed due to inactivity. |
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 intospecs.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.The text was updated successfully, but these errors were encountered: