]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
docker : add openmp lib (#7780)
authorslaren <redacted>
Thu, 6 Jun 2024 05:17:21 +0000 (07:17 +0200)
committerGitHub <redacted>
Thu, 6 Jun 2024 05:17:21 +0000 (08:17 +0300)
.devops/full-cuda.Dockerfile
.devops/full.Dockerfile
.devops/main-cuda.Dockerfile
.devops/main-vulkan.Dockerfile
.devops/main.Dockerfile
.devops/server-cuda.Dockerfile
.devops/server.Dockerfile

index c01006efe09adc3199e3e9aed036a2142aa92d6c..f6073f6622b5abffb4dcb1938fc4c3c2361d4204 100644 (file)
@@ -12,7 +12,7 @@ FROM ${BASE_CUDA_DEV_CONTAINER} as build
 ARG CUDA_DOCKER_ARCH=all
 
 RUN apt-get update && \
-    apt-get install -y build-essential python3 python3-pip git libcurl4-openssl-dev
+    apt-get install -y build-essential python3 python3-pip git libcurl4-openssl-dev libgomp1
 
 COPY requirements.txt   requirements.txt
 COPY requirements       requirements
index 6d5943a2f76bd496565e66d44357f73792907001..6f19afa9c37f1cf87c8b25df054a0d7056c18584 100644 (file)
@@ -3,7 +3,7 @@ ARG UBUNTU_VERSION=22.04
 FROM ubuntu:$UBUNTU_VERSION as build
 
 RUN apt-get update && \
-    apt-get install -y build-essential python3 python3-pip git libcurl4-openssl-dev
+    apt-get install -y build-essential python3 python3-pip git libcurl4-openssl-dev libgomp1
 
 COPY requirements.txt   requirements.txt
 COPY requirements       requirements
index 23f4289447c3ae9efba5328b6ba5bcf0453b13a0..5bcd45fe81eb5a3c6ed03a7dfa17b19f50905f63 100644 (file)
@@ -27,6 +27,9 @@ RUN make -j$(nproc)
 
 FROM ${BASE_CUDA_RUN_CONTAINER} as runtime
 
+RUN apt-get update && \
+    apt-get install -y libgomp1
+
 COPY --from=build /app/main /main
 
 ENTRYPOINT [ "/main" ]
index 6c2b2ed5b05d88f33ee3e9914352685473342b94..1bdb528035cd44672f282f6e24076289a45f5048 100644 (file)
@@ -3,7 +3,7 @@ ARG UBUNTU_VERSION=jammy
 FROM ubuntu:$UBUNTU_VERSION as build
 
 # Install build tools
-RUN apt update && apt install -y git build-essential cmake wget
+RUN apt update && apt install -y git build-essential cmake wget libgomp1
 
 # Install Vulkan SDK
 RUN wget -qO - https://packages.lunarg.com/lunarg-signing-key-pub.asc | apt-key add - && \
index 763d75fced3114346cc6073336756a595cd1a05d..98a58a4b9a8019a0c32f543280bf5bba88b70227 100644 (file)
@@ -13,6 +13,9 @@ RUN make -j$(nproc)
 
 FROM ubuntu:$UBUNTU_VERSION as runtime
 
+RUN apt-get update && \
+    apt-get install -y libgomp1
+
 COPY --from=build /app/main /main
 
 ENV LC_ALL=C.utf8
index 7f52281857566ce1401e7c6dce63a56d5e610e20..2532e69e87388095643687513fb56be728acb9be 100644 (file)
@@ -30,7 +30,7 @@ RUN make -j$(nproc)
 FROM ${BASE_CUDA_RUN_CONTAINER} as runtime
 
 RUN apt-get update && \
-    apt-get install -y libcurl4-openssl-dev
+    apt-get install -y libcurl4-openssl-dev libgomp1
 
 COPY --from=build /app/server /server
 
index 0d09d3627dabf2c9f34efddf332338dbf0b1c85e..a41c16b654dab5c7122962943bdd2c47a565816e 100644 (file)
@@ -16,7 +16,7 @@ RUN make -j$(nproc)
 FROM ubuntu:$UBUNTU_VERSION as runtime
 
 RUN apt-get update && \
-    apt-get install -y libcurl4-openssl-dev
+    apt-get install -y libcurl4-openssl-dev libgomp1
 
 COPY --from=build /app/server /server