Skip to content

Commit abbfe90

Browse files
committed
use same libs for both ARM and Intel architecture of macOS
1 parent ae783ea commit abbfe90

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
@@ -665,18 +665,8 @@ public static List<string> PossibleArchitectures(bool gpu = false)
665665
}
666666
else if (Application.platform == RuntimePlatform.OSXEditor || Application.platform == RuntimePlatform.OSXPlayer)
667667
{
668-
string arch = RuntimeInformation.ProcessArchitecture.ToString().ToLower();
669-
if (arch.Contains("arm"))
670-
{
671-
architectures.Add("arm64-acc");
672-
architectures.Add("arm64-no_acc");
673-
}
674-
else
675-
{
676-
if (arch != "x86" && arch != "x64") LLMUnitySetup.LogWarning($"Unknown architecture of processor {arch}! Falling back to x86_64");
677-
architectures.Add("x64-acc");
678-
architectures.Add("x64-no_acc");
679-
}
668+
architectures.Add("acc");
669+
architectures.Add("no_acc");
680670
}
681671
else if (Application.platform == RuntimePlatform.Android)
682672
{

0 commit comments

Comments
 (0)