mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2025-06-26 18:18:24 +00:00
Add mofed mode to nvcdi API
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
@@ -94,6 +94,11 @@ func New(opts ...Option) Interface {
|
||||
l.class = "gds"
|
||||
}
|
||||
lib = (*gdslib)(l)
|
||||
case ModeMofed:
|
||||
if l.class == "" {
|
||||
l.class = "mofed"
|
||||
}
|
||||
lib = (*mofedlib)(l)
|
||||
default:
|
||||
// TODO: We would like to return an error here instead of panicking
|
||||
panic("Unknown mode")
|
||||
|
||||
Reference in New Issue
Block a user