Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
maxmelichov opened this issue Dec 31, 2023 · 7 comments

Comments

@maxmelichov
Copy link

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
Copy link

idaoi commented Mar 19, 2024

在 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
Copy link
Author

在 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
Copy link
Author

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
Copy link

idaoi commented Sep 8, 2024

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

@maxmelichov
Copy link
Author

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

@idaoi
Copy link

idaoi commented Sep 8, 2024

该死,有没有更简单的方法在 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
Copy link
Author

King!
I will check that thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants