You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit aff45dd
Browse filesBrowse the repository at this point in the historyBrowse files
- Added support for the following ONNX operators: `Celu`, `CumSum`, `EyeLike`, `GatherElements`, `GlobalLpPool`, `GreaterOrEqual`, `LessOrEqual`, `LpNormalization`, `LpPool`, `ReverseSequence`, and `SoftmaxCrossEntropyLoss`[details]().
6
+
- Rehauled `Resize` ONNX operator, now fully supporting the following modes:
7
+
- Coordinate Transformation modes: `half_pixel`, `pytorch_half_pixel`, `tf_half_pixel_for_nn`, `asymmetric`, and `align_corners`.
- Added new samples: [engine_refit_onnx_bidaf](https://docs.nvidia.com/deeplearning/tensorrt/sample-support-guide/index.html#engine_refit_onnx_bidaf) builds an engine from ONNX BiDAF model and refits engine with new weights, [efficientdet](samples/python/efficientdet) and [efficientnet](samples/python/efficientnet) samples for demonstrating Object Detection using TensorRT.
20
+
- Added support for Ubuntu20.04 and RedHat/CentOS 8.3.
21
+
- Added Python 3.9 support.
22
+
23
+
### Changed
24
+
- Update Polygraphy to [v0.30.3](tools/Polygraphy/CHANGELOG.md#v0303-2021-06-25).
25
+
- Update ONNX-GraphSurgeon to [v0.3.10](tools/onnx-graphsurgeon/CHANGELOG.md#v0310-2021-05-20).
26
+
- Update Pytorch Quantization toolkit to v2.1.0.
27
+
- Notable TensorRT API updates
28
+
- TensorRT now declares API’s with the `noexcept` keyword. All TensorRT classes that an application inherits from (such as IPluginV2) must guarantee that methods called by TensorRT do not throw uncaught exceptions, or the behavior is undefined.
29
+
- Destructors for classes with `destroy()` methods were previously protected. They are now public, enabling use of smart pointers for these classes. The `destroy()` methods are deprecated.
30
+
- Moved `RefitMap` API from ONNX parser to core TensorRT.
31
+
- Various bugfixes for plugins, samples and ONNX parser.
32
+
- Port demoBERT to tensorflow2 and update UFF samples to leverage nvidia-tensorflow1 container.
33
+
34
+
### Removed
35
+
-`IPlugin` and `IPluginFactory` interfaces were deprecated in TensorRT 6.0 and have been removed in TensorRT 8.0. We recommend that you write new plugins or refactor existing ones to target the `IPluginV2DynamicExt` and `IPluginV2IOExt` interfaces. For more information, refer to [Migrating Plugins From TensorRT 6.x Or 7.x To TensorRT 8.x.x](https://docs.nvidia.com/deeplearning/tensorrt/developer-guide/index.html#migrating-plugins-6x-7x-to-8x).
36
+
- For plugins based on `IPluginV2DynamicExt` and `IPluginV2IOExt`, certain methods with legacy function signatures (derived from `IPluginV2` and `IPluginV2Ext` base classes) which were deprecated and marked for removal in TensorRT 8.0 will no longer be available.
37
+
- Removed `samplePlugin` since it showcased IPluginExt interface, which is no longer supported in TensorRT 8.0.
38
+
- Removed `sampleMovieLens` and `sampleMovieLensMPS`.
39
+
- Removed Dockerfile for Ubuntu 16.04. TensorRT 8.0 debians for Ubuntu 16.04 require python 3.5 while minimum required python version for TensorRT OSS is 3.6.
40
+
- Removed support for PowerPC builds, consistent with TensorRT GA releases.
41
+
42
+
### Notes
43
+
- We had deprecated the Caffe Parser and UFF Parser in TensorRT 7.0. They are still tested and functional in TensorRT 8.0, however, we plan to remove the support in a future release. Ensure you migrate your workflow to use `tf2onnx`, `keras2onnx` or [TensorFlow-TensorRT (TF-TRT)](https://docs.nvidia.com/deeplearning/frameworks/tf-trt-user-guide/index.html).
44
+
- Refer to [TensorRT 8.0.1 GA Release Notes](https://docs.nvidia.com/deeplearning/tensorrt/archives/tensorrt-801/release-notes/tensorrt-8.html#rel_8-0-1) for additional details
Using the JetPack SDK manager, download the host components. Steps:
96
-
1. Download and launch the SDK manager. Login with your developer account.
87
+
3. #### (Optional - for Jetson builds only) Download the JetPack SDK
88
+
1. Download and launch the JetPack SDK manager. Login with your NVIDIA developer account.
97
89
2. Select the platform and target OS (example: Jetson AGX Xavier, `Linux Jetpack 4.4`), and click Continue.
98
90
3. Under `Download & Install Options` change the download folder and select`Download now, Install later`. Agree to the license terms and click Continue.
99
91
4. Move the extracted files into the `<TensorRT-OSS>/docker/jetpack_files` folder.
100
92
101
93
102
94
## Setting Up The Build Environment
103
95
104
-
For native builds, install the [prerequisite](#prerequisites) *System Packages*. Alternatively (recommended for non-Windows builds), install Docker and generate a build container as described below:
96
+
For Linux platforms, we recommend that you generate a docker container forbuilding TensorRT OSS as described below. For native builds, on Windows for example, please install the [prerequisite](#prerequisites) *System Packages*.
105
97
106
98
1. #### Generate the TensorRT-OSS build container.
107
-
The TensorRT-OSS build container can be generated using the Dockerfiles and build script included with TensorRT-OSS. The build container is bundled with packages and environment required for building TensorRT OSS.
99
+
The TensorRT-OSS build container can be generated using the supplied Dockerfiles and build script. The build container is configured for building TensorRT OSS out-of-the-box.
108
100
109
-
**Example: Ubuntu 18.04 on x86-64 with cuda-11.1**
./docker/launch.sh --tag tensorrt-ubuntu-1804 --gpus all
117
+
./docker/launch.sh --tag tensorrt-ubuntu18.04-cuda11.3 --gpus all
130
118
```
131
119
> NOTE:
132
-
1. Use the tag corresponding to the build container.
133
-
2. To run TensorRT/CUDA programs in the build container, install [NVIDIA Container Toolkit](#prerequisites). Docker versions < 19.03 require `nvidia-docker2` and `--runtime=nvidia` flag for docker run commands. On versions >= 19.03, you need the `nvidia-container-toolkit` package and `--gpus all` flag.
134
-
3. sudo password for Ubuntu containers is 'nvidia'.
120
+
1. Use the `--tag` corresponding to build container generated in Step 1.
121
+
2. [NVIDIA Container Toolkit](#prerequisites) is required for GPU access (running TensorRT applications) inside the build container.
122
+
3. `sudo` password for Ubuntu build containers is 'nvidia'.
123
+
4. Specify port number using `--jupyter <port>`for launching Jupyter notebooks.
135
124
136
125
## Building TensorRT-OSS
137
126
* Generate Makefiles or VS project (Windows) and build.
138
127
139
-
**Example: Linux (x86-64) build with default cuda-11.1**
128
+
**Example: Linux (x86-64) build with default cuda-11.3**
140
129
```bash
141
130
cd$TRT_OSSPATH
142
131
mkdir -p build &&cd build
@@ -157,13 +146,6 @@ For native builds, install the [prerequisite](#prerequisites) *System Packages*.
@@ -172,16 +154,15 @@ For native builds, install the [prerequisite](#prerequisites) *System Packages*.
172
154
msbuild ALL_BUILD.vcxproj
173
155
```
174
156
> NOTE:
175
-
1. The default CUDA version used by CMake is 11.1. To override this, for example to 10.2, append `-DCUDA_VERSION=10.2` to the cmake command.
176
-
2. If samples fail to link on CentOS7, create this symbolic link: `ln -s $TRT_OUT_DIR/libnvinfer_plugin.so $TRT_OUT_DIR/libnvinfer_plugin.so.7`
157
+
1. The default CUDA version used by CMake is 11.3.1. To override this, for example to 10.2, append `-DCUDA_VERSION=10.2` to the cmake command.
158
+
2. If samples fail to link on CentOS7, create this symbolic link: `ln -s $TRT_OUT_DIR/libnvinfer_plugin.so $TRT_OUT_DIR/libnvinfer_plugin.so.8`
177
159
* Required CMake build arguments are:
178
160
- `TRT_LIB_DIR`: Path to the TensorRT installation directory containing libraries.
179
161
- `TRT_OUT_DIR`: Output directory where generated build artifacts will be copied.
180
162
* Optional CMake build arguments:
181
163
- `CMAKE_BUILD_TYPE`: Specify if binaries generated are for release or debug (contain debug symbols). Values consists of [`Release`] |`Debug`
182
-
- `CUDA_VERISON`: The version of CUDA to target, for example [`11.1`].
183
-
- `CUDNN_VERSION`: The version of cuDNN to target, for example [`8.0`].
184
-
- `NVCR_SUFFIX`: Optional nvcr/cuda image suffix. Set to "-rc"for CUDA11 RC builds until general availability. Blank by default.
164
+
- `CUDA_VERISON`: The version of CUDA to target, for example [`11.3.1`].
165
+
- `CUDNN_VERSION`: The version of cuDNN to target, for example [`8.2`].
185
166
- `PROTOBUF_VERSION`: The version of Protobuf to use, for example [`3.0.0`]. Note: Changing this will not configure CMake to use a system version of Protobuf, it will configure CMake to download and try building that version.
186
167
- `CMAKE_TOOLCHAIN_FILE`: The path to a toolchain file for cross compilation.
187
168
- `BUILD_PARSERS`: Specify if the parsers should be built, forexample [`ON`] | `OFF`. If turned OFF, CMake will try to find precompiled versions of the parser libraries to usein compiling samples. First in`${TRT_LIB_DIR}`, then on the system. If the build type is Debug, then it will prefer debug builds of the libraries before release versions if available.
@@ -199,13 +180,14 @@ For native builds, install the [prerequisite](#prerequisites) *System Packages*.
0 commit comments