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
fccdf4c6
Unverified
Commit
fccdf4c6
authored
Jan 18, 2024
by
Daniel Hiltgen
Committed by
GitHub
Jan 18, 2024
Browse files
Merge pull request #1987 from xyproto/archlinux
Let gpu.go and gen_linux.sh also find CUDA on Arch Linux
parents
d450fb1d
cbe2adc7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
gpu/gpu.go
gpu/gpu.go
+1
-0
llm/generate/gen_linux.sh
llm/generate/gen_linux.sh
+7
-2
No files found.
gpu/gpu.go
View file @
fccdf4c6
...
@@ -39,6 +39,7 @@ var CudaLinuxGlobs = []string{
...
@@ -39,6 +39,7 @@ var CudaLinuxGlobs = []string{
"/usr/lib/x86_64-linux-gnu/libnvidia-ml.so*"
,
"/usr/lib/x86_64-linux-gnu/libnvidia-ml.so*"
,
"/usr/lib/wsl/lib/libnvidia-ml.so*"
,
"/usr/lib/wsl/lib/libnvidia-ml.so*"
,
"/opt/cuda/lib64/libnvidia-ml.so*"
,
"/opt/cuda/lib64/libnvidia-ml.so*"
,
"/opt/cuda/targets/x86_64-linux/lib/stubs/libnvidia-ml.so*"
,
"/usr/lib*/libnvidia-ml.so*"
,
"/usr/lib*/libnvidia-ml.so*"
,
"/usr/local/lib*/libnvidia-ml.so*"
,
"/usr/local/lib*/libnvidia-ml.so*"
,
"/usr/lib/aarch64-linux-gnu/nvidia/current/libnvidia-ml.so*"
,
"/usr/lib/aarch64-linux-gnu/nvidia/current/libnvidia-ml.so*"
,
...
...
llm/generate/gen_linux.sh
View file @
fccdf4c6
...
@@ -108,11 +108,16 @@ else
...
@@ -108,11 +108,16 @@ else
echo
"Skipping CPU generation step as requested"
echo
"Skipping CPU generation step as requested"
fi
fi
if
[
-z
"
${
CUDA_LIB_DIR
}
"
]
;
the
n
# If needed, look for the default CUDA toolkit locatio
n
# Try the default location in case it exists
if
[
-z
"
${
CUDA_LIB_DIR
}
"
]
&&
[
-d
/usr/local/cuda/lib64
]
;
then
CUDA_LIB_DIR
=
/usr/local/cuda/lib64
CUDA_LIB_DIR
=
/usr/local/cuda/lib64
fi
fi
# If needed, look for CUDA on Arch Linux
if
[
-z
"
${
CUDA_LIB_DIR
}
"
]
&&
[
-d
/opt/cuda/targets/x86_64-linux/lib
]
;
then
CUDA_LIB_DIR
=
/opt/cuda/targets/x86_64-linux/lib
fi
if
[
-d
"
${
CUDA_LIB_DIR
}
"
]
;
then
if
[
-d
"
${
CUDA_LIB_DIR
}
"
]
;
then
echo
"CUDA libraries detected - building dynamic CUDA library"
echo
"CUDA libraries detected - building dynamic CUDA library"
init_vars
init_vars
...
...
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