I recently installed JetPack 4.6 on a NVIDIA Jetson Nano 2GB and have tried to use the MATLAB GPU coder to compile C and C++ code on the Jetson board. However, when connecting to the Jetson, MATLAB does not read a CUDA version at all.
After further investigation, in /usr/local/ there are folders for cuda, cuda-10 and cuda-10.2. However, when I use the command “nvcc --version” to check what version is installed it returns “bash: nvcc: command not found” as well the “nvidia-smi” command yields the same result.
When the command “cat /usr/local/cuda/version.txt” is entered, “CUDA Version 10.2.300” is returned.
I’m not sure what the discrepancy in these results is due to. Please let me know what you think.