fix: filter out fake gpu (#4617)

This commit is contained in:
Faisal Amir 2025-02-10 21:03:28 +07:00 committed by GitHub
parent e877871dc6
commit 386d41028a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -34,7 +34,9 @@ export const appService = {
const hardwareInfo = await hardwareExtension?.getHardware()
const gpuSettingInfo: GpuSetting | undefined = {
gpus: hardwareInfo.gpus as GpuSettingInfo[],
gpus: hardwareInfo.gpus.filter(
(gpu) => gpu.total_vram > 0
) as GpuSettingInfo[],
vulkan: isMac ? false : selectedVariants.includes('vulkan'),
cpu: hardwareInfo.cpu,
}