We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be2fdbc commit f46c96bCopy full SHA for f46c96b
1 file changed
pkg/worker/gpu_info.go
@@ -61,16 +61,18 @@ var resolveVisibleDevices = func() string {
61
return os.Getenv("NVIDIA_VISIBLE_DEVICES")
62
}
63
64
+ var allUUIDs []string
65
for _, entry := range checkpoint.Data.PodDeviceEntries {
66
if entry.PodUID != podUID || entry.ResourceName != "nvidia.com/gpu" {
67
continue
68
69
for _, uuids := range entry.DeviceIDs {
- if len(uuids) > 0 {
70
- return strings.Join(uuids, ",")
71
- }
+ allUUIDs = append(allUUIDs, uuids...)
72
73
+ if len(allUUIDs) > 0 {
74
+ return strings.Join(allUUIDs, ",")
75
+ }
76
77
78
0 commit comments