chore: fix engine variant for mac targets (#4626)

This commit is contained in:
Louis 2025-02-11 14:28:08 +07:00 committed by GitHub
parent 931d70fc50
commit ab3b47f134
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -60,8 +60,13 @@ const cudaVersion = (settings?: GpuSetting): '12-0' | '11-7' | undefined => {
export const engineVariant = async (
gpuSetting?: GpuSetting
): Promise<string> => {
const platform = os(gpuSetting)
// There is no need to append the variant extension for mac
if (platform.startsWith('mac')) return platform
let engineVariant = [
os(gpuSetting),
platform,
gpuSetting?.vulkan
? 'vulkan'
: (gpuRunMode(gpuSetting) === 'cuda' && // GPU mode - packaged CUDA variants of avx2 and noavx