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
27aa2d4a
Unverified
Commit
27aa2d4a
authored
Feb 05, 2024
by
Daniel Hiltgen
Committed by
GitHub
Feb 05, 2024
Browse files
Merge pull request #1849 from mraiser/main
Accomodate split cuda lib dir
parents
b9f91a0b
c3f95386
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
llm/generate/gen_linux.sh
llm/generate/gen_linux.sh
+7
-0
No files found.
llm/generate/gen_linux.sh
View file @
27aa2d4a
...
@@ -128,6 +128,11 @@ if [ -z "${CUDA_LIB_DIR}" ] && [ -d /opt/cuda/targets/x86_64-linux/lib ]; then
...
@@ -128,6 +128,11 @@ if [ -z "${CUDA_LIB_DIR}" ] && [ -d /opt/cuda/targets/x86_64-linux/lib ]; then
CUDA_LIB_DIR
=
/opt/cuda/targets/x86_64-linux/lib
CUDA_LIB_DIR
=
/opt/cuda/targets/x86_64-linux/lib
fi
fi
# Allow override in case libcudart is in the wrong place
if
[
-z
"
${
CUDART_LIB_DIR
}
"
]
;
then
CUDART_LIB_DIR
=
"
${
CUDA_LIB_DIR
}
"
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
...
@@ -151,6 +156,8 @@ if [ -d "${CUDA_LIB_DIR}" ]; then
...
@@ -151,6 +156,8 @@ if [ -d "${CUDA_LIB_DIR}" ]; then
cp
"
${
CUDA_LIB_DIR
}
/
${
DEP
}
"
"
${
BUILD_DIR
}
/lib/"
cp
"
${
CUDA_LIB_DIR
}
/
${
DEP
}
"
"
${
BUILD_DIR
}
/lib/"
elif
[
-e
"
${
CUDA_LIB_DIR
}
/
${
lib
}
.
${
CUDA_MAJOR
}
"
]
;
then
elif
[
-e
"
${
CUDA_LIB_DIR
}
/
${
lib
}
.
${
CUDA_MAJOR
}
"
]
;
then
cp
"
${
CUDA_LIB_DIR
}
/
${
lib
}
.
${
CUDA_MAJOR
}
"
"
${
BUILD_DIR
}
/lib/"
cp
"
${
CUDA_LIB_DIR
}
/
${
lib
}
.
${
CUDA_MAJOR
}
"
"
${
BUILD_DIR
}
/lib/"
elif
[
-e
"
${
CUDART_LIB_DIR
}
/
${
lib
}
"
]
;
then
cp
-d
${
CUDART_LIB_DIR
}
/
${
lib
}*
"
${
BUILD_DIR
}
/lib/"
else
else
cp
-d
"
${
CUDA_LIB_DIR
}
/
${
lib
}
*"
"
${
BUILD_DIR
}
/lib/"
cp
-d
"
${
CUDA_LIB_DIR
}
/
${
lib
}
*"
"
${
BUILD_DIR
}
/lib/"
fi
fi
...
...
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