Unverified Commit cdf3a181 authored by frob's avatar frob Committed by GitHub
Browse files

Add CUSTOM_CPU_FLAGS to Dockerfile. (#8284)



* Add CUSTOM_CPU_FLAGS.

* fix golangci-lint error.

---------
Co-authored-by: default avatarRichard Lyons <rick@frob.com.au>
parent 3919f4ba
...@@ -67,6 +67,7 @@ ARG OLLAMA_SKIP_CUDA_GENERATE ...@@ -67,6 +67,7 @@ ARG OLLAMA_SKIP_CUDA_GENERATE
ARG OLLAMA_SKIP_ROCM_GENERATE ARG OLLAMA_SKIP_ROCM_GENERATE
ARG OLLAMA_FAST_BUILD ARG OLLAMA_FAST_BUILD
ARG VERSION ARG VERSION
ARG CUSTOM_CPU_FLAGS
RUN --mount=type=cache,target=/root/.ccache \ RUN --mount=type=cache,target=/root/.ccache \
if grep "^flags" /proc/cpuinfo|grep avx>/dev/null; then \ if grep "^flags" /proc/cpuinfo|grep avx>/dev/null; then \
make -j $(nproc) dist ; \ make -j $(nproc) dist ; \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment