To build CuDNN with tegra-drive-os-av-image#
Note
Before building CuDNN with Yocto, you must install and enable CUDA on the host. For the supported CuDNN toolkit version, see product Release Notes.
Example to extract the CuDNN-toolkit-version version:
nvidia@dl20-0441:/drive$ ls /drive/drive-linux/toolkits/cudnn/cudnn* | sort
/drive/drive-linux/toolkits/cudnn/cudnn-local-tegra-repo-ubuntu2404-9.7.1_1.0-1_arm64.deb
The CuDNN-toolkit-version is 9.7.1
.
Export the CUDNN_ENABLE variable:
export CUDNN_ENABLE=<CuDNN-toolkit-version>
Build or rebuild the image:
bitbake tegra-drive-os-av-image
Note
The WARNING message “Unable to get checksum for cudnn-samples SRC_URI entry cudnnTest--ubuntu<>-aarch64-v.tgz
: file could not be found” is expected when CUDNN_ENABLE is set.