[CMake] Windows package config references missing bin/tensorrt_player.exe (tensorrt_capture_player)
维护者通常 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 内容生成。
描述
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 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
NVIDIA/TensorRT 的其他 Issue
-
Module:Polygraphy
难度 2/5 1-3 小时 新手友好度 77/100
维护者通常 6 天内回复
-
Polygraphy NumPy Top-K sorts unsigned and minimum signed integers incorrectly可能已有人在做 @0z5a 于 16 天前认领。 未关闭Module:Polygraphy
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 6 天内回复
-
Polygraphy INT32 comparison can overflow and falsely pass at zero tolerance可能已有人在做 @0z5a 于 16 天前认领。 未关闭Module:Polygraphy
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 6 天内回复
-
onnx-graphsurgeon: Graph.toposort() hits RecursionError when a graph has a local function and an If/Loop node可能已有人在做 @gabortar 于 39 天前认领。 未关闭Module:GraphSurgeon
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 6 天内回复
-
Polygraphy parse_meta accepts a shape with a missing bracket可能已有人在做 @SashaMIT 于 51 天前认领。 未关闭Module:Polygraphy
难度 2/5 1-3 小时 新手友好度 86/100
维护者通常 6 天内回复
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 91/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 69/100
maplibre/maplibre-native#5072 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 79/100
tenstorrent/tt-umd#4017 ·
维护者通常 3 天内回复
-
difficulty:easy func:gui prio:low type:bug
难度 2/5 1-3 小时 新手友好度 72/100
NatronGitHub/Natron#1538 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
hyprwm/hyprsunset#103 · 1 条评论 ·