[CMake] Windows package config references missing bin/tensorrt_player.exe (tensorrt_capture_player)

未关闭
#4,851 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 6 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
68/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
cmake, cpp
领域
build-system

调研方向

首先检查 cmake/TensorRT-EnterpriseTargets-release.cmake 的第 131-138 行,以及报告中引用的 TensorRT-RTXConfig-release.cmake export。使用提供的最小 CMakeLists.txt 和 find_package 命令重现该失败;当 Windows 软件包配置不再引用缺失的 tensorrt_player.exe 且 configure 成功时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

Module:OSS Build

Description

The Windows package of TensorRT-Enterprise 11.3.0.99 ships a CMake package config that imports a file the package does
not contain. find_package fails on an unmodified package.

cmake/TensorRT-EnterpriseTargets-release.cmake (lines 131-138) imports TRT::tensorrt_capture_player from
${_IMPORT_PREFIX}/bin/tensorrt_player.exe and adds that file to _cmake_import_check_files_for_*. The package's
bin/ contains trtexec.exe and the nvinfer*/nvonnxparser DLLs, but no tensorrt_player.exe.

  CMake Error at .../cmake/TensorRT-EnterpriseTargets.cmake:167 (message):
    The imported target "TRT::tensorrt_capture_player" references the file
       ".../bin/tensorrt_player.exe"
    but this file does not exist.

The issue was also present in 11.2.1.2. The same issue exists in TensorRT-RTX 1.6.1.120 for Windows:
TensorRT-RTXConfig-release.cmake imports TRTRTX::tensorrt_capture_player from the missing
bin/tensorrt_player.exe. The Linux TensorRT-RTX 1.6.1.120 package ships bin/tensorrt_player and is not affected.

Expected: ship bin/tensorrt_player.exe in the Windows packages, or leave tensorrt_capture_player out of their
exported targets.

Workaround: create an empty bin/tensorrt_player.exe.

Environment

TensorRT Version: TensorRT-Enterprise 11.3.0.99
(TensorRT-Enterprise-11.3.0.99-Windows-amd64-cuda-13.4-Release-external). Same issue in TensorRT-Enterprise 11.2.1.2
and TensorRT-RTX 1.6.1.120 (Windows).

NVIDIA GPU: NVIDIA RTX 3500 Ada Generation Laptop GPU

NVIDIA Driver Version: 596.86

CUDA Version: 13.3 toolkit (13.3.73)

CUDNN Version: N/A

Operating System: Windows 11 Pro 10.0.26200

Python Version (if applicable): N/A

Tensorflow Version (if applicable): N/A

PyTorch Version (if applicable): N/A

Baremetal or Container (if so, version): Baremetal. CMake 4.2.3 and 4.3.1, Ninja, MSVC 14.51.

Relevant Files

Model link: N/A. No model is involved; the problem is in the package's CMake config.

Steps To Reproduce

Commands or scripts:

CMakeLists.txt:

  cmake_minimum_required(VERSION 3.27)
  project(trt_probe LANGUAGES CXX)
  find_package(CUDAToolkit REQUIRED)
  find_package(TensorRT-Enterprise CONFIG REQUIRED)

Configure:

  cmake -S . -B build -G Ninja "-DTensorRT-Enterprise_DIR=<package>/cmake"

The configure fails with the error above, on CMake 4.2.3 and 4.3.1. For TensorRT-RTX, use find_package(TensorRT-RTX CONFIG REQUIRED) and TensorRT-RTX_DIR.

Have you tried the latest release?: Yes, 11.3.0.99.

Can this model run on other frameworks?: N/A

主要语言
C++
星标
13.5k
派生
2.4k
平均合并
6 天 21 小时
30 天内合并 PR
3

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

NVIDIA/TensorRT 的其他 Issue

查看 NVIDIA/TensorRT 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。