From aab95c2149241ad22920165510638082d4ac21c9 Mon Sep 17 00:00:00 2001 From: Donato Capitella Date: Sun, 30 Nov 2025 08:49:26 +0000 Subject: [PATCH] chore: Remove temporary ROCm tarball and rocWMMA build directory after installation. --- toolboxes/Dockerfile.rocm-7.9-rocwmma | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/toolboxes/Dockerfile.rocm-7.9-rocwmma b/toolboxes/Dockerfile.rocm-7.9-rocwmma index b06cfd2..d101bb4 100644 --- a/toolboxes/Dockerfile.rocm-7.9-rocwmma +++ b/toolboxes/Dockerfile.rocm-7.9-rocwmma @@ -17,9 +17,10 @@ RUN set -euo pipefail; \ | grep -o "therock-dist-linux-${GFX}-${ROCM_MAJOR_VER}\.[0-9]\+\.[0-9]\+rc[0-9]\{8\}\.tar\.gz" \ | sort | tail -n1)"; \ echo "Latest tarball: ${KEY}"; \ - aria2c -x 16 -s 16 -j 16 --file-allocation=none "${BASE}/${KEY}" -o therock.tar.gz -RUN mkdir -p /opt/rocm-7.0 \ - && tar xzf therock.tar.gz -C /opt/rocm-7.0 --strip-components=1 + aria2c -x 16 -s 16 -j 16 --file-allocation=none "${BASE}/${KEY}" -o therock.tar.gz \ + && mkdir -p /opt/rocm-7.0 \ + && tar xzf therock.tar.gz -C /opt/rocm-7.0 --strip-components=1 \ + && rm -f therock.tar.gz ENV ROCM_PATH=/opt/rocm-7.0 \ HIP_PLATFORM=amd \ @@ -54,7 +55,7 @@ RUN printf '%s\n' \ WORKDIR /opt COPY ./build-rocwmma.sh . -RUN chmod +x build-rocwmma.sh && ./build-rocwmma.sh +RUN chmod +x build-rocwmma.sh && ./build-rocwmma.sh && rm -rf rocWMMA WORKDIR /opt/llama.cpp RUN git clone --recursive https://github.com/ggerganov/llama.cpp.git . \