TensorRT

NVIDIAApache-2.0活跃维护

NVIDIA 官方的高性能深度学习推理 SDK,能把训练好的模型在 NVIDIA GPU 上做极致加速和部署,适合追求低延迟高吞吐的生产推理场景。

NVIDIA® TensorRT™ is an SDK for high-performance deep learning inference on NVIDIA GPUs. This repository contains the open source components of TensorRT.

v11.4发布于 2026-10-09 17:55 UTC13,440star +2 / 7 天2,420fork同步于 2026-11-10 05:27 UTC

怎么上手

由 README 提炼,执行前请确认
pip install tensorrt
硬件要求按 README 说明

README 未说明具体显存要求;构建需 NVIDIA GPU 环境,依赖 CUDA 13.4 或 12.9,可选 cuDNN 8.9,并支持 Jetson Thor 等 aarch64 平台。

需要 CUDA
下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

NVIDIA TensorRT 开源组件仓库,包含插件、ONNX 解析器和示例,用于在 NVIDIA GPU 上做高性能推理

NVIDIA 官方的高性能深度学习推理 SDK,能把训练好的模型在 NVIDIA GPU 上做极致加速和部署,适合追求低延迟高吞吐的生产推理场景。

核心能力

  • 提供 TensorRT 插件与 ONNX 解析器源码
  • 附带演示平台用法与能力的示例应用
  • 支持 Linux x86_64、aarch64 与 Windows 构建
  • 可用 CMake 开关裁剪解析器、插件和示例
  • 提供 pip 预编译 Python 包直接安装

容易踩的坑

构建前需自行从 NVIDIA Developer Zone 下载并解压对应 CUDA 版本的 TensorRT GA 包,容器外构建要设置 TRT_ROOT;TensorRT 11.X 移除了弱类型网络、隐式量化、IPluginV2 和 TREX,旧代码需迁移;Python 3.9 及更早版本的绑定已移除,RHEL/Rocky Linux 的 RPM 包依赖 Python 3.12。

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

