Package Details: tensorrt

Git Clone URL: (read-only, click to copy)
Package Base: tensorrt
Description: A platform for high-performance deep learning inference on NVIDIA hardware
Upstream URL:
Keywords: ai artificial intelligence nvidia
Licenses: Apache, custom:NVIDIA-SLA
Submitter: dbermond
Maintainer: dbermond
Last Packager: dbermond
Votes: 6
Popularity: 0.000046
First Submitted: 2018-07-29 16:17
Last Updated: 2021-10-05 21:45

Pinned Comments

dbermond commented on 2020-07-25 19:37

In order to build the package, you need to manually download the TensorRT file from NVIDIA's website (registration required). Place the downloaded file in the PKGBUILD directory and run makepkg.

Download website:

Latest Comments

1 2 Next › Last »

acxz commented on 2021-03-22 13:44

@nxxxx Take a look at the following issue:

tldr: if you want to manually install nvrtc for cuda 11.1 it works with cuda 11.2, but otherwise you need the nvrtc version provided in cuda 11.1, which means you need 11.1 for tensorrt as of now.

Homalozoa commented on 2021-03-19 07:35

tensorrt 7.2.3 is capable for cuda 11.2, could you remove the version constraint of cuda? thanks.

dbermond commented on 2021-02-11 15:17

@ilpanich As you could see, it does not build against cuda 11.2. The closed source components (downloaded from the nvidia website) strictly links to cuda 11.1 libraries and this cannot be changed, since the files are pre-compiled. So, the current source file for tensorrt is not for cuda 11.2, but for 11.1 only. There is nothing to be fixed here, as the package is building fine. It just requires cuda11.1 from the AUR.

ilpanich commented on 2021-02-11 08:51

Despite NVIDIA says that the tarball is valid both for CUDA 11.1 & 11.2 ("TensorRT 7.2.2 for Linux and CUDA 11.1 & 11.2"), it seems not to build correctly with the latter. Will it be fixed?

collect2: error: ld returned 1 exit status make[2]: [parsers/onnx/CMakeFiles/getSupportedAPITest.dir/build.make:125: parsers/onnx/getSupportedAPITest] Error 1 make[1]: [CMakeFiles/Makefile2:1194: parsers/onnx/CMakeFiles/getSupportedAPITest.dir/all] Error 2

dbermond commented on 2020-10-06 18:14

@gsiolas cuda 11.1 broke this package. The nvidia pre-compiled binary files depends on libraries from cuda 11.0. Reverting to use only the pre-compiled files without without building the open source components (as it was made before) will not work because there would still be pre-compiled binary files linking to cuda 11.0 libraries. Workaround is to usa cuda 11.0 if you are willing to, or wait for nvidia to release a tensorrt version that supports cuda 11.1.

gsiolas commented on 2020-10-06 17:03

Hi, I am getting the following error:

/usr/bin/ld: /home/giorgos/Projects/tensorrt/src/TensorRT- undefined reference to `' collect2: error: ld returned 1 exit status

any idea? thx

laudney commented on 2020-07-29 20:15

The package builds perfectly. It was completely amateurish mistake on my part. I had anaconda env activated which messed up all the PATHs. Thank you.

dbermond commented on 2020-07-29 18:47

@laudney I cannot see any reasons that may be causing your build failure. The package is building fine here, either by a normal makepkg command and also by building in a clean chroot with devtools. So everything is fine.

But by hearing you say that it cannot find libraries at the standard /usr/lib path ( and that it cannot find headers at the standard /usr/include path, it looks like that something is really wrong with your system. These paths are standard ones for building on Arch Linux and do not need any additional configuration.

laudney commented on 2020-07-29 09:39

It also can't find cudnn.h out of the box, which exists under /usr/include

laudney commented on 2020-07-29 09:12

@dbermond, Archlinux, makepkg -i

below libraries are not found in the linking stage:

all of these are verified to have been installed on my system