Originally posted by jaehan.gyopo
View Post
Announcement
Collapse
No announcement yet.
Fedora Makes Progress On Radeon ROCm Packages, But Still Needs To Land OpenCL / HIP
Collapse
X
-
Originally posted by Linuxxx View Post
Good to see you around here!
A question:
I understand that AMD aims to implement GPU-accelerated rendering into the upcoming Blender 3.2 release for Linux.
Now, is my Radeon R9 380 (GCN Gen3 - GFX8 - Tonga V2) going to be supported for this?
Note I'm running Ubuntu 20.04 LTS based distributions, so I'm not inquiring about the packaging problems you face on Fedora, since AMD seems to support such a setup with official packages.
Thanks!
ROCm require kernel support and LLVM support to work. From what I understand, Gen3 does not have either (kernel for gen 3 is graphics only I think), so you're out of luck for ROCm support. You could try mesa's OpenCL though, but I'm not sure how well that works.
ROCm Gen 4 (Polaris) on the other hand was experimental as far as I know. I'm told has issues with LLVM and is non-trivial to fix. I'm not a compiler guy so I can't really help there. We do provide a legacy OCL driver for supporting Polaris, but it uses a closed source compiler, so the driver is nonfree. Most of the code is actually just ROCm OCL with a different backend.
To be clear, ROCm is intended to work with Gen 5+ and RDNA.
- Likes 3
Comment
-
Hopefully ARC has it's act together and we can just forget about AMD.
Originally posted by agd5f View Post
We are not removing vega support. It's just seeing a reduced level of validation. It's no different than any other project. For example, older GPUs in mesa get less testing than newer ones.
Ian: Oh, no, no, no, no, no, no...no, no, not at all. I, I, I just think that the.. uh.. their appeal is becoming more selective.
- Likes 1
Comment
-
Originally posted by agd5f View PostWe are not removing vega support. It's just seeing a reduced level of validation. It's no different than any other project. For example, older GPUs in mesa get less testing than newer ones.
And it's not just about developers! You need to consider that developers write code mostly for use by non-developers, who are using even potentially older hardware. In order for devs to support apps, the hardware support needs to be solid and stable (i.e. not breaking, from one release to the next).
Nvidia and Intel are useful benchmarks, here. I don't know how far Nvidia's support goes, but I know I can run OpenCL on Intel iGPUs going back at least as far as Gen 8 (i.e. Broadwell CPUs from more than 7 years ago)!
- Likes 2
Comment
-
Originally posted by agd5f View Post
We are not removing vega support. It's just seeing a reduced level of validation. It's no different than any other project. For example, older GPUs in mesa get less testing than newer ones.
Sorry, but the way AMD releases (sometimes more like dumps things without much documentation or explanations) and then drop support for those things makes me super hesitant to develop with anything for fear I get the rug pulled out from underneath me (it's happened on more than one occasion).Last edited by jaehan.gyopo; 12 April 2022, 08:00 AM.
- Likes 1
Comment
-
fuzz no problem, glad to hear it works, I haven't had time to test it well.
I have 5.1 as an update pending for f36, I was waiting for the llvm 14 backport:
As for the WX4150, it's a polaris, so the support is experimental (i.e. it was never really "supported"). To use it, you have to export a variable... I think ROC_ENABLE_PRE_VEGA=1 (not sure).
- Likes 3
Comment
-
Mystro256 First, thank you for so much work you did on that, like the patches to make the process so much cleaner.
I'm packaging rocm for Solus based on your work, and it has proven extremely helpful. I have a question though. I am facing an issue where a GPU is detected by `rocminfo`, but then there is no OpenCL device found when running `clinfo` or `rocm-clinfo`. Even when running strace I can verify it finds all the libraries, but still no OCL device. Did you ever encounter such a problem on Fedora? Or have an idea what could be causing it?
It is hard to diagnose this issue as Fedora is the only distribution so far that uses system's LLVM and not a separate one just for ROCm, and I can't find anyone encountering an issue like that before.
- Likes 1
Comment
-
Originally posted by JacekJagosz View PostMystro256 First, thank you for so much work you did on that, like the patches to make the process so much cleaner.
I'm packaging rocm for Solus based on your work, and it has proven extremely helpful. I have a question though. I am facing an issue where a GPU is detected by `rocminfo`, but then there is no OpenCL device found when running `clinfo` or `rocm-clinfo`. Even when running strace I can verify it finds all the libraries, but still no OCL device. Did you ever encounter such a problem on Fedora? Or have an idea what could be causing it?
It is hard to diagnose this issue as Fedora is the only distribution so far that uses system's LLVM and not a separate one just for ROCm, and I can't find anyone encountering an issue like that before.
If I recall correctly, rocminfo checks for kernel support, while clinfo checks for runtime support (logic is in ROCclr). If it shows up in the first but not the latter, you might have prevega HW, which is experimental. I think you need to "export ROC_ENABLE_PRE_VEGA=1" (or maybe "true") but I've never tried it myself. You could also patch the code if you want to explicitly enable it:
FYI, I'm still working on the packaging patches. I've upstreamed most of them, but there's still a few patches I have locally I need to rework to allow upstreaming (at least 1 OCL patch, 1 ROCclr patch, and a few HIP patches). I'll get to them as I have free time.
- Likes 3
Comment
Comment