NVIDIA / NVIDIA/TensorRT

Failed to build TensorRT from source.

Open
#1,422 6 comments 0 reactions 1 assignee View on GitHub

@kevinch-nv is already working on this.

Since Jun 22, 2022.

triaged
Dominant language
C++
Stars
13.4k
Forks
2.4k
Avg merge
5d 3h
Merged PRs (30d)
2

Description

Description

Failed to build TensorRT 21.07 from source.

Environment

TensorRT Version: 21.07
NVIDIA GPU: GeForce RTX 2080 Ti
NVIDIA Driver Version: NVIDIA-SMI 460.84
CUDA Version: 11.3
CUDNN Version: 8.2.1
Operating System: Ubuntu 20.04
Python Version (if applicable): 3.8.10
Tensorflow Version (if applicable): 2.7.0
PyTorch Version (if applicable): 1.10.0
Baremetal or Container (if so, version): N/A

Relevant Files

Steps To Reproduce

Failed to build TensorRT 21.07.

[ 81%] Built target nvcaffeparser_static
....../TensorRT/parsers/onnx/main.cpp: In function ‘int main(int, char**)’:
....../TensorRT/parsers/onnx/main.cpp:102:47: error: ‘onnx2trt_onnx::optimization’ has not been declared
  102 |     optimizationPassNames = ::ONNX_NAMESPACE::optimization::GetAvailablePasses();
      |                                               ^~~~~~~~~~~~
....../TensorRT/parsers/onnx/main.cpp:180:84: error: ‘onnx2trt_onnx::optimization’ has not been declared
  180 |                                                                ? ::ONNX_NAMESPACE::optimization::OptimizeFixed(onnx_model, passes)
      |                                                                                    ^~~~~~~~~~~~
....../TensorRT/parsers/onnx/main.cpp:181:84: error: ‘onnx2trt_onnx::optimization’ has not been declared
  181 |                                                                : ::ONNX_NAMESPACE::optimization::Optimize(onnx_model, passes);
      |                                                                                    ^~~~~~~~~~~~
make[2]: *** [parsers/onnx/CMakeFiles/onnx2trt.dir/build.make:79: parsers/onnx/CMakeFiles/onnx2trt.dir/main.cpp.o] Error 1
make[2]: Leaving directory '....../TensorRT/build'
make[1]: *** [CMakeFiles/Makefile2:1452: parsers/onnx/CMakeFiles/onnx2trt.dir/all] Error 2
make[1]: Leaving directory '....../TensorRT/build'
make: *** [Makefile:159: all] Error 2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.