快速搭建CUDA与TensorRT开发环境(2023年)
省心省力省时间

不下文件,少敲命令,快速安装TensorRT开发环境!
系统环境配置
- OS:Ubuntu Server 20.04
- CPU指令集:x86_64
执行以下命令添加NVIDIA在线安装源:
DISTRO=ubuntu2004
ARCH=x86_64
wget https://developer.download.nvidia.com/compute/cuda/repos/$DISTRO/$ARCH/cuda-keyring_1.0-1_all.deb
sudo dpkg -i cuda-keyring_1.0-1_all.deb
安装CUDA
目标版本:11.8
sudo apt install --no-install-recommends cuda-11-8
sudo apt install --no-install-recommends nvidia-gds-11-8
安装完成后重新启动
sudo reboot
如果遇到问题,可以参考官方文档:
Installation Guide Linux :: CUDA Toolkit Documentation
The installation instructions for the CUDA Toolkit on Linux.
