Skip to content

Commit

Permalink
Only consider display class for gpus
Browse files Browse the repository at this point in the history
  • Loading branch information
majst01 committed Oct 15, 2024
1 parent b095b39 commit b0371a4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/register/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,11 @@ func (r *Register) detectGPUs() (pci.Devices, error) {
if !strings.Contains(strings.ToLower(device.VendorName), "nvidia") {
continue
}
r.log.Info("add gpu", "vendor", device.VendorName, "device", device.DeviceName, "classname", device.ClassName)

r.log.Info("add gpu", "vendor", device.VendorName, "device", device.DeviceName)
if strings.ToLower(device.ClassName) != "display" {
continue
}
result = append(result, device)
}

Expand Down

0 comments on commit b0371a4

Please sign in to comment.