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
7e9a2da0
Unverified
Commit
7e9a2da0
authored
May 15, 2024
by
Daniel Hiltgen
Committed by
GitHub
May 15, 2024
Browse files
Merge pull request #4462 from dhiltgen/opt_out_build
Port cuda/rocm skip build vars to linux
parents
d1692fd3
c48c1d7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
llm/generate/gen_linux.sh
llm/generate/gen_linux.sh
+2
-2
No files found.
llm/generate/gen_linux.sh
View file @
7e9a2da0
...
@@ -156,7 +156,7 @@ if [ -z "${CUDART_LIB_DIR}" ]; then
...
@@ -156,7 +156,7 @@ if [ -z "${CUDART_LIB_DIR}" ]; then
CUDART_LIB_DIR
=
"
${
CUDA_LIB_DIR
}
"
CUDART_LIB_DIR
=
"
${
CUDA_LIB_DIR
}
"
fi
fi
if
[
-d
"
${
CUDA_LIB_DIR
}
"
]
;
then
if
[
-z
"
${
OLLAMA_SKIP_CUDA_GENERATE
}
"
-a
-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
CUDA_MAJOR
=
$(
ls
"
${
CUDA_LIB_DIR
}
"
/libcudart.so.
*
|
head
-1
|
cut
-f3
-d
.
||
true
)
CUDA_MAJOR
=
$(
ls
"
${
CUDA_LIB_DIR
}
"
/libcudart.so.
*
|
head
-1
|
cut
-f3
-d
.
||
true
)
...
@@ -218,7 +218,7 @@ if [ -z "${CLBlast_DIR}" ]; then
...
@@ -218,7 +218,7 @@ if [ -z "${CLBlast_DIR}" ]; then
fi
fi
fi
fi
if
[
-d
"
${
ROCM_PATH
}
"
]
;
then
if
[
-z
"
${
OLLAMA_SKIP_ROCM_GENERATE
}
"
-a
-d
"
${
ROCM_PATH
}
"
]
;
then
echo
"ROCm libraries detected - building dynamic ROCm library"
echo
"ROCm libraries detected - building dynamic ROCm library"
if
[
-f
${
ROCM_PATH
}
/lib/librocblas.so.
*
.
*
.?????
]
;
then
if
[
-f
${
ROCM_PATH
}
/lib/librocblas.so.
*
.
*
.?????
]
;
then
ROCM_VARIANT
=
_v
$(
ls
${
ROCM_PATH
}
/lib/librocblas.so.
*
.
*
.????? |
cut
-f5
-d
.
||
true
)
ROCM_VARIANT
=
_v
$(
ls
${
ROCM_PATH
}
/lib/librocblas.so.
*
.
*
.????? |
cut
-f5
-d
.
||
true
)
...
...
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