Hi sir,
I use a x86 host computer to compile the c++ CUDA program for the jetson nano. I use l4t-CUDA docker image to compile the code and copy the program into the l4t-base image, then put the docker image into the jetson machine.
Now I’m trying to use torch. I use the library in the pre-built image l4t-pytorch. However, The compiler ask me for the cudnn library like:
//home/gino/libtorch/lib//libtorch_cuda.so: undefined reference to
cudnnDropoutGetStatesSize@libcudnn.so.8' //home/gino/libtorch/lib//libtorch_cuda.so: undefined reference tocudnnSetFilterNdDescriptor@libcudnn.so.8’
/home/gino/tesseract_install/lib//libtesseract.so: undefined reference tolog2@GLIBC_2.29' //home/gino/libtorch/lib//libtorch_cuda.so: undefined reference tocudnnDestroySpatialTransformerDescriptor@libcudnn.so.8’
/home/gino/tesseract_install/lib//libtesseract.so: undefined reference topow@GLIBC_2.29' //home/gino/libtorch/lib//libtorch_cuda.so: undefined reference tocudnnCreateLRNDescriptor@libcudnn.so.8’
//home/gino/libtorch/lib//libtorch_cuda.so: undefined reference tocudnnRestoreDropoutDescriptor@libcudnn.so.8' //home/gino/libtorch/lib//libtorch_cuda.so: undefined reference tocudnnDestroyCTCLossDescriptor@libcudnn.so.8’
//home/gino/libtorch/lib//libtorch_cuda.so: undefined reference tocudnnBatchNormalizationBackwardEx@libcudnn.so.8' //home/gino/libtorch/lib//libtorch_cuda.so: undefined reference tocudnnFindConvolutionBackwardDataAlgorithm@libcudnn.so.8’
//home/gino/libtorch/lib//libtorch_cuda.so: undefined reference to `cudnnFindConvolutionBackwardFilterAlgorithmEx@libcudnn.so.8’
…
The cudnn library seems not available in l4t-CUDA container. I also take a look other container but none of them are like l4t-CUDA image which has whole cuda libraries so I can compile the code. How do I get the l4t version of cudnn library for compiling in the container?