Skip to content

Commit d67caea

Browse files
authored
docker : add openmp lib (ggml-org#7780)
1 parent 7672ade commit d67caea

7 files changed

+11
-5
lines changed

.devops/full-cuda.Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ FROM ${BASE_CUDA_DEV_CONTAINER} as build
1212
ARG CUDA_DOCKER_ARCH=all
1313

1414
RUN apt-get update && \
15-
apt-get install -y build-essential python3 python3-pip git libcurl4-openssl-dev
15+
apt-get install -y build-essential python3 python3-pip git libcurl4-openssl-dev libgomp1
1616

1717
COPY requirements.txt requirements.txt
1818
COPY requirements requirements

.devops/full.Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ ARG UBUNTU_VERSION=22.04
33
FROM ubuntu:$UBUNTU_VERSION as build
44

55
RUN apt-get update && \
6-
apt-get install -y build-essential python3 python3-pip git libcurl4-openssl-dev
6+
apt-get install -y build-essential python3 python3-pip git libcurl4-openssl-dev libgomp1
77

88
COPY requirements.txt requirements.txt
99
COPY requirements requirements

.devops/main-cuda.Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ RUN make -j$(nproc)
2727

2828
FROM ${BASE_CUDA_RUN_CONTAINER} as runtime
2929

30+
RUN apt-get update && \
31+
apt-get install -y libgomp1
32+
3033
COPY --from=build /app/main /main
3134

3235
ENTRYPOINT [ "/main" ]

.devops/main-vulkan.Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ ARG UBUNTU_VERSION=jammy
33
FROM ubuntu:$UBUNTU_VERSION as build
44

55
# Install build tools
6-
RUN apt update && apt install -y git build-essential cmake wget
6+
RUN apt update && apt install -y git build-essential cmake wget libgomp1
77

88
# Install Vulkan SDK
99
RUN wget -qO - https://packages.lunarg.com/lunarg-signing-key-pub.asc | apt-key add - && \

.devops/main.Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ RUN make -j$(nproc)
1313

1414
FROM ubuntu:$UBUNTU_VERSION as runtime
1515

16+
RUN apt-get update && \
17+
apt-get install -y libgomp1
18+
1619
COPY --from=build /app/main /main
1720

1821
ENV LC_ALL=C.utf8

.devops/server-cuda.Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ RUN make -j$(nproc)
3030
FROM ${BASE_CUDA_RUN_CONTAINER} as runtime
3131

3232
RUN apt-get update && \
33-
apt-get install -y libcurl4-openssl-dev
33+
apt-get install -y libcurl4-openssl-dev libgomp1
3434

3535
COPY --from=build /app/server /server
3636

.devops/server.Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ RUN make -j$(nproc)
1616
FROM ubuntu:$UBUNTU_VERSION as runtime
1717

1818
RUN apt-get update && \
19-
apt-get install -y libcurl4-openssl-dev
19+
apt-get install -y libcurl4-openssl-dev libgomp1
2020

2121
COPY --from=build /app/server /server
2222

0 commit comments

Comments
 (0)