mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/yunionio/cloudpods.git
synced 2026-09-21 00:24:07 +08:00
Merge pull request #20025 from wanyaoqi/fix/gpu-probe
fix(host): fix gpu device vendor check strategy
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user