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
c2a8ed48
Unverified
Commit
c2a8ed48
authored
Mar 10, 2024
by
Daniel Hiltgen
Committed by
GitHub
Mar 10, 2024
Browse files
Merge pull request #3048 from dhiltgen/harden_rocm_deps
Harden for deps file being empty (or short)
parents
7865a699
3dc1bb6a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
llm/generate/gen_linux.sh
llm/generate/gen_linux.sh
+6
-0
No files found.
llm/generate/gen_linux.sh
View file @
c2a8ed48
...
...
@@ -194,6 +194,12 @@ if [ -d "${ROCM_PATH}" ]; then
for
dep
in
$(
ldd
"
${
BUILD_DIR
}
/lib/libext_server.so"
|
grep
"=>"
|
cut
-f2
-d
=
|
cut
-f2
-d
' '
|
grep
-e
rocm
-e
amdgpu
-e
libtinfo
)
;
do
echo
"
${
dep
}
"
>>
"
${
BUILD_DIR
}
/lib/deps.txt"
done
# bomb out if for some reason we didn't get a few deps
if
[
$(
cat
"
${
BUILD_DIR
}
/lib/deps.txt"
|
wc
-l
)
-lt
8
]
;
then
cat
"
${
BUILD_DIR
}
/lib/deps.txt"
echo
"ERROR: deps file short"
exit
1
fi
compress_libs
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