From e967418bd76a2871a37897393ec2c34bd80a1401 Mon Sep 17 00:00:00 2001 From: OldDreamInWind Date: Sun, 31 Jul 2022 23:49:34 +0800 Subject: [PATCH 1/2] use make -j$(nporc) when build ncnn --- docker/CPU/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/docker/CPU/Dockerfile b/docker/CPU/Dockerfile index 1734256c50..a2155a2cf9 100644 --- a/docker/CPU/Dockerfile +++ b/docker/CPU/Dockerfile @@ -68,6 +68,7 @@ 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 . From ede6f9fd993b01df199496fc1e46200d9162ec8c Mon Sep 17 00:00:00 2001 From: OldDreamInWind Date: Thu, 4 Aug 2022 22:24:57 +0800 Subject: [PATCH 2/2] improve cpu dockerfile --- docker/CPU/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker/CPU/Dockerfile b/docker/CPU/Dockerfile index 8997066fb1..a7957fb26c 100644 --- a/docker/CPU/Dockerfile +++ b/docker/CPU/Dockerfile @@ -73,6 +73,8 @@ RUN git clone https://github.com/Tencent/ncnn.git &&\ cd /root/workspace/ncnn/python &&\ pip install -e . +ENV PATH="/root/workspace/ncnn/build/tools/quantize/:${PATH}" + ### install mmdeploy WORKDIR /root/workspace ARG VERSION