Skip to content

Commit

Permalink
Use cuda v11 for driver 525 and older (ollama#6620)
Browse files Browse the repository at this point in the history
It looks like driver 525 (aka, cuda driver 12.0) has problems with the cuda v12 library
we compile against, so run v11 on those older drivers if detected.
  • Loading branch information
dhiltgen authored Sep 4, 2024
1 parent 037a4d1 commit f29b167
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gpu/cuda_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func cudaVariant(gpuInfo CudaGPUInfo) string {
}
}

if gpuInfo.computeMajor < 6 || gpuInfo.DriverMajor < 12 {
if gpuInfo.computeMajor < 6 || gpuInfo.DriverMajor < 12 || (gpuInfo.DriverMajor == 12 && gpuInfo.DriverMinor == 0) {
return "v11"
}
return "v12"
Expand Down

0 comments on commit f29b167

Please sign in to comment.