MCPcopy
hub / github.com/containers/toolbox / getCDIFileForNvidia

Function getCDIFileForNvidia

src/cmd/utils.go:360–368  ·  view source on GitHub ↗
(targetUser *user.User)

Source from the content-addressed store, hash-verified

358}
359
360func getCDIFileForNvidia(targetUser *user.User) (string, error) {
361 toolboxRuntimeDirectory, err := utils.GetRuntimeDirectory(targetUser)
362 if err != nil {
363 return "", err
364 }
365
366 cdiFile := filepath.Join(toolboxRuntimeDirectory, "cdi-nvidia.json")
367 return cdiFile, nil
368}
369
370func getCurrentUserHomeDir() string {
371 if currentUser == nil {

Callers 2

runCommandFunction · 0.85
initContainerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…