mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +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) {
|
if !utils.IsInArray(dev.ClassCode, GpuClassCodes) {
|
||||||
continue
|
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)
|
log.Infof("Skip add device %s vendor is unsupport", dev.Addr)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user