mirror of
https://github.com/tcsenpai/ollama.git
synced 2025-06-07 19:55:22 +00:00
Merge pull request #3048 from dhiltgen/harden_rocm_deps
Harden for deps file being empty (or short)
This commit is contained in:
commit
c2a8ed48e7
@ -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
|
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"
|
echo "${dep}" >> "${BUILD_DIR}/lib/deps.txt"
|
||||||
done
|
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
|
compress_libs
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user