@@ -12,7 +12,7 @@ This repository contains the Open Source Software (OSS) components of NVIDIA Ten
12
12
To build the TensorRT-OSS components, you will first need the following software packages.
13
13
14
14
** TensorRT GA build**
15
- * [ TensorRT] ( https://developer.nvidia.com/nvidia-tensorrt-download ) v7.2.1
15
+ * [ TensorRT] ( https://developer.nvidia.com/nvidia-tensorrt-download ) v7.2.2
16
16
- See [ Downloading TensorRT Builds] ( #downloading-tensorrt-builds ) for details
17
17
18
18
** System Packages**
@@ -56,69 +56,55 @@ To build the TensorRT-OSS components, you will first need the following software
56
56
git clone -b master https://github.com/nvidia/TensorRT TensorRT
57
57
cd TensorRT
58
58
git submodule update --init --recursive
59
- export TRT_SOURCE=`pwd`
60
59
```
61
60
**On Windows: Powershell**
62
61
```powershell
63
62
git clone -b master https://github.com/nvidia/TensorRT TensorRT
64
63
cd TensorRT
65
64
git submodule update --init --recursive
66
- $Env:TRT_SOURCE = $(Get-Location)
67
65
```
68
66
69
- 2 . #### Download TensorRT GA
70
- To build TensorRT OSS, obtain the corresponding TensorRT GA build from [NVIDIA Developer Zone](https://developer.nvidia.com/nvidia-tensorrt-download).
67
+ 2 . #### Specify the TensorRT Release build
71
68
72
- **Example: Ubuntu 18.04 on x86-64 with cuda-11.1**
69
+ If using NVIDIA build containers, TensorRT is preinstalled under ` /usr/lib/x86_64-linux-gnu ` .
73
70
74
- Download and extract the latest *TensorRT 7.2.1 GA package for Ubuntu 18.04 and CUDA 11.1*
75
- ```bash
76
- cd ~/Downloads
77
- tar -xvzf TensorRT-7.2.1.6.Ubuntu-18.04.x86_64-gnu.cuda-11.1.cudnn8.0.tar.gz
78
- export TRT_RELEASE=`pwd`/TensorRT-7.2.1.6
79
- ```
80
- **Example: Ubuntu 18.04 on PowerPC with cuda-11.0**
71
+ Else download and extract the TensorRT build from [ NVIDIA Developer Zone] ( https://developer.nvidia.com/nvidia-tensorrt-download ) .
81
72
82
- Download and extract the latest *TensorRT 7.2.1 GA package for Ubuntu 18.04 and CUDA 11.0*
83
- ```bash
84
- cd ~/Downloads
85
- tar -xvzf TensorRT-7.2.1.6.Ubuntu-18.04.powerpc64le-gnu.cuda-11.0.cudnn8.0.tar.gz
86
- export TRT_RELEASE=`pwd`/TensorRT-7.2.1.6
87
- ```
88
- **Example: CentOS/RedHat 7 on x86-64 with cuda-11.0**
73
+ ** Example: Ubuntu 18.04 on x86-64 with cuda-11.1**
89
74
90
- Download and extract the *TensorRT 7.2.1 GA for CentOS/RedHat 7 and CUDA 11.0 tar package*
91
- ```bash
92
- cd ~/Downloads
93
- tar -xvzf TensorRT-7.2.1.6.CentOS-7.6.x86_64-gnu.cuda-11.0.cudnn8.0.tar.gz
94
- export TRT_RELEASE=`pwd`/TensorRT-7.2.1.6
95
- ```
96
- **Example: Ubuntu18.04 Cross-Compile for QNX with cuda-10.2**
75
+ ``` bash
76
+ cd ~ /Downloads
77
+ tar -xvzf TensorRT-7.2.2.3.Ubuntu-18.04.x86_64-gnu.cuda-11.1.cudnn8.0.tar.gz
78
+ export TRT_LIBPATH=` pwd` /TensorRT-7.2.2.3
79
+ ```
97
80
98
- Download and extract the *TensorRT 7.2.1 GA for QNX and CUDA 10.2 tar package*
99
- ```bash
100
- cd ~/Downloads
101
- tar -xvzf TensorRT-7.2.1.6.Ubuntu-18.04.aarch64-qnx.cuda-10.2.cudnn7.6.tar.gz
102
- export TRT_RELEASE=`pwd`/TensorRT-7.2.1.6
103
- export QNX_HOST=/<path-to-qnx-toolchain>/host/linux/x86_64
104
- export QNX_TARGET=/<path-to-qnx-toolchain>/target/qnx7
105
- ```
106
- **Example: Windows on x86-64 with cuda-11.0**
81
+ ** Example: Ubuntu18.04 Cross-Compile for QNX with cuda-10.2**
82
+
83
+ ` ` ` bash
84
+ cd ~ /Downloads
85
+ tar -xvzf TensorRT-7.2.2.3.Ubuntu-18.04.aarch64-qnx.cuda-10.2.cudnn7.6.tar.gz
86
+ export TRT_LIBPATH=` pwd` /TensorRT-7.2.2.3
87
+ export QNX_HOST=/< path-to-qnx-toolchain> /host/linux/x86_64
88
+ export QNX_TARGET=/< path-to-qnx-toolchain> /target/qnx7
89
+ ` ` `
90
+
91
+ ** Example: Windows on x86-64 with cuda-11.0**
92
+
93
+ ` ` ` powershell
94
+ cd ~ \D ownloads
95
+ Expand-Archive .\T ensorRT-7.2.2.3.Windows10.x86_64.cuda-11.0.cudnn8.0.zip
96
+ $Env :TRT_LIBPATH = ' $(Get-Location)\TensorRT-7.2.2.3'
97
+ $Env :PATH += ' C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\'
98
+ ` ` `
107
99
108
- Download and extract the *TensorRT 7.2.1 GA for Windows and CUDA 11.0 zip package* and add *msbuild* to *PATH*
109
- ```powershell
110
- cd ~\Downloads
111
- Expand-Archive .\TensorRT-7.2.1.6.Windows10.x86_64.cuda-11.0.cudnn8.0.zip
112
- $Env:TRT_RELEASE = '$(Get-Location)\TensorRT-7.2.1.6'
113
- $Env:PATH += 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\'
114
- ```
115
100
116
101
3. # ### (Optional) JetPack SDK for Jetson builds
117
102
Using the JetPack SDK manager, download the host components. Steps:
118
103
1. Download and launch the SDK manager. Login with your developer account.
119
104
2. Select the platform and target OS (example: Jetson AGX Xavier, ` Linux Jetpack 4.4` ), and click Continue.
120
105
3. Under ` Download & Install Options` change the download folder and select `Download now, Install later` . Agree to the license terms and click Continue.
121
- 4 . Move the extracted files into the ` $TRT_SOURCE/docker/jetpack_files ` folder.
106
+ 4. Move the extracted files into the ` < TensorRT-OSS> /docker/jetpack_files` folder.
107
+
122
108
123
109
# # Setting Up The Build Environment
124
110
@@ -129,25 +115,25 @@ For native builds, install the [prerequisite](#prerequisites) *System Packages*.
129
115
130
116
** Example: Ubuntu 18.04 on x86-64 with cuda-11.1**
131
117
` ` ` bash
132
- ./docker/build.sh --file docker/ubuntu. Dockerfile --tag tensorrt-ubuntu --os 18.04 --cuda 11.1
118
+ ./docker/build.sh --file docker/ubuntu-18.04. Dockerfile --tag tensorrt-ubuntu-1804 --cuda 11.1
133
119
` ` `
134
- ** Example: Ubuntu 18.04 on PowerPC with cuda-11.0**
120
+ ** Example: Ubuntu 18.04 cross-compile for PowerPC with cuda-11.0**
135
121
` ` ` bash
136
- ./docker/build.sh --file docker/ubuntu-cross-ppc64le.Dockerfile --tag tensorrt-ubuntu-ppc --os 18.04 -- cuda 11.0
122
+ ./docker/build.sh --file docker/ubuntu-cross-ppc64le.Dockerfile --tag tensorrt-ubuntu-ppc --cuda 11.0
137
123
` ` `
138
124
** Example: CentOS/RedHat 7 on x86-64 with cuda-11.0**
139
125
` ` ` bash
140
- ./docker/build.sh --file docker/centos.Dockerfile --tag tensorrt-centos --os 7 --cuda 11.0
126
+ ./docker/build.sh --file docker/centos-7 .Dockerfile --tag tensorrt-centos --cuda 11.0
141
127
` ` `
142
- ** Example: Ubuntu 18.04 Cross-Compile for Jetson (arm64) with cuda-10.2 (JetPack)**
128
+ ** Example: Ubuntu 18.04 cross-compile for Jetson (arm64) with cuda-10.2 (JetPack SDK )**
143
129
` ` ` bash
144
- ./docker/build.sh --file docker/ubuntu-cross-aarch64.Dockerfile --tag tensorrt-cross-jetpack --os 18.04 -- cuda 10.2
130
+ ./docker/build.sh --file docker/ubuntu-cross-aarch64.Dockerfile --tag tensorrt-cross-jetpack --cuda 10.2
145
131
` ` `
146
132
147
133
2. # ### Launch the TensorRT-OSS build container.
148
134
** Example: Ubuntu 18.04 build container**
149
135
` ` ` bash
150
- ./docker/launch.sh --tag tensorrt-ubuntu --gpus all --release $TRT_RELEASE --source $TRT_SOURCE
136
+ ./docker/launch.sh --tag tensorrt-ubuntu-1804 --gpus all
151
137
` ` `
152
138
> NOTE:
153
139
1. Use the tag corresponding to the build container you generated in
@@ -158,37 +144,37 @@ For native builds, install the [prerequisite](#prerequisites) *System Packages*.
158
144
159
145
** Example: Linux (x86-64) build with default cuda-11.1**
160
146
` ` ` bash
161
- cd $TRT_SOURCE
147
+ cd $TRT_OSSPATH
162
148
mkdir -p build && cd build
163
- cmake .. -DTRT_LIB_DIR=$TRT_RELEASE /lib -DTRT_OUT_DIR=` pwd` /out
149
+ cmake .. -DTRT_LIB_DIR=$TRT_LIBPATH -DTRT_OUT_DIR=` pwd` /out
164
150
make -j$( nproc)
165
151
` ` `
166
152
** Example: Native build on Jetson (arm64) with cuda-10.2**
167
153
` ` ` bash
168
- cd $TRT_SOURCE
154
+ cd $TRT_OSSPATH
169
155
mkdir -p build && cd build
170
- cmake .. -DTRT_LIB_DIR=$TRT_RELEASE /lib -DTRT_OUT_DIR=` pwd` /out -DTRT_PLATFORM_ID=aarch64 -DCUDA_VERSION=10.2
156
+ cmake .. -DTRT_LIB_DIR=$TRT_LIBPATH -DTRT_OUT_DIR=` pwd` /out -DTRT_PLATFORM_ID=aarch64 -DCUDA_VERSION=10.2
171
157
make -j$( nproc)
172
158
` ` `
173
159
** Example: Ubuntu 18.04 Cross-Compile for Jetson (arm64) with cuda-10.2 (JetPack)**
174
160
` ` ` bash
175
- cd $TRT_SOURCE
161
+ cd $TRT_OSSPATH
176
162
mkdir -p build && cd build
177
- cmake .. -DTRT_LIB_DIR=$TRT_RELEASE /lib -DTRT_OUT_DIR=` pwd` /out -DCMAKE_TOOLCHAIN_FILE=$TRT_SOURCE /cmake/toolchains/cmake_aarch64.toolchain -DCUDA_VERSION=10.2
163
+ cmake .. -DTRT_LIB_DIR=$TRT_LIBPATH -DTRT_OUT_DIR=` pwd` /out -DCMAKE_TOOLCHAIN_FILE=$TRT_OSSPATH /cmake/toolchains/cmake_aarch64.toolchain -DCUDA_VERSION=10.2
178
164
make -j$( nproc)
179
165
` ` `
180
166
** Example: Cross-Compile for QNX with cuda-10.2**
181
167
` ` ` bash
182
- cd $TRT_SOURCE
168
+ cd $TRT_OSSPATH
183
169
mkdir -p build && cd build
184
- cmake .. -DTRT_LIB_DIR=$TRT_RELEASE /lib -DTRT_OUT_DIR=` pwd` /out -DCMAKE_TOOLCHAIN_FILE=$TRT_SOURCE /cmake/toolchains/cmake_qnx.toolchain -DCUDA_VERSION=10.2
170
+ cmake .. -DTRT_LIB_DIR=$TRT_LIBPATH -DTRT_OUT_DIR=` pwd` /out -DCMAKE_TOOLCHAIN_FILE=$TRT_OSSPATH /cmake/toolchains/cmake_qnx.toolchain -DCUDA_VERSION=10.2
185
171
make -j$( nproc)
186
172
` ` `
187
173
** Example: Windows (x86-64) build in Powershell**
188
174
` ` ` powershell
189
- cd $Env :TRT_SOURCE
175
+ cd $Env :TRT_OSSPATH
190
176
mkdir -p build ; cd build
191
- cmake .. -DTRT_LIB_DIR=$Env :TRT_RELEASE \l ib -DTRT_OUT_DIR=' $(Get-Location)\out' -DCMAKE_TOOLCHAIN_FILE=..\c make\t oolchains\c make_x64_win.toolchain
177
+ cmake .. -DTRT_LIB_DIR=$Env :TRT_LIBPATH -DTRT_OUT_DIR=' $(Get-Location)\out' -DCMAKE_TOOLCHAIN_FILE=..\c make\t oolchains\c make_x64_win.toolchain
192
178
msbuild ALL_BUILD.vcxproj
193
179
` ` `
194
180
> NOTE:
@@ -215,15 +201,6 @@ For native builds, install the [prerequisite](#prerequisites) *System Packages*.
215
201
- Multiple SMs: ` -DGPU_ARCHS=" 80 75" `
216
202
- ` TRT_PLATFORM_ID` : Bare-metal build (unlike containerized cross-compilation) on non Linux/x86 platforms must explicitly specify the target platform. Currently supported options: ` x86_64` (default), ` aarch64`
217
203
218
- # ### (Optional) Install TensorRT python bindings
219
-
220
- * The TensorRT python API bindings must be installed for running TensorRT python applications
221
-
222
- ** Example: install TensorRT wheel for python 3.6**
223
- ` ` ` bash
224
- pip3 install $TRT_RELEASE /python/tensorrt-7.2.1.6-cp36-none-linux_x86_64.whl
225
- ` ` `
226
-
227
204
# References
228
205
229
206
# # TensorRT Resources
@@ -236,5 +213,5 @@ For native builds, install the [prerequisite](#prerequisites) *System Packages*.
236
213
237
214
# # Known Issues
238
215
239
- # ### TensorRT 7.2.1
216
+ # ### TensorRT 7.2.2
240
217
* None
0 commit comments