Ubuntu18.04 TensorRT软件安装顺序

系统:

lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 18.04.6 LTS
Release:	18.04
Codename:	bionic

显卡驱动:

nvidia-smi 
Fri May 26 18:42:39 2023       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 515.105.01   Driver Version: 515.105.01   CUDA Version: 11.7     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   36C    P0    N/A /  N/A |     10MiB /  6144MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      1200      G   /usr/lib/xorg/Xorg                  4MiB |
|    0   N/A  N/A      1612      G   /usr/lib/xorg/Xorg                  4MiB |
+-----------------------------------------------------------------------------+

【1】CUDA Toolkit

cuda_11.7.0_515.43.04_linux.run

【2】The NVIDIA CUDA® Deep Neural Network library (cuDNN) 

cudnn-local-repo-ubuntu1804-8.8.0.121_1.0-1_amd64.deb

【3】TensorRT 按如下顺序安装

libcublas-11-1_11.3.0.106-1_amd64.deb
libcublas-dev-11-1_11.3.0.106-1_amd64.deb
cuda-driver-dev-11-0_11.0.221-1_amd64.deb
cuda-cudart-11-0_11.0.221-1_amd64.deb
cuda-cudart-dev-11-0_11.0.221-1_amd64.deb
cuda-nvcc-11-0_11.0.221-1_amd64.deb
nv-tensorrt-local-repo-ubuntu1804-8.6.0-cuda-11.8_1.0-1_amd64.deb

你可能感兴趣的:(ubuntu,linux,运维)