Jetson Xavier NX 的快速安装 cuda

终端输入如下命令自动安装 cuda-11-4

sudo apt-get update
sudo apt-get install cuda-toolkit-11-4

配置环境变量 gedit ~/.bashrc

export PATH=/usr/local/cuda-11.4/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda-11.4/lib64:$LD_LIBRARY_PATH

source 一下

source ~/.bashrc

验证cuda安装

nvcc -V

你可能感兴趣的:(Jetson,cuda)