-
Notifications
You must be signed in to change notification settings - Fork 363
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 fails to install from APT repository in 22.04 #1713
Comments
|
Hi, @erkinalp! Thanks for this bug report. I am glad that users are already testing ROCm in the Ubuntu pre-release version. For more context, see also the other issues about Ubuntu 22.04. As a workaround for Python 3.8 not being part of Ubuntu 22.04, one should soon be able to install Python 3.8 from the commonly-used deadsnakes PPA. However, it does not support Ubuntu 22.04 (Jammy Jellyfish), yet: https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa |
|
So I move my test result to the issue. because of gcc-11, I cannot install rocm-dev rocm-libs in ubuntu-22.04 docker image. And I try to compile ROCm-5.1.1 in the ubuntu-22.04 docker image. boost-1.72.0, rocsolver had some compile errors. |
|
DeadSnakes PPA now has support for Ubuntu 22.04 "Jammy Jellyfish": https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa?field.series_filter=jammy So, to fix the issue of Python 3.8 not being installed, you can install it like so: sudo add-apt-repository --yes ppa:deadsnakes/ppa && \
sudo apt-get update && \
sudo apt install --yes python3.8 |
|
@Bengt Python 3.8 is not supported for the entire lifetime of 22.04. |
|
True. I didn't mean to suggest that installing Python from the PPA should be the permanent solution for end users. I meant it as a workaround for people who want to debug the installation issues, like @xuhuisheng. |
|
Thank you @Bengt . I had built a pytorch-1.11.0-py310.whl with a little patch of breadpad. but then I met a compile error when run mnist. It looks like miopen want to compile naive_conv.cpp for torchvision, And this kernel cannot compile properly on gcc-11. |
|
update: 2022-04-24 I had commetted out a lot of codes to pass the compile step on ubuntu-22.04. Now pytorch-1.11.0 and tensorflow_rocm-2.8.1 run properly with ROCm-5.1.1 on ubuntu-22.04. I think it wont be a problem for ROCm team to support ubuntu-22.04, just wait for them a while. I will stay on ubuntu-20.04 recently. Maybe next year, maybe ROCm-6.0 can add official support for ubuntu-22.04, then I can upgrade to the new LTS. |
|
Hi, @xuhuisheng! Yes, I meant installing Python from the PPA as a workaround, only. Maybe that has aided you in isolating the core issue of GCC-11. Thanks for testing ROCm installation and compilation so thoroughly. I hope your information can help the @qROCmSupport team in their effort to make ROCm work under Ubuntu 22.04. To my eyes, the next, most obvious target would be Ubuntu 22.04.1. This will be the first Linux kernel update which needs to be considered for building the lower-level libraries. However, only supporting the first point release of Ubuntu's LTS versions is not what I would like to consider solid support. |
|
Indeed, as @Bengt has always been saying, this should have been ready much earlier, with all the bugs ironed out by now. |
|
This makes it really hard to support AMD. On my laptop with an RTX 3080, everything just works. My desktop with Radeon Vll, not so much. I am very surprised. If AMD does not take steps to improve support, they will never have parity with Nvidia in ML. This was an opportunity to build some goodwill and you blew it. |
|
@xuhuisheng could you please provide your changes as a fork so I may test it also? |
|
@L3P3 rocsolver had solved fmt issue. We can wait for the next version 5.2. |
|
Is this issue still being solved? Any updates? |
|
@L3P3 https://github.com/xuhuisheng/rocm-build/tree/develop/ubuntu2204 |
|
@xuhuisheng sorry, I tried to follow your instructions but it is too hard to understand what I need to do. |
|
ROCm was released. Is this issue closable then? |
|
Still erroring on old dependencies in my case. |
|
The good news is the issues of roctracer and rocsolver had been solved. |
@B0tBuilder I have a Radeon VII on my desktop too. Do you have multiple displays? I experience Gnome freezing for about 30 seconds when I turn off my second display. Waking up from suspend is also problematic. It takes about 30 seconds to wake up and the "Join Displays" option changes to "Single Display" and the primary display changes to the second display. I assumed there might be something wrong with the GPU so I wanted to install the amdgpu driver but I see the same dependency issue as everyone else after running |
I experience no such issue. |
|
Attempting to follow the ROCm installation docs, even with accepting the proprietary EULA: sudo amdgpu-install --usecase="dkms,workstation,rocm" --opencl=rocr,legacy --vulkan=amdvlk,pro --accept-eula --no-32results in: The following packages have unmet dependencies:
rocm-llvm : Depends: python but it is not installable
Depends: libstdc++-5-dev but it is not installable or
libstdc++-7-dev but it is not installable
Depends: libgcc-5-dev but it is not installable or
libgcc-7-dev but it is not installable
Recommends: gcc-multilib but it is not going to be installed
Recommends: g++-multilib but it is not going to be installed
E: Unable to correct problems, you have held broken packages. |
|
Thank you for reaching out with your query. Please note that ROCm v5.2 does not support Ubuntu v22.04. Support for Ubuntu v22.04 will be made available in a future release. ROCm Documentation Team |
|
What future release and when? |
|
As a best practice, we do not commit to fixes in specific releases. Please continue to review our release documentation on our new portal at https://docs.amd.com. ROCm Documentation Team |
|
It has been quite a while since 22.04 was released. Does anyone find this situation acceptable? |
I agree that this is a very annoying way of communication. AMD guys can do better, I think. This is just bad organisation. |
|
Still no fix ? @Rmalavally |
|
I removed --purge amdgpu-install + |
|
Thank you for reaching out. Let me discuss this internally and get back to you. Appreciate your letting us know. Regards, |
|
Got this:``` sudo amdgpu-install --usecase=rocm --rocmrelease=4.5.0 --no-dkms |
|
My gpu info: |
|
Here is |
|
@Martinc4321 And I test gfx1010 on ROCm-5.3.0 with |
@Martinc4321 I got how to resolve this error. Add a printf 'Package: *\nPin: release o=repo.radeon.com\nPin-Priority: 600' | tee /etc/apt/preferences.d/rocm-pin-600 |
|
I just following the guide, and it install correclty, i saw the apt log that many still using
|
|
Resolved in 5.3 |
|
So is this also finally fixed inside the AMD GPU installer from AMD for Ubuntu 22.04 LTS? |
|
I can confirm. Finally i can use my hardware. And use i will. There was just One small error with python libs but i was able to solve it pretty quickly. |
As you sad now i can see message about unsupported device. EDIT: EDIT: |
|
OK, combination of Ubuntu 20.04 and rocm-5.2.0 on the official TensorFlow docker image (hub.docker using instruction in description) It uses my GPU Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT]!!! ( Checked by |
|
doesnt work for Ubuntu 22.04.1 and installer amdgpu-install_22.20.50200-1_all.deb
|
|
@karim789 |
The issue is rather that the link to the amdgpu installer on the AMD driver page points to an obsolete driver .deb file. Anyway it appears that my R9 280X isn't supported by the amdgpu driver. |
|
I installed the latest version rocm-5.4.3 and is not compatible with my hardware gfx 8.3.0. I am using Ubuntu 22.04.1 LTS. I have The following packages have unmet dependencies:
openmp-extras : Depends: libstdc++-5-dev but it is not installable or
libstdc++-7-dev but it is not installable
Depends: libgcc-5-dev but it is not installable or
libgcc-7-dev but it is not installable
rocm-llvm : Depends: python but it is not installable
Depends: libstdc++-5-dev but it is not installable or
libstdc++-7-dev but it is not installable
Depends: libgcc-5-dev but it is not installable or
libgcc-7-dev but it is not installable
E: Unable to correct problems, you have held broken packages.
Now, I came to this thread and reading all the above comments, tried to install these dependencies. I installed python 3.8 under the command:
downloading the package: Package rocm-llvm has no available version, but exists in the database. This typically means that the package was mentioned in a dependency and never uploaded, has been obsoleted or is not available with the contents of sources.list So it's not possible to install the rocm-4.5.x |
|
For those who want to do it quickly, Here's a summary of the procedure for Ubuntu v22.04 (Jammy) from the ROCm documentation Installationsudo apt-get update
wget https://repo.radeon.com/amdgpu-install/5.3/ubuntu/jammy/amdgpu-install_5.3.50300-1_all.deb
sudo apt-get install ./amdgpu-install_5.3.50300-1_all.deb
# Add repositories
echo 'deb [arch=amd64] https://repo.radeon.com/amdgpu/latest/ubuntu jammy main' | sudo tee /etc/apt/sources.list.d/amdgpu.list
echo 'deb [arch=amd64] https://repo.radeon.com/rocm/apt/debian/ jammy main' | sudo tee /etc/apt/sources.list.d/rocm.list
sudo apt-get update
# Install Kernel mode (That may already be installed using the above commands)
sudo apt install amdgpu-dkms
# Reboot
sudo rebootVerification after reboot### Kernel mode check
dkms status
>>> Response : "amdgpu/5.18.13-1538762.22.04....."
### ROCm installation check
sudo /opt/rocm-5.4.3/bin/rocminfo
>>> Response : "ROCk module is loaded"Note: It works for my old RX 480, so it should work if you have a newer processor.
|
Pin-Priority alone didn't help me but running sudo amdgpu-install --usecase=dkms,graphics,rocm,hip,hiplibsdk --rocmrelease=5.7.0 |
it should be noted in the documentation. they're presented as equal choices. |


Ubuntu 22.04's feature freeze has already passed and the version in the APT repository is not installable due to missing dependencies (in APT-based distributions, feature freeze is also the minor version freeze).
Main issues being:
The text was updated successfully, but these errors were encountered: