Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
62976087
Unverified
Commit
62976087
authored
Jan 18, 2024
by
Daniel Hiltgen
Committed by
GitHub
Jan 18, 2024
Browse files
Merge pull request #1999 from lainedfles/termux_android_cpu_only
Fix CPU-only build under Android Termux enviornment.
parents
d017e3d0
344342ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
gpu/gpu.go
gpu/gpu.go
+1
-1
No files found.
gpu/gpu.go
View file @
62976087
...
...
@@ -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
gpuHandles
=
&
handles
{
nil
,
nil
}
var
cudaMgmtName
string
var
cudaMgmtPatterns
[]
string
var
rocmMgmtName
string
...
...
@@ -87,7 +88,6 @@ func initGPUHandles() {
}
slog
.
Info
(
"Detecting GPU type"
)
gpuHandles
=
&
handles
{
nil
,
nil
}
cudaLibPaths
:=
FindGPULibs
(
cudaMgmtName
,
cudaMgmtPatterns
)
if
len
(
cudaLibPaths
)
>
0
{
cuda
:=
LoadCUDAMgmt
(
cudaLibPaths
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment