Shows have cuda but can't do nvcc or nvidia-smi at all, shows command not found but there's cuda in /usr/local/

After I did the startup with jetson orin nano, I can’t use nvcc or nvidia-smi at all, and I do saw the cuda 11.4 in the /usr/local

@rlei1 nvidia-smi isn’t supported on Jetson, but are you able to run /usr/local/cuda-11.4/bin/nvcc --version ?

It’s normal for nvcc not to be in the $PATH by default, but if you want it to be, you can run these commands in your terminal:

export PATH=/usr/local/cuda-11.4/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda-11.4/lib64\
                         ${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}

To make it persistent, add them to your user’s ~/.bashrc and restart the terminal.

Thanks! I have solve the nvcc problem, similar to the information you provided. But there also same problem when I do nvidia-smi, it shows that the command not found, can you help me with that?

OK great - glad you were able to get nvcc working! nvidia-smi isn’t supported on Jetson, so it’s not installed and you won’t be able to find or run it. Instead, it’s recommend to use the tegrastats or jtop utilities.