From b4efa124793cf7108b34050c116092c0130d9463 Mon Sep 17 00:00:00 2001 From: deadprogram Date: Mon, 9 Oct 2023 19:21:51 +0200 Subject: [PATCH] docker: use default cuda architectures Signed-off-by: deadprogram --- Dockerfile.opencv-gpu-cuda-11 | 1 + Dockerfile.opencv-gpu-cuda-11.2.2 | 1 + Dockerfile.opencv-gpu-cuda-12 | 1 + 3 files changed, 3 insertions(+) diff --git a/Dockerfile.opencv-gpu-cuda-11 b/Dockerfile.opencv-gpu-cuda-11 index 1de13874..d2b519f7 100644 --- a/Dockerfile.opencv-gpu-cuda-11 +++ b/Dockerfile.opencv-gpu-cuda-11 @@ -56,6 +56,7 @@ RUN curl -Lo opencv.zip ${OPENCV_FILE} && \ -D BUILD_opencv_cudacodec=OFF \ -D WITH_CUDNN=ON \ -D OPENCV_DNN_CUDA=ON \ + -D CUDA_ENABLE_DEPRECATED_GENERATION=OFF \ -D OPENCV_GENERATE_PKGCONFIG=ON .. && \ make -j $(nproc --all) && \ make preinstall && make install && ldconfig && \ diff --git a/Dockerfile.opencv-gpu-cuda-11.2.2 b/Dockerfile.opencv-gpu-cuda-11.2.2 index 1ac3400c..6633c629 100644 --- a/Dockerfile.opencv-gpu-cuda-11.2.2 +++ b/Dockerfile.opencv-gpu-cuda-11.2.2 @@ -56,6 +56,7 @@ RUN curl -Lo opencv.zip ${OPENCV_FILE} && \ -D BUILD_opencv_cudacodec=OFF \ -D WITH_CUDNN=ON \ -D OPENCV_DNN_CUDA=ON \ + -D CUDA_ENABLE_DEPRECATED_GENERATION=OFF \ -D OPENCV_GENERATE_PKGCONFIG=ON .. && \ make -j $(nproc --all) && \ make preinstall && make install && ldconfig && \ diff --git a/Dockerfile.opencv-gpu-cuda-12 b/Dockerfile.opencv-gpu-cuda-12 index 26eb3e60..1006c606 100644 --- a/Dockerfile.opencv-gpu-cuda-12 +++ b/Dockerfile.opencv-gpu-cuda-12 @@ -56,6 +56,7 @@ RUN curl -Lo opencv.zip ${OPENCV_FILE} && \ -D BUILD_opencv_cudacodec=OFF \ -D WITH_CUDNN=ON \ -D OPENCV_DNN_CUDA=ON \ + -D CUDA_ENABLE_DEPRECATED_GENERATION=OFF \ -D OPENCV_GENERATE_PKGCONFIG=ON .. && \ make -j $(nproc --all) && \ make preinstall && make install && ldconfig && \