Package Details: python-tensorrt 10.3.0.26-1

Git Clone URL: https://aur.archlinux.org/tensorrt.git (read-only, click to copy)
Package Base: tensorrt
Description: A platform for high-performance deep learning inference on NVIDIA hardware (python bindings and tools)
Upstream URL: https://developer.nvidia.com/tensorrt/
Keywords: ai artificial intelligence nvidia
Licenses: Apache-2.0, LicenseRef-custom
Provides: python-onnx-graphsurgeon, python-polygraphy, python-tensorflow-quantization
Submitter: dbermond
Maintainer: dbermond
Last Packager: dbermond
Votes: 19
Popularity: 1.89
First Submitted: 2018-07-29 16:17 (UTC)
Last Updated: 2024-08-10 14:22 (UTC)

Dependencies (18)

Sources (13)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 Next › Last »

acxz commented on 2022-10-05 23:31 (UTC)

@dbermond I am using an AUR helper, paru. For some reason, every time I run paru -Syu, the tensorrt package is also slated for an update, even though it has not received an update. Do you know why tensorrt is being rebuilt? Usually this happens when the version auto updates, but this doesn't seem to be the case for tensorrt. If you could take a look at this, it would be much appreciated.

FuzzyAtish commented on 2022-05-15 16:40 (UTC)

@dbermond Thank you for the prompt response and resolution! Once I reinstalled that package, this one was successfully built

dbermond commented on 2022-05-15 12:05 (UTC)

@FuzzyAtish You need to rebuild python-onnx against protobuf 3.20.x, as protobuf got a soname bump. Remember that you must carefully take care of all the needed AUR rebuilds, otherwise your AUR packages becomes broken as you could see.

FuzzyAtish commented on 2022-05-15 07:52 (UTC) (edited on 2022-05-15 07:58 (UTC) by FuzzyAtish)

Hello, I'm receiving the following error when running makepkg -si

[100%] Linking CXX shared library tensorrt/tensorrt.so
[100%] Built target tensorrt
awk: cmd. line:1: warning: regexp escape sequence `\#' is not a known regexp operator
awk: cmd. line:1: warning: regexp escape sequence `\#' is not a known regexp operator
awk: cmd. line:1: warning: regexp escape sequence `\#' is not a known regexp operator
awk: cmd. line:1: warning: regexp escape sequence `\#' is not a known regexp operator
Generating python 3.10 bindings for TensorRT 8.2.5.1
~/build/tensorrt/src/TensorRT/python/packaging ~/build/tensorrt/src/TensorRT/python/build ~/build/tensorrt/src/TensorRT/python
~/build/tensorrt/src/TensorRT/python/build ~/build/tensorrt/src/TensorRT/python
/usr/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
~/build/tensorrt/src/TensorRT/python
* Getting dependencies for wheel...
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/pep517/in_process/_in_process.py", line 363, in <module>
    main()
  File "/usr/lib/python3.10/site-packages/pep517/in_process/_in_process.py", line 345, in main
    json_out['return_val'] = hook(**hook_input['kwargs'])
  File "/usr/lib/python3.10/site-packages/pep517/in_process/_in_process.py", line 130, in get_requires_for_build_wheel
    return hook(config_settings)
  File "/usr/lib/python3.10/site-packages/setuptools/build_meta.py", line 162, in get_requires_for_build_wheel
    return self._get_build_requires(
  File "/usr/lib/python3.10/site-packages/setuptools/build_meta.py", line 143, in _get_build_requires
    self.run_setup()
  File "/usr/lib/python3.10/site-packages/setuptools/build_meta.py", line 267, in run_setup
    super(_BuildMetaLegacyBackend,
  File "/usr/lib/python3.10/site-packages/setuptools/build_meta.py", line 158, in run_setup
    exec(compile(code, __file__, 'exec'), locals())
  File "setup.py", line 19, in <module>
    import onnx_graphsurgeon
  File "/home/user/build/tensorrt/src/TensorRT/tools/onnx-graphsurgeon/onnx_graphsurgeon/__init__.py", line 1, in <module>
    from onnx_graphsurgeon.exporters.onnx_exporter import export_onnx
  File "/home/user/build/tensorrt/src/TensorRT/tools/onnx-graphsurgeon/onnx_graphsurgeon/exporters/onnx_exporter.py", line 19, in <module>
    import onnx
  File "/usr/lib/python3.10/site-packages/onnx/__init__.py", line 10, in <module>
    from .onnx_cpp2py_export import ONNX_ML
ImportError: libprotobuf.so.30: cannot open shared object file: No such file or directory

ERROR Backend subproccess exited when trying to invoke get_requires_for_build_wheel
==> ERROR: A failure occurred in build().
    Aborting...
warning: could not open directory 'pkg/': Permission denied

When inspecting the current directory, I see that pkg has only 111 rights

$ exa -lh                                                                                                                                                                                                                          0 (0.006s)
Permissions Size User Date Modified Name
.rw-r--r--   532 user 15 May 09:10  010-tensorrt-use-local-protobuf-sources.patch
.rw-r--r--  2.2k user 15 May 09:10  020-tensorrt-fix-python.patch
drwxr-xr-x     - user 15 May 10:10  benchmark
drwxr-xr-x     - user 15 May 10:10  cub-nvlabs
drwxr-xr-x     - user 15 May 10:10  onnx
drwxr-xr-x     - user 15 May 10:10  onnx-tensorrt
d--x--x--x     - user 15 May 10:38  pkg
.rw-r--r--  8.8k user 15 May 09:10  PKGBUILD
.rw-r--r--  4.7M user 15 May 09:32  protobuf-cpp-3.17.3.tar.gz
drwxr-xr-x     - user 15 May 10:10  protobuf-protocolbuffers
drwxr-xr-x     - user 15 May 10:10  pybind11
drwxr-xr-x     - user 15 May 10:38  src
drwxr-xr-x     - user 15 May 10:10  TensorRT
.rw-r--r--  1.2G user 15 May 09:28  TensorRT-8.2.5.1.Linux.x86_64-gnu.cuda-11.4.cudnn8.2.tar.gz
warning: could not open directory 'pkg/': Permission denied

Did anyone else come across this by any chance?

dbermond commented on 2022-02-04 21:16 (UTC)

@Draghi Package updated. Thanks for the notice and for appreciating the package.

Draghi commented on 2022-01-18 15:49 (UTC)

trtexec does not work anymore because of a missing library: [E] [TRT] 6: [libLoader.h::DynamicLibrary::49] Error Code 6: Internal Error (Unable to load library: libnvinfer_builder_resource.so.8.2.1)

Please add it to PKGBUILD at package_tensorrt(): cp -dr --no-preserve='ownership' "TensorRT-${pkgver}/lib"/libnvinfer_builder_resource.so* "${pkgdir}/usr/lib"

Thanks for maintaining this package!

acxz commented on 2021-03-22 13:44 (UTC)

@nxxxx Take a look at the following issue: https://github.com/NVIDIA/TensorRT/issues/1064

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 (UTC)

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 (UTC)

@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 7.2.2.3 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 (UTC) (edited on 2021-02-11 08:52 (UTC) by ilpanich)

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