Skip to content

Commit

Permalink
Change to test trying to load library in MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
SignalRT committed Nov 1, 2023
1 parent a8fb0ff commit 748e9f2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions LLama/Native/NativeApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ static NativeApi()

try
{
//llama_empty_call();
llama_empty_call();
}
catch (DllNotFoundException)
{
Expand Down Expand Up @@ -79,7 +79,8 @@ private static IntPtr TryLoadLibrary()

if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
{
return IntPtr.Zero;
return TryLoad("libllama.dylib")
?? IntPtr.Zero;
}
#endif

Expand Down

0 comments on commit 748e9f2

Please sign in to comment.