1. 安装包下载
- TensorRT下载链接
- 根据cuda版本选择,下载tar包
2. 解压
tar -xvf TensorRT-10.8.0.43.Linux.x86_64-gnu.cuda-12.8.tar.gz
3. 安装到本地用户目录
sudo mv TensorRT-10.8.0.43/ /usr/local/
3. 添加到环境变量
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH/usr/local/TensorRT-10.8.0.43/lib
4. 验证
cd /usr/local/TensorRT-10.8.0.43/samples/sampleOnnxMNIST
make
cd /usr/local/TensorRT-10.8.0.43/bin
./sample_onnx_mnist
@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@= ++++
@@@@@@@@
@@@@@@@@= *@@@@@
@@@@@@@@. .. ...****%@@@@@
@@@@@@@@: .%@@
@@@@@@@% -@@@@@@@@@@@@@@@@@
@@@@@@@% -@@*@@@*@@@@@@@@@@
@@@@@@@
@@@@@@@- -@@@@@@
@@@@@@%. *@@@@@
@@@@@@
@@@@@@%---%%@@@@@@@. *@@@@@
@@@@@@@@@@@@@@@@@@@+ *@@@@@
@@@@@@@@@@@@@@@@@@@= *@@@@@
@@@@@@@@@@@@@@@@@@* *@@@@@
@@@@@%+%@@@@@@@@%. .%@@@@@
@@@@@* .******= -@@@@@@@
@@@@@* .
@@@@@* =%@@@@@@@@
@@@@@@%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@