Skip to content

Commit 73c247d

Browse files
committed
fix: add libomp to clang build
1 parent d401992 commit 73c247d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Dockerfile-cpu

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,18 @@ FROM debian:12-slim AS env-build
33
WORKDIR /srv
44

55
# install build tools and clone and compile llama.cpp
6-
RUN apt-get update && apt-get install -y make git clang-16
6+
RUN apt-get update && apt-get install -y make git clang-16 libomp-16-dev
77

88
RUN git clone https://github.com/ggerganov/llama.cpp.git \
99
&& cd llama.cpp \
1010
&& make -j CC=clang-16 CXX=clang++-16
1111

1212
FROM debian:12-slim AS env-deploy
1313

14+
# copy openmp libraries
15+
ENV LD_LIBRARY_PATH=/usr/local/lib
16+
COPY --from=0 /usr/lib/llvm-16/lib/libomp.so.5 ${LD_LIBRARY_PATH}/libomp.so.5
17+
1418
# copy llama.cpp binaries
1519
COPY --from=0 /srv/llama.cpp/main /usr/local/bin/llama
1620
COPY --from=0 /srv/llama.cpp/server /usr/local/bin/llama-server

0 commit comments

Comments
 (0)