TensorRT: Cannot build 7.2.2 with CUDA 11.2

Description

Even if the download link explicitly states that v7.2.2 can be compiled with CUDA 11.2, doing so throws a linker error that seems related to closed source libraries built explicitly with CUDA 11.1:

/usr/bin/ld: TensorRT-7.2.2.3/lib/libnvinfer.so: undefined reference to `nvrtcDestroyProgram@libnvrtc.so.11.1'
/usr/bin/ld: TensorRT-7.2.2.3/lib/libnvinfer_plugin.so: undefined reference to `nvrtcAddNameExpression@libnvrtc.so.11.1'
[...]

Is there any way to compile tensorrt with 11.2 or the download link is just misleading?

Environment

TensorRT Version: 7.2.2 NVIDIA GPU: GTX 1060 NVIDIA Driver Version: 460.32.03 CUDA Version: 11.2 CUDNN Version: 8.1.0.77-1 Operating System: Archlinux

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 3
  • Comments: 15

Most upvoted comments

Hello @Maik93 , Yes nvrtc is deliver inside the CUDA toolkit, you can also install it separate, I find the links in: https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-nvrtc-11-1_11.1.105-1_amd64.deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-nvrtc-dev-11-1_11.1.105-1_amd64.deb Could you take a try?

I was able to compile TensorRT with CUDA 11.2 and nvrtc 11.1! Thank you!

Sorry, I’m on Arch and it took me some time to repack those two deb files due to conflicts. I’ve achieved it now and I can confirm that everything works: I was able to compile TensorRT with CUDA 11.2 with just nvrtc 11.1 as additional dependency! Thank you!!


If someone is interested and if you are ok with it, I can submit to the AUR those two deb file converted for Archlinux. In this case, I probably need to know under what licence they are supposed to be shared.