Skip to content

Commit

Permalink
Merge pull request #20027 from wanyaoqi/automated-cherry-pick-of-#200…
Browse files Browse the repository at this point in the history
…25-upstream-master

Automated cherry pick of #20025: fix(host): fix gpu device vendor check strategy
  • Loading branch information
zexi authored Apr 16, 2024
2 parents fd51558 + f8ac80b commit 9fa7dd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/hostman/isolated_device/gpu.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func getPassthroughGPUs(filteredAddrs []string, enableWhitelist bool, whitelistM
if !utils.IsInArray(dev.ClassCode, GpuClassCodes) {
continue
}
if !utils.IsInStringArray(dev.VendorId, []string{api.NVIDIA_VENDOR_ID, api.AMD_VENDOR_ID}) {
if dev.ClassCode == CLASS_CODE_DISP && !utils.IsInStringArray(dev.VendorId, []string{api.NVIDIA_VENDOR_ID, api.AMD_VENDOR_ID}) {
log.Infof("Skip add device %s vendor is unsupport", dev.Addr)
continue
}
Expand Down

0 comments on commit 9fa7dd8

Please sign in to comment.