NVIDIA / NVIDIA/TensorRT

Unable to load library: nvinfer_builder_resource.dll failure of TensorRT 8.6 when running assert tensorrt.Builder(tensorrt.Logger()) on GPU NVIDIA GeForce RTX 4060

Open
#3,489 4 comments 0 reactions 1 assignee View on GitHub

@rajeevsrao is already working on this.

Since Nov 28, 2023.

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

Description

Description

I installed TensorRT and CUDNN on Windows for using with yoloV8.
Following nvidia documentation (zip installation): TensorRT installation documentation

But when I ran this code on Python3.11:

import tensorrt
print(tensorrt.__version__)
assert tensorrt.Builder(tensorrt.Logger())

this happens:
image

"nvinfer_builder_resource.dll" this file is located on "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\bin" and this location is added on system environment path.

what can I do for resolve this error.

Environment

TensorRT Version: 8.6.1.6
GPU Type: NVIDIA GeForce RTX 4060
Nvidia Driver Version: 536.40
CUDA Version: 12.1
CUDNN Version: 8.9.0.131
Operating System + Version: Windows 11
Python Version (if applicable): 3.11
TensorFlow Version (if applicable):
PyTorch Version (if applicable): 2.1.1
Baremetal or Container (if container which image + tag):

Steps To Reproduce

It can be help you:

import torch
import tensorrt
print(tensorrt.__version__)
print(torch.version.cuda)
print(torch.backends.cudnn.version())

Output:
8.6.1
12.1
8801

Installation steps for TensorRT:
https://docs.nvidia.com/deeplearning/tensorrt/archives/tensorrt-861/install-guide/index.html#installing-zip

Installation steps for CUDNN:
https://docs.nvidia.com/deeplearning/cudnn/install-guide/index.html#install-windows

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.