From ec59c5bf9eea705b79aa7832308578da44b6c7c9 Mon Sep 17 00:00:00 2001 From: Jason Couture Date: Tue, 30 Jan 2024 12:38:36 -0500 Subject: [PATCH] Fix missing library name prefix for cuda --- LLama/Native/NativeApi.Load.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LLama/Native/NativeApi.Load.cs b/LLama/Native/NativeApi.Load.cs index a5efe1b7..8a02d8a5 100644 --- a/LLama/Native/NativeApi.Load.cs +++ b/LLama/Native/NativeApi.Load.cs @@ -195,12 +195,12 @@ namespace LLama.Native else if (cudaVersion == 11) { Log($"Detected cuda major version {cudaVersion}.", LogLevel.Information); - result.Add($"{prefix}cuda11/{libraryName}{suffix}"); + result.Add($"{prefix}cuda11/{libraryNamePrefix}{libraryName}{suffix}"); } else if (cudaVersion == 12) { Log($"Detected cuda major version {cudaVersion}.", LogLevel.Information); - result.Add($"{prefix}cuda12/{libraryName}{suffix}"); + result.Add($"{prefix}cuda12/{libraryNamePrefix}{libraryName}{suffix}"); } else if (cudaVersion > 0) {