To build CUDA with tegra-drive-os-av-image

Note: For the supported CUDA toolkit version, see the Release Notes.

Extract <CUDA-toolkit-version> from CUDA debian: cuda-tegra-repo-ubuntu<UBUNTU_VER>-<CUDA_VER>-local_<CUDA-toolkit-version>-1_arm64.deb

For example: cuda-tegra-repo-ubuntu2004-11-4-local_11.4.24-1_arm64.deb, <CUDA-toolkit-version> is 11.4.24

  1. Export CUDA_ENABLE with <CUDA-toolkit-version>:
    export CUDA_ENABLE=<CUDA-toolkit-version>
  2. Build or rebuild the image:
    bitbake tegra-drive-os-av-image