onnx / onnx-tensorrt

ONNX-TensorRT: TensorRT backend for ONNX
Apache License 2.0
2.95k stars 544 forks source link

Could not find module 'libcudart.so' (or one of its dependencies). Try using the full path with constructor syntax. #951

Open maxmelichov opened 10 months ago

maxmelichov commented 10 months ago

Description

I'm getting Could not find module 'libcudart.so' (or one of its dependencies). Try using the full path with constructor syntax. when trying to run python setup.py install

TensorRT Version: 8.6.1 GPU Type: GTX 1060/ GTX 1660 Ti Nvidia Driver Version: 546.33 CUDA Version: 11.8 CUDNN Version: 8.6.0.163 Operating System + Version: win10 Python Version (if applicable): 3.10.2 TensorFlow + TF2ONNX Version (if applicable): tensorflow == 2.13.0rc1 PyTorch Version (if applicable): torch 2.1.2+cu118

idaoi commented 7 months ago

在 Windows 10 上,没有 libcudart.so 这个文件,你可以用cudart64_XX.dll 文件,其中 XX 是 CUDA 版本号 On Windows 10, the libcudart.so file is not available. You can use the cudart64_XX.dll file, where XX is the CUDA version number

maxmelichov commented 2 months ago

在 Windows 10 上,没有 libcudart.so 这个文件,你可以用cudart64_XX.dll 文件,其中 XX 是 CUDA 版本号 On Windows 10, the libcudart.so file is not available. You can use the cudart64_XX.dll file, where XX is the CUDA version number

and how do I use cudart64_XX.dll?

maxmelichov commented 2 months ago

I opened the issue... and did something else in time, but now I have returned to it and am still facing the same issue. Can you help me? I have no idea what you said right now

idaoi commented 2 months ago

我打开了这个问题…… 并及时做了其他事情,但现在我又回到了这个问题,仍然面临同样的问题。 你能帮我吗?我不知道你现在说了什么。 我记着我当时是找到”torch“报错的位置,将”torch"源文件中的 “libcudart.so” 替换为 “cudart64_XX.dll”,

maxmelichov commented 2 months ago

damn, is there a more simple way to run the inference trt file on Windows (moved to win11)

idaoi commented 2 months ago

该死,有没有更简单的方法在 Windows 上运行推理 trt 文件(移至 win11) Sorry, I don't know about that. But you can search for "cudart6464" in the CUDA installation folder to find the specific file name, such as "cudart64_102. dll", and then modify the location mentioned in the picture.

VGI0A4WB@M9UZ0E~7 U P%F

%DG5(6GO03Z0JHK0ON6CQ@W

maxmelichov commented 2 months ago

King! I will check that thanks!