nvidia-container-toolkit/pkg/capabilities.go

26 lines
392 B
Go
Raw Permalink Normal View History

package main
import (
"log"
)
func capabilityToCLI(cap string) string {
switch cap {
case "compute":
return "--compute"
case "compat32":
return "--compat32"
case "graphics":
return "--graphics"
case "utility":
return "--utility"
case "video":
return "--video"
case "display":
return "--display"
default:
log.Panicln("unknown driver capability:", cap)
}
return ""
}