5 个版本v11.4
  1. v11.4TensorRT 11.4 Release最新正式版2026-10-09 · 2026-10-09 17:55 UTC

    For more information, see the 11.4 release notes:

    • Parsers
      • Added IRefitterObserver class and IParser::setRefitObserver to better handle refittable weights when parsing.
    • Plugins
      • Added various C++20 updates to plugin source code.
    • Samples
      • Moved samples/common files only relevant to trtexec to samples/trtexecCommon.
  2. v11.3TensorRT 11.3 Release2026-09-22 · 2026-09-22 19:39 UTC
    查看更新说明

    For more information, see the 11.3 release notes:

    General

    • Updated default CUDA version to 13.4

    Demos

    • Removed demoDiffusion.

    Parsers

    • Refactored how external weights are handled in IParserRefitter

    Samples

    • Removed the detectron2 python sample

    Tools

    • Bumped Polygraphy version to v0.53.6
  3. v11.2TensorRT 11.2 Release2026-08-04 · 2026-08-04 20:05 UTC
    查看更新说明

    For more information, see the TensorRT 11.2 Release Notes.

    Samples

    • Added a new python sample sample_plugin_v2_to_v3_migration to showcase how to migrate from IPluginV2 to IPluginV3.

    Plugins

    • Added a new FFTPlugin, a cuFFT-backed plugin for complex-to-complex, real-to-complex, and complex-to-real transforms, to support the ONNX DFT operator.

    Parsers

    • Added IRefitterObserver class for better refitting of ONNX models.
    • Added support for the DFT operator and 5D GridSample operators.
  4. v11.1TensorRT 11.1 Release 2026-06-24 · 2026-06-24 21:27 UTC
    查看更新说明

    For more information, see the TensorRT 11.1 Release Notes

    General

    • Default CUDA version updated to 13.3.
    • Added Ubuntu 26.04 container.
    • Added support for Python 3.14.
    • Added agent skills for various TensorRT workflows.

    Samples

    • Added new sample cute_dsl_plugin.
    • Added a global performance tuner option in trtexec.

    Plugins

    • Added new plugin topkLastDimPlugin.

    Parsers

    • Updated TRT_Attention to support raggedness.
  5. v11.0TensorRT 11.0 Release2026-06-02 · 2026-06-02 22:08 UTC
    查看更新说明

    For more information, see the TensorRT 11.0 Release Notes

    General

    • As a new major version bump, TensorRT 11.0 brings many enhancements for its users. For full information, see the release notes.

    Demos

    • The BERT demo has been removed.

    Samples

    • Migrated samples/python/python_plugin and samples/python/onnx_custom_plugin/plugin to use V3 plugins

    Plugins

    • Added a new Faster Air Top-K plugin
    • Removed deprecated plugins: batchTile, clip, coordConvAC, cropAndResize, gelu, leakyRelu, normalize, singleStepLSTM, specialSlice, split, nms, and proposal

    Parsers

    • Added support for Swish operator
    • Added support for custom operators TRT_Attention, TRT_MoE, and TRT_KVCacheUpdate

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    License Documentation Roadmap

    :mega::mega: Announcement :mega::mega:

    TensorRT 11.X is now released with powerful new capabilities designed to accelerate your AI inference workflows. With this major version bump, TensorRT's API has been streamlined and a few legacy features from 10.X have been removed.

    Below provides migration guides for the following features:

    • Weakly-typed networks and related APIs have been removed, replaced by Strongly Typed Networks.
    • Implicit quantization and related APIs have been removed, replaced by Explicit Quantization
    • IPluginV2 and related APIs have been removed, replaced by IPluginV3
    • TREX tool has been removed, replaced by Nsight Deep Learning Designer
    • Python bindings for Python 3.9 and older versions have been removed. RPM packages for RHEL/Rocky Linux 8 and RHEL/Rocky Linux 9 now depend on Python 3.12.

    TensorRT Open Source Software

    This repository contains the Open Source Software (OSS) components of NVIDIA TensorRT. It includes the sources for TensorRT plugins and ONNX parser, as well as sample applications demonstrating usage and capabilities of the TensorRT platform. These open source software components are a subset of the TensorRT General Availability (GA) release with some extensions and bug-fixes.

    • For step-by-step walkthroughs of the TensorRT import paths (ONNX, Torch-TensorRT, HuggingFace/Optimum, Network Definition API) with examples and tooling tips, see the Import Workflows Guide.
    • For the per-model support matrix across import paths (LLM, encoder-NLP, vision, audio, diffusion, multimodal), see Supported Models.
    • For code contributions to TensorRT-OSS, please see our Contribution Guide and Coding Guidelines.
    • For a summary of new additions and updates shipped with TensorRT-OSS releases, please refer to the Changelog.
    • For business inquiries, please contact [email protected]
    • For press and other inquiries, please contact Hector Marinez at [email protected]

    Need enterprise support? NVIDIA global support is available for TensorRT with the NVIDIA AI Enterprise software suite. Check out NVIDIA LaunchPad for free access to a set of hands-on labs with TensorRT hosted on NVIDIA infrastructure.

    Join the TensorRT and Triton community and stay current on the latest product updates, bug fixes, content, best practices, and more.

    Agentic Coding Skills

    Various skills related to TensorRT usage and benchmarking are available here. For installation, refer to the instructions of your preferred coding agent.

    Prebuilt TensorRT Python Package

    We provide the TensorRT Python package for an easy installation.
    To install:

    pip install tensorrt
    

    You can skip the Build section to enjoy TensorRT with Python.

    Build

    Prerequisites

    To build the TensorRT-OSS components, you will first need the following software packages.

    TensorRT GA build

    • TensorRT v11.4.0.106
      • Available from direct download links listed below

    System Packages

    Optional Packages

    Downloading TensorRT Build

    1. Download TensorRT OSS

      git clone -b main https://github.com/nvidia/TensorRT TensorRT
      cd TensorRT
      git submodule update --init --recursive
      
    2. (Optional - if not using TensorRT container) Specify the TensorRT GA release build path

      If using the TensorRT OSS build container, TensorRT libraries are preinstalled under /usr/lib/x86_64-linux-gnu and you may skip this step.

      Else download and extract the TensorRT GA build from NVIDIA Developer Zone with the direct links below:

      Example: Ubuntu 22.04 on x86-64 with cuda-13.4

      cd ~/Downloads
      tar --zstd -xvf TensorRT-Enterprise-11.4.0.106-Linux-x86_64-cuda-13.4-Release-external.tar.zst
      export TRT_LIBPATH=`pwd`/TensorRT-11.4.0.106/lib
      

      Example: Windows on x86-64 with cuda-12.9

      Expand-Archive -Path TensorRT-Enterprise-11.4.0.106-Windows-amd64-cuda-12.9-Release-external.zip
      $env:TRT_LIBPATH="$pwd\TensorRT-11.4.0.106\lib"
      

    Setting Up The Build Environment

    For Linux platforms, we recommend that you generate a docker container for building TensorRT OSS as described below. For native builds, please install the prerequisite System Packages.

    1. Generate the TensorRT-OSS build container.

      Example: Ubuntu 24.04 on x86-64 with cuda-13.4 (default)

      ./docker/build.sh --file docker/ubuntu-24.04.Dockerfile --tag tensorrt-ubuntu24.04-cuda13.4
      

      Example: Rockylinux8 on x86-64 with cuda-13.4

      ./docker/build.sh --file docker/rockylinux8.Dockerfile --tag tensorrt-rockylinux8-cuda13.4
      

      Example: Ubuntu 24.04 cross-compile for Jetson (aarch64) with cuda-13.4 (JetPack SDK)

      ./docker/build.sh --file docker/ubuntu-cross-aarch64.Dockerfile --tag tensorrt-jetpack-cuda13.4
      

      Example: Ubuntu 24.04 on aarch64 with cuda-13.4

      ./docker/build.sh --file docker/ubuntu-24.04-aarch64.Dockerfile --tag tensorrt-aarch64-ubuntu24.04-cuda13.4
      
    2. Launch the TensorRT-OSS build container.

      Example: Ubuntu 24.04 build container

      ./docker/launch.sh --tag tensorrt-ubuntu24.04-cuda13.4 --gpus all
      

      NOTE: 1. Use the --tag corresponding to build container generated in Step 1. 2. NVIDIA Container Toolkit is required for GPU access (running TensorRT applications) inside the build container. 3. sudo password for Ubuntu build containers is 'nvidia'. 4. Specify port number using --jupyter <port> for launching Jupyter notebooks. 5. Write permission to this folder is required as this folder will be mounted inside the docker container for uid:gid of 1000:1000.

    Building TensorRT-OSS

    • Generate Makefiles and build

      Example: Linux (x86-64) build with default cuda-13.4

      cd $TRT_OSSPATH
      mkdir -p build && cd build
      cmake .. -DCMAKE_PREFIX_PATH=$TRT_ROOT \
          -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=`pwd`/out \
          -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=`pwd`/out \
          -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY=`pwd`/out
      make -j$(nproc)
      

      Example: Linux (aarch64) build with default cuda-13.4

      cd $TRT_OSSPATH
      mkdir -p build && cd build
      cmake .. -DCMAKE_PREFIX_PATH=$TRT_ROOT \
          -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=`pwd`/out \
          -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=`pwd`/out \
          -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY=`pwd`/out \
          -DCMAKE_TOOLCHAIN_FILE=$TRT_OSSPATH/cmake/toolchains/cmake_aarch64-native.toolchain
      make -j$(nproc)
      

      Example: Native build on Jetson Thor (aarch64) with cuda-13.4

      cd $TRT_OSSPATH
      mkdir -p build && cd build
      cmake .. -DCMAKE_PREFIX_PATH=$TRT_ROOT \
          -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=`pwd`/out \
          -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=`pwd`/out \
          -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY=`pwd`/out
      CC=/usr/bin/gcc make -j$(nproc)
      

      NOTE: C compiler must be explicitly specified via CC= for native aarch64 builds of protobuf.

      Example: Ubuntu 24.04 Cross-Compile for Jetson Thor (aarch64) with cuda-13.4 (JetPack)

      cd $TRT_OSSPATH
      mkdir -p build && cd build
      cmake .. -DCMAKE_PREFIX_PATH=$TRT_ROOT -DCMAKE_TOOLCHAIN_FILE=$TRT_OSSPATH/cmake/toolchains/cmake_aarch64_cross.toolchain
      make -j$(nproc)
      

      Example: Ubuntu 24.04 Cross-Compile for DriveOS (aarch64) with cuda-13.4

      cd $TRT_OSSPATH
      mkdir -p build && cd build
      cmake .. -DCMAKE_PREFIX_PATH=$TRT_ROOT -DCMAKE_TOOLCHAIN_FILE=$TRT_OSSPATH/cmake/toolchains/cmake_aarch64_cross.toolchain
      make -j$(nproc)
      

      Example: Native builds on Windows (x86) with cuda-13.4

      cd $TRT_OSSPATH
      New-Item -ItemType Directory -Path build
      cd build
      cmake .. -DCMAKE_PREFIX_PATH="$env:TRT_ROOT" `
          -DCMAKE_RUNTIME_OUTPUT_DIRECTORY="$pwd\\out" `
          -DCMAKE_LIBRARY_OUTPUT_DIRECTORY="$pwd\\out" `
          -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY="$pwd\\out"
      msbuild TensorRT.sln /property:Configuration=Release -m:$env:NUMBER_OF_PROCESSORS
      

      NOTE: The default CUDA version used by CMake is 13.4. To override this, for example to 12.9, append -DCUDA_VERSION=12.9 to the cmake command.

    • Required CMake build arguments are:

      • CMAKE_PREFIX_PATH: Path to the TensorRT package root containing the product CMake config.
    • Optional CMake build arguments:

      • CMAKE_RUNTIME_OUTPUT_DIRECTORY, CMAKE_LIBRARY_OUTPUT_DIRECTORY, and CMAKE_ARCHIVE_OUTPUT_DIRECTORY: Native CMake output directories for executables, shared libraries, and archives. Set all three to the same path to collect generated build artifacts in one directory.
      • CMAKE_BUILD_TYPE: Specify if binaries generated are for release or debug (contain debug symbols). Values consists of [Release] | Debug
      • CUDA_VERSION: The version of CUDA to target, for example [12.9.9].
      • CUDNN_VERSION: The version of cuDNN to target, for example [8.9].
      • PROTOBUF_VERSION: The version of Protobuf to use, for example [3.20.1]. 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.
      • CMAKE_TOOLCHAIN_FILE: The path to a toolchain file for cross compilation.
      • BUILD_PARSERS: Specify if the parsers should be built, for example [ON] | OFF. If turned OFF, CMake uses the parser target imported from the TensorRT package config.
      • BUILD_PLUGINS: Specify if the plugins should be built, for example [ON] | OFF. If turned OFF, CMake uses the plugin targets imported from the TensorRT package config.
      • BUILD_SAMPLES: Specify if the samples should be built, for example [ON] | OFF.
      • BUILD_SAFE_SAMPLES: Specify if safety samples should be built, for example [ON] | OFF.
      • TRT_SAFETY_INFERENCE_ONLY: Specify if only build the safety inference components, for example [ON] | OFF. If turned ON, all other components will be turned OFF except BUILD_SAFE_SAMPLES.
      • TRT_BUILD_ENABLE_MULTIDEVICE: Enable the multi-device sample (sampleDistCollective). Use -DTRT_BUILD_ENABLE_MULTIDEVICE=ON to build it; requires NCCL >= v2.19, < v3.0.
      • TRT_BUILD_TESTING : Build gTests for samples. Requires gtest if available; otherwise fetches googletest at configure time.

    Building TensorRT DriveOS Samples

    • Generate Makefiles and build

      Example: Cross-Compile for DOS7 Linux (aarch64)

      cd $TRT_OSSPATH
      mkdir -p build && cd build
      cmake .. -DBUILD_SAMPLES=ON -DBUILD_PLUGINS=OFF -DBUILD_PARSERS=OFF \
          -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=`pwd`/bin_dynamic_cross \
          -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=`pwd`/bin_dynamic_cross \
          -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY=`pwd`/bin_dynamic_cross \
          -DCMAKE_PREFIX_PATH=$TRT_ROOT \
          -DCMAKE_TOOLCHAIN_FILE=$TRT_OSSPATH/cmake/toolchains/cmake_aarch64_cross.toolchain
      make -j$(nproc)
      

      Example: Cross-Compile for DOS6.5 Linux (aarch64)

      cd $TRT_OSSPATH
      mkdir -p build && cd build
      cmake .. -DBUILD_SAMPLES=ON -DBUILD_PLUGINS=OFF -DBUILD_PARSERS=OFF \
          -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=`pwd`/bin_dynamic_cross \
          -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=`pwd`/bin_dynamic_cross \
          -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY=`pwd`/bin_dynamic_cross \
          -DCMAKE_PREFIX_PATH=$TRT_ROOT \
          -DCMAKE_TOOLCHAIN_FILE=$TRT_OSSPATH/cmake/toolchains/cmake_aarch64_cross.toolchain \
          -DCUDA_VERSION=11.4 -DCMAKE_CUDA_ARCHITECTURES=87
      make -j$(nproc)
      

      Example: Native build for DOS6.5 and DOS7 Linux (aarch64)

      cd $TRT_OSSPATH
      mkdir -p build && cd build
      cmake .. -DCMAKE_PREFIX_PATH=$TRT_ROOT \
          -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=`pwd`/out \
          -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=`pwd`/out \
          -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY=`pwd`/out \
          -DCMAKE_TOOLCHAIN_FILE=$TRT_OSSPATH/cmake/toolchains/cmake_aarch64-native.toolchain \
          -DBUILD_SAMPLES=ON -DBUILD_PLUGINS=OFF -DBUILD_PARSERS=OFF
      make -j$(nproc)
      

      Example: Cross-Compile for DOS6.5 QNX (aarch64)

      cd $TRT_OSSPATH
      mkdir -p build && cd build
      export CUDA_VERSION=11.4
      export CUDA=cuda-$CUDA_VERSION
      export CUDA_ROOT=/usr/local/cuda-safe-$CUDA_VERSION
      export QNX_BASE=/drive/toolchains/qnx_toolchain  # Set to your QNX toolchain installation path
      export QNX_HOST=$QNX_BASE/host/linux/x86_64/
      export QNX_TARGET=$QNX_BASE/target/qnx7/
      export PATH=$PATH:$QNX_HOST/usr/bin
      cmake .. -DBUILD_SAMPLES=ON -DBUILD_PLUGINS=OFF -DBUILD_PARSERS=OFF -DBUILD_SAFE_SAMPLES=OFF \
          -DCMAKE_CUDA_COMPILER=$CUDA_ROOT/bin/nvcc \
          -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=`pwd`/bin_dynamic_cross \
          -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=`pwd`/bin_dynamic_cross \
          -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY=`pwd`/bin_dynamic_cross \
          -DCMAKE_PREFIX_PATH=$TRT_ROOT \
          -DCMAKE_TOOLCHAIN_FILE=$TRT_OSSPATH/cmake/toolchains/cmake_qnx.toolchain \
          -DCUDA_VERSION=$CUDA_VERSION -DCMAKE_CUDA_ARCHITECTURES=87
      make -j$(nproc)
      

      NOTE: Set QNX_BASE to your QNX toolchain installation path. If your CUDA version is not the same as in the example, set CUDA_VERSION (for examples that use it in multiple places) or add -DCUDA_VERSION=<version> to the cmake command.

      Example: Cross-Compile for DOS6.5 QNX Safety (aarch64)

      cd $TRT_OSSPATH
      mkdir -p build && cd build
      export CUDA_VERSION=11.4
      export QNX_BASE=/drive/toolchains/qnx_toolchain  # Set to your QNX toolchain installation path
      export QNX_HOST=$QNX_BASE/host/linux/x86_64/
      export QNX_TARGET=$QNX_BASE/target/qnx7/
      export PATH=$PATH:$QNX_HOST/usr/bin
      export CUDA=cuda-$CUDA_VERSION
      export CUDA_ROOT=/usr/local/cuda-safe-$CUDA_VERSION
      cmake .. -DBUILD_SAMPLES=OFF -DBUILD_SAFE_SAMPLES=ON -DBUILD_PLUGINS=OFF -DBUILD_PARSERS=OFF \
          -DTRT_SAFETY_INFERENCE_ONLY=ON \
          -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=`pwd`/bin_dynamic_cross \
          -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=`pwd`/bin_dynamic_cross \
          -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY=`pwd`/bin_dynamic_cross \
          -DCMAKE_PREFIX_PATH=$TRT_ROOT \
          -DCMAKE_TOOLCHAIN_FILE=$TRT_OSSPATH/cmake/toolchains/cmake_qnx_safe.toolchain \
          -DCUDA_VERSION=$CUDA_VERSION -DCMAKE_CUDA_COMPILER=$CUDA_ROOT/bin/nvcc \
          -DCMAKE_CUDA_ARCHITECTURES=87
      make -j$(nproc)
      

      NOTE: Set QNX_BASE to your QNX toolchain installation path. If your CUDA version is not the same as in the example, set CUDA_VERSION (for examples that use it in multiple places) or add -DCUDA_VERSION=<version> to the cmake command.

      Example: Cross-Compile for DOS7 QNX (aarch64)

      cd $TRT_OSSPATH
      mkdir -p build && cd build
      export CUDA_VERSION=13.4
      export CUDA=cuda-$CUDA_VERSION
      export CUDA_ROOT=/usr/local/cuda-safe-$CUDA_VERSION
      export QNX_BASE=/drive/toolchains/qnx_toolchain  # Set to your QNX toolchain installation path
      export QNX_HOST=$QNX_BASE/host/linux/x86_64/
      export QNX_TARGET=$QNX_BASE/target/qnx/
      export PATH=$PATH:$QNX_HOST/usr/bin
      cmake .. -DBUILD_SAMPLES=ON -DBUILD_PLUGINS=OFF -DBUILD_PARSERS=OFF -DBUILD_SAFE_SAMPLES=OFF \
          -DCMAKE_CUDA_COMPILER=$CUDA_ROOT/bin/nvcc \
          -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=`pwd`/bin_dynamic_cross \
          -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=`pwd`/bin_dynamic_cross \
          -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY=`pwd`/bin_dynamic_cross \
          -DCMAKE_PREFIX_PATH=$TRT_ROOT \
          -DCMAKE_TOOLCHAIN_FILE=$TRT_OSSPATH/cmake/toolchains/cmake_qnx.toolchain \
          -DCUDA_VERSION=$CUDA_VERSION -DCMAKE_CUDA_ARCHITECTURES=110
      make -j$(nproc)
      

      NOTE: Set QNX_BASE to your QNX toolchain installation path. If your CUDA version is not the same as in the example, set CUDA_VERSION (for examples that use it in multiple places) or add -DCUDA_VERSION=<version> to the cmake command.

    References

    TensorRT Resources

    Known Issues