chore: fix engine variant for mac targets (#4626)
This commit is contained in:
parent
931d70fc50
commit
ab3b47f134
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user