Skip to content

Commit a7b04fc

Browse files
committed
use same libs for both ARM and Intel architecture of macOS
1 parent 57fe22f commit a7b04fc

1 file changed

Lines changed: 2 additions & 12 deletions

File tree

Runtime/LLMLib.cs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -677,18 +677,8 @@ public static List<string> PossibleArchitectures(bool gpu = false)
677677
}
678678
else if (Application.platform == RuntimePlatform.OSXEditor || Application.platform == RuntimePlatform.OSXPlayer)
679679
{
680-
string arch = RuntimeInformation.ProcessArchitecture.ToString().ToLower();
681-
if (arch.Contains("arm"))
682-
{
683-
architectures.Add("arm64-acc");
684-
architectures.Add("arm64-no_acc");
685-
}
686-
else
687-
{
688-
if (arch != "x86" && arch != "x64") LLMUnitySetup.LogWarning($"Unknown architecture of processor {arch}! Falling back to x86_64");
689-
architectures.Add("x64-acc");
690-
architectures.Add("x64-no_acc");
691-
}
680+
architectures.Add("acc");
681+
architectures.Add("no_acc");
692682
}
693683
else if (Application.platform == RuntimePlatform.Android)
694684
{

0 commit comments

Comments
 (0)