@@ -12,7 +12,7 @@ This repository contains the Open Source Software (OSS) components of NVIDIA Ten
1212To build the TensorRT-OSS components, you will first need the following software packages.
1313
1414** 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
1616 - See [ Downloading TensorRT Builds] ( #downloading-tensorrt-builds ) for details
1717
1818** System Packages**
@@ -56,69 +56,55 @@ To build the TensorRT-OSS components, you will first need the following software
5656 git clone -b master https://github.com/nvidia/TensorRT TensorRT
5757 cd TensorRT
5858 git submodule update --init --recursive
59- export TRT_SOURCE=`pwd`
6059 ```
6160 **On Windows: Powershell**
6261 ```powershell
6362 git clone -b master https://github.com/nvidia/TensorRT TensorRT
6463 cd TensorRT
6564 git submodule update --init --recursive
66- $Env:TRT_SOURCE = $(Get-Location)
6765 ```
6866
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
7168
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 ` .
7370
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 ) .
8172
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**
8974
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+ ```
9780
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+ ` ` `
10799
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- ```
115100
1161013. # ### (Optional) JetPack SDK for Jetson builds
117102 Using the JetPack SDK manager, download the host components. Steps:
118103 1. Download and launch the SDK manager. Login with your developer account.
119104 2. Select the platform and target OS (example: Jetson AGX Xavier, ` Linux Jetpack 4.4` ), and click Continue.
120105 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+
122108
123109# # Setting Up The Build Environment
124110
@@ -129,25 +115,25 @@ For native builds, install the [prerequisite](#prerequisites) *System Packages*.
129115
130116 ** Example: Ubuntu 18.04 on x86-64 with cuda-11.1**
131117 ` ` ` 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
133119 ` ` `
134- ** Example: Ubuntu 18.04 on PowerPC with cuda-11.0**
120+ ** Example: Ubuntu 18.04 cross-compile for PowerPC with cuda-11.0**
135121 ` ` ` 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
137123 ` ` `
138124 ** Example: CentOS/RedHat 7 on x86-64 with cuda-11.0**
139125 ` ` ` 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
141127 ` ` `
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 )**
143129 ` ` ` 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
145131 ` ` `
146132
1471332. # ### Launch the TensorRT-OSS build container.
148134 ** Example: Ubuntu 18.04 build container**
149135 ` ` ` 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
151137 ` ` `
152138 > NOTE:
153139 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*.
158144
159145 ** Example: Linux (x86-64) build with default cuda-11.1**
160146 ` ` ` bash
161- cd $TRT_SOURCE
147+ cd $TRT_OSSPATH
162148 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
164150 make -j$( nproc)
165151 ` ` `
166152 ** Example: Native build on Jetson (arm64) with cuda-10.2**
167153 ` ` ` bash
168- cd $TRT_SOURCE
154+ cd $TRT_OSSPATH
169155 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
171157 make -j$( nproc)
172158 ` ` `
173159 ** Example: Ubuntu 18.04 Cross-Compile for Jetson (arm64) with cuda-10.2 (JetPack)**
174160 ` ` ` bash
175- cd $TRT_SOURCE
161+ cd $TRT_OSSPATH
176162 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
178164 make -j$( nproc)
179165 ` ` `
180166 ** Example: Cross-Compile for QNX with cuda-10.2**
181167 ` ` ` bash
182- cd $TRT_SOURCE
168+ cd $TRT_OSSPATH
183169 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
185171 make -j$( nproc)
186172 ` ` `
187173 ** Example: Windows (x86-64) build in Powershell**
188174 ` ` ` powershell
189- cd $Env :TRT_SOURCE
175+ cd $Env :TRT_OSSPATH
190176 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
192178 msbuild ALL_BUILD.vcxproj
193179 ` ` `
194180 > NOTE:
@@ -215,15 +201,6 @@ For native builds, install the [prerequisite](#prerequisites) *System Packages*.
215201 - Multiple SMs: ` -DGPU_ARCHS=" 80 75" `
216202 - ` 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`
217203
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-
227204# References
228205
229206# # TensorRT Resources
@@ -236,5 +213,5 @@ For native builds, install the [prerequisite](#prerequisites) *System Packages*.
236213
237214# # Known Issues
238215
239- # ### TensorRT 7.2.1
216+ # ### TensorRT 7.2.2
240217* None
0 commit comments