-
Notifications
You must be signed in to change notification settings - Fork 399
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 load library libcudnn_ops_infer.so.8. #212
Comments
Thanks, @kadirnar for opening an issue. This doesn't seem like a Can you paste here what is the output of the program if you run |
I solved the problem thank you. |
@kadirnar Could you please post the solution, faving same issue when profiling pytorch model |
|
As I mentioned in my previous comment this doesn't look like an issue with memray but an issue with your environment or the packages you are using. In order for us to check what's going on can you please provide the contents of "train.py" and all the dependencies you are using. |
Dockerfile
requirements
codeimport torch
import torchvision
model = torchvision.models.regnet_x_1_6gf()
model.cuda()
output = model(torch.rand(3, 3, 200, 200).cuda()) |
this code works without memray, it also works with scalene |
Seems that this is because pytorch is doing something weird with their dlopen handles: See also voicepaw/so-vits-svc-fork#364 I think you need to bring this to the pytorch developers as their "workaround" conflicts with dlopen interposition. |
@godlygeek I can confirm that not patching |
Hummm, when
but when loaded via
somehow the RPATH of |
Ah, is not being considered because the Here is a reproducer:
|
This means that RPATHs won't be considered when
|
Is there a workaround? Or should I just wait for PR #525? |
There is a workaround meanwhile we merge PR #525. You need to set the
|
@albertz can you confirm this works for you? |
Thanks, yes, that works. |
@albertz you mentioned here https://news.ycombinator.com/reply?id=39327452&goto=item%3Fid%3D39325983%2339327452 that seems that there are some things that don’t make sense in your experience when you used memray. Could you give us a small reproducer or explain a bit the problem so we can look into it? |
I will add some details in a separate issue: #547 |
Is there an existing issue for this?
Current Behavior
Code:
Error Message:
Expected Behavior
No response
Steps To Reproduce
Code :
Memray Version
1.3.1
Python Version
3.8
Operative System
Linux
Anything else?
No response
The text was updated successfully, but these errors were encountered: