-
Notifications
You must be signed in to change notification settings - Fork 50
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
ROCm 3.0 support #550
Comments
PyTorch was tested for ROCm 3.0 - however, you will need to apply this patch pytorch@3a7ecd3 . |
Tried the following, but it didn't solve the issue:
I didn't clean up the build directory before trying this, currently recompiling from clean state. I'll comment again if the problem persists. |
Same error: $ python -c "import torch"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/seb/.pyenv/versions/3.7.3/lib/python3.7/site-packages/torch/__init__.py", line 81, in <module>
from torch._C import *
ImportError: libhc_am.so.3: cannot open shared object file: No such file or directory |
i have same problem after upgrade ubuntu. i try merge 3a7ecd3, it still. there are libhc_am.so in my rocm (base) ➜ pytorch git:(master) ✗ find /opt/rocm |grep libhc_am |
I had the same problem, too.
After this , everything went fine. |
This was actually enough to resolve the issue. Thanks @se11en for documenting this. |
Although, this did fix the import error, now there's stack smashing going on: import torch
torch.zeros(100).cuda()
*** stack smashing detected ***: <unknown> terminated
[1] 10291 abort (core dumped) ipython Any insights on that? |
I'm on Ubuntu 18.04 and Radeon VII |
Maybe you can try to rebuild pytorch after added extra packages.
My GPU is Radeon VII, too. I don't know whether your problem is related to the OS version, because the kernel of Ubuntu18.04 is Linux 5.0+, which is newer. I cannot pass every test, but my codes run well. So I am OK with the situation. |
Upstream CI was updated to ROCm 3.1.1 and above compilation was ifdef'd based on ROCm version. |
I updated to ROCm 3.0 which broke the PyTorch installation, which I expected. I recompiled the wheel following the instructions in the Wiki which worked, but importing torch in Python throws an ImportError:
Does the master branch in this repo support ROCm 3.0 yet?
For completeness' sake the commands used to compile & install:
The text was updated successfully, but these errors were encountered: