Skip to content

Commit

Permalink
improvement(dockerfile): use make -j$(nporc) when build ncnn (#840)
Browse files Browse the repository at this point in the history
* use make -j$(nporc) when build ncnn

* improve cpu dockerfile
  • Loading branch information
OldDreamInWind authored Aug 5, 2022
1 parent 83b11bc commit 4001a06
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docker/CPU/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,13 @@ RUN git clone https://github.com/Tencent/ncnn.git &&\
git submodule update --init &&\
mkdir -p build && cd build &&\
cmake -DNCNN_VULKAN=OFF -DNCNN_SYSTEM_GLSLANG=ON -DNCNN_BUILD_EXAMPLES=ON -DNCNN_PYTHON=ON -DNCNN_BUILD_TOOLS=ON -DNCNN_BUILD_BENCHMARK=ON -DNCNN_BUILD_TESTS=ON .. &&\
make -j$(nproc) &&\
make install &&\
cd /root/workspace/ncnn/python &&\
pip install -e .

ENV PATH="/root/workspace/ncnn/build/tools/quantize/:${PATH}"

### install mmdeploy
WORKDIR /root/workspace
ARG VERSION
Expand Down

0 comments on commit 4001a06

Please sign in to comment.