my jetpack version is 4.6.1
Hello, I am building docker on my jetson nano 2gb, my goal is to build a dlib with CUDA support, dlib is installed without an issue on jetpack(outside of the docker), but the same commands fails during building the docker, here is my dockerfile:
FROM nvcr.io/nvidia/l4t-ml:r32.7.1-py3
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get upgrade -y
RUN apt-get install python3-pip -y
RUN apt-get install sudo --fix-missing
WORKDIR /mylibs
RUN sudo apt-get install libjpeg-dev
RUN wget http://dlib.net/files/dlib-19.21.tar.bz2
RUN tar jxvf dlib-19.21.tar.bz2
WORKDIR /mylibs/dlib-19.21
RUN sudo python3 setup.py install
the ouput I get:
-- Found CUDA: /usr/local/cuda (found suitable version "10.2", minimum required is "7.5")
-- Looking for cuDNN install...
-- Found cuDNN: /usr/lib/aarch64-linux-gnu/libcudnn.so
-- Building a CUDA test project to see if your compiler is compatible with CUDA...
-- Building a cuDNN test project to check if you have the right version of cuDNN installed...
-- *****************************************************************************************************
-- *** Found cuDNN, but we failed to compile the dlib/cmake_utils/test_for_cudnn project.
-- *** You either have an unsupported version of cuDNN or something is wrong with your cudDNN install.
-- *** Since a functional cuDNN is not found DLIB WILL NOT USE CUDA.
-- *** The output of the failed test_for_cudnn build is:
-- ***
and after that:
-- Disabling CUDA support for dlib. DLIB WILL NOT USE CUDA
What is even more interesting is that if I create a docker without last line(RUN sudo python3 setup.py install), enter the bash of created docker and run
RUN sudo python3 setup.py install
dlib will be installed with CUDA support