mirror of
https://github.com/ollama/ollama.git
synced 2025-11-11 09:17:50 +01:00
Bring back v11 until we can better warn users that their driver
is too old.
This reverts commit fa393554b9.
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
package discover
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"log/slog"
|
||||
"os"
|
||||
"regexp"
|
||||
@@ -60,8 +59,6 @@ func cudaVariant(gpuInfo CudaGPUInfo) string {
|
||||
|
||||
// driver 12.0 has problems with the cuda v12 library, so run v11 on those older drivers
|
||||
if gpuInfo.DriverMajor < 12 || (gpuInfo.DriverMajor == 12 && gpuInfo.DriverMinor == 0) {
|
||||
// The detected driver is older than Feb 2023
|
||||
slog.Warn("old CUDA driver detected - please upgrade to a newer driver", "version", fmt.Sprintf("%d.%d", gpuInfo.DriverMajor, gpuInfo.DriverMinor))
|
||||
return "v11"
|
||||
}
|
||||
return "v12"
|
||||
|
||||
Reference in New Issue
Block a user