Skip to content

Commit 712d751

Browse files
committed
devops: merge s390x dockerfile into cpu for now
Signed-off-by: Aaron Teo <[email protected]>
1 parent 2e78ac0 commit 712d751

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.devops/cpu.Dockerfile

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
1-
ARG GCC_VERSION=15.2.0
2-
ARG UBUNTU_VERSION=24.10
1+
ARG UBUNTU_VERSION=22.04
32

4-
FROM gcc:${GCC_VERSION} AS build
3+
FROM ubuntu:$UBUNTU_VERSION AS build
54

65
ARG TARGETARCH
76

87
RUN apt-get update && \
98
apt-get install -y build-essential git cmake libcurl4-openssl-dev
109

10+
RUN if [ "$TARGETARCH" = "s390x" ]; then \
11+
apt-get install -y libopenblas-dev; \
12+
fi
13+
1114
WORKDIR /app
1215

1316
COPY . .
1417

1518
RUN if [ "$TARGETARCH" = "amd64" ] || [ "$TARGETARCH" = "arm64" ]; then \
1619
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DGGML_NATIVE=OFF -DLLAMA_BUILD_TESTS=OFF -DGGML_BACKEND_DL=ON -DGGML_CPU_ALL_VARIANTS=ON; \
17-
elif [ "${TARGETARCH}" = "s390x" ]; then \
18-
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DGGML_NATIVE=OFF -DLLAMA_BUILD_TESTS=OFF -DGGML_BACKEND_DL=ON -DGGML_CPU_ALL_VARIANTS=OFF; \
20+
elif [ "$TARGETARCH" = "s390x" ]; then \
21+
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DGGML_NATIVE=OFF -DLLAMA_BUILD_TESTS=OFF -DGGML_BLAS=ON -DGGML_BLAS_VENDOR=OpenBLAS; \
1922
else \
2023
echo "Unsupported architecture"; \
2124
exit 1; \

0 commit comments

Comments
 (0)