We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9203d12 commit c4568c6Copy full SHA for c4568c6
1 file changed
csharp/LlamaLib.cs
@@ -751,10 +751,7 @@ private string GetRuntimeLibraryPath()
751
private string[] GetAvailableArchitectures(bool gpu)
752
{
753
string architecturesString = Marshal.PtrToStringAnsi(Available_Architectures(gpu));
754
- if (string.IsNullOrEmpty(architecturesString))
755
- {
756
- throw new InvalidOperationException("No architectures available for the specified GPU setting.");
757
- }
+ if (string.IsNullOrEmpty(architecturesString)) return new string[0];
758
759
string[] librariesOptions = architecturesString.Split(',');
760
List<string> libraries = new List<string>();
0 commit comments