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 (
|
export const engineVariant = async (
|
||||||
gpuSetting?: GpuSetting
|
gpuSetting?: GpuSetting
|
||||||
): Promise<string> => {
|
): 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 = [
|
let engineVariant = [
|
||||||
os(gpuSetting),
|
platform,
|
||||||
gpuSetting?.vulkan
|
gpuSetting?.vulkan
|
||||||
? 'vulkan'
|
? 'vulkan'
|
||||||
: (gpuRunMode(gpuSetting) === 'cuda' && // GPU mode - packaged CUDA variants of avx2 and noavx
|
: (gpuRunMode(gpuSetting) === 'cuda' && // GPU mode - packaged CUDA variants of avx2 and noavx
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user