nixos/tests/acme: explicitly start the targets we wait for
[NixPkgs.git] / pkgs / by-name / ol / ollama / skip-rocm-cp.patch
blob672b3f24b49757161e3598e390d94d344eced3dd
1 diff --git a/llm/generate/gen_linux.sh b/llm/generate/gen_linux.sh
2 index 48d08fd0..e50f7b36 100755
3 --- a/llm/generate/gen_linux.sh
4 +++ b/llm/generate/gen_linux.sh
5 @@ -284,9 +284,6 @@ if [ -z "${OLLAMA_SKIP_ROCM_GENERATE}" -a -d "${ROCM_PATH}" ]; then
6 mkdir -p "${ROCM_DIST_DIR}"
7 for dep in $(ldd "${BUILD_DIR}/bin/ollama_llama_server" | grep "=>" | cut -f2 -d= | cut -f2 -d' ' | grep -v "${GOARCH}/rocm${ROCM_VARIANT}" | grep -e rocm -e amdgpu -e libtinfo -e libnuma -e libelf ); do
8 cp -a "${dep}"* "${ROCM_DIST_DIR}"
9 - if [ $(readlink -f "${dep}") != "${dep}" ] ; then
10 - cp $(readlink -f "${dep}") "${ROCM_DIST_DIR}"
11 - fi
12 done
13 install
14 dist