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 b0371a4 commit c952b2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/register/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ func (r *Register) detectGPUs() (pci.Devices, error) {
}
r.log.Info("add gpu", "vendor", device.VendorName, "device", device.DeviceName, "classname", device.ClassName)

if strings.ToLower(device.ClassName) != "display" {
if !strings.Contains(strings.ToLower(device.ClassName), "display") {
continue
}
result = append(result, device)
Expand Down

0 comments on commit c952b2b

Please sign in to comment.