"tests/vscode:/vscode.git/clone" did not exist on "6f9db8134567ce24def548f4de3cac5a63a92865"
Unverified Commit 62976087 authored by Daniel Hiltgen's avatar Daniel Hiltgen Committed by GitHub
Browse files

Merge pull request #1999 from lainedfles/termux_android_cpu_only

Fix CPU-only build under Android Termux enviornment.
parents d017e3d0 344342ab
...@@ -63,6 +63,7 @@ func initGPUHandles() { ...@@ -63,6 +63,7 @@ func initGPUHandles() {
// TODO - if the ollama build is CPU only, don't do these checks as they're irrelevant and confusing // TODO - if the ollama build is CPU only, don't do these checks as they're irrelevant and confusing
gpuHandles = &handles{nil, nil}
var cudaMgmtName string var cudaMgmtName string
var cudaMgmtPatterns []string var cudaMgmtPatterns []string
var rocmMgmtName string var rocmMgmtName string
...@@ -87,7 +88,6 @@ func initGPUHandles() { ...@@ -87,7 +88,6 @@ func initGPUHandles() {
} }
slog.Info("Detecting GPU type") slog.Info("Detecting GPU type")
gpuHandles = &handles{nil, nil}
cudaLibPaths := FindGPULibs(cudaMgmtName, cudaMgmtPatterns) cudaLibPaths := FindGPULibs(cudaMgmtName, cudaMgmtPatterns)
if len(cudaLibPaths) > 0 { if len(cudaLibPaths) > 0 {
cuda := LoadCUDAMgmt(cudaLibPaths) cuda := LoadCUDAMgmt(cudaLibPaths)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment