From a779e38956d8b9cb71b5090b6108d718198926e6 Mon Sep 17 00:00:00 2001 From: deadprogram Date: Mon, 9 Oct 2023 15:34:26 +0200 Subject: [PATCH] docker: reserve core when building OpenCV with cuda 11.0 to avoid running out of space Signed-off-by: deadprogram --- Dockerfile.opencv-gpu-cuda-11 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile.opencv-gpu-cuda-11 b/Dockerfile.opencv-gpu-cuda-11 index 89bb8a51..54d030ff 100644 --- a/Dockerfile.opencv-gpu-cuda-11 +++ b/Dockerfile.opencv-gpu-cuda-11 @@ -58,7 +58,7 @@ RUN curl -Lo opencv.zip ${OPENCV_FILE} && \ -D OPENCV_DNN_CUDA=ON \ -D CUDA_GENERATION=Auto \ -D OPENCV_GENERATE_PKGCONFIG=ON .. && \ - make -j $(nproc --all) && \ + make -j $(nproc --all --ignore 2) && \ make preinstall && make install && ldconfig && \ cd / && rm -rf opencv*