-
Notifications
You must be signed in to change notification settings - Fork 371
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
Ryzen 4000 APU support #1580
Comments
Thanks @Etaash-mathamsetty for reaching out. |
Any update? |
Hi @Etaash-mathamsetty |
Does anybody know what I opencl icd I should use then??? |
Hi @Etaash-mathamsetty , I have a more-or-less good experience with extracted OpenCL from AMDGPU-PRO 20.40 in Gentoo Linux. An installation script can be downloaded here: I only noticed one problem: If I had an X-console running in parallel, then running OpenCL in a text console killed the X-server. So you should perhaps go either all-text or all-graphics. Now, one comment about kernels: You need at least 5.8, which also gives a correct number of CU in rocminfo. Newer kernels (tried up to 5.11) give nonsensical +20 CU, but it doesn't appear to impact functionality. That said, I managed to run certain OpenCL tasks with ROCm as well (tried in text-only mode; it is a bit slower then amdpro, except if your code is optimized with assembly):
By the way, Ryzen 2000 APU series (Raven Ridge) is well supported in terms of OpenCL from ROCm 3.10 onwards. |
I am closing this now as there is no official support of Ryzen 4000 APUs for now with ROCm now. |
I run into vram issues with that, and it usually ends up freezing linux and forcing me to do a forced shutdown. |
I switched to arch |
OK, I suppose that it is well understood that one should be careful when running a random installation script from the web (more so if it isn't from a well respected source). In fact, I first ran this script (in Gentoo Linux) manually line-by-line to be sure what's going on. So I see that it is better to provide a step-by-step manual installation here instead of a script. In any case I'm not forcing anybody to do it - I'm just giving the procedure which enabled me to get working OpenCL on APU Renoir (4650G, 4750G) and also Cezanne (5700G); this "PAL" OpenCL is also a faster alternative to ROCm for some workloads on R9 Nano (Fiji, gfx803), Vega 56/64 and Radeon VII. I tested it with kernels 5.8 (Renoir) and 5.10 (Cezanne), so I don't know if it works with the newer ones. By the way, with regard to ROCm OpenCL on Renoir - it seems that it works somewhere sometimes (Cezanne is even worse) - it apparently depends also on the motherboard/BIOS - one program may work in one configuration, but not the other, and vice versa (my experience listed above actually involved different motherboards). So here is the extraction and installation of PAL OpenCL (I removed Vulkan, it proved to be unnecessary):
wget --referer https://www.amd.com/en/support/kb/release-notes/rn-amdgpu-unified-linux-20-40 https://drivers.amd.com/drivers/linux/amdgpu-pro-20.40-1147286-ubuntu-20.04.tar.xz tar xJf amdgpu-pro-20.40-1147286-ubuntu-20.04.tar.xz
ar x package.deb tar xJvf data.tar.xz namely:
# AMDGPU-PRO OpenCL support /opt/amdgpu-pro/lib/x86_64-linux-gnu
# AMDGPU-PRO OpenCL support /opt/amdgpu-pro/lib/i386-linux-gnu
ln -s libdrm_amdpro.so.1.0.0 libdrm_amdpro.so.1 sed -i "s|libdrm_amdgpu|libdrm_amdpro|g" libamdocl-orca32.so
ln -s libdrm_amdpro.so.1.0.0 libdrm_amdpro.so.1 ln -s libamd_comgr.so.1.7.0 libamd_comgr.so sed -i "s|libdrm_amdgpu|libdrm_amdpro|g" libamdocl-orca64.so
|
that's exactly what I suspected, the amdgpu-pro vulkan causes arch linux to fail. But even if I read over the script there was no way to realize that. |
this now works using opencl-amd 22.10.3 on the AUR, I only have 512 MB of vram though, any for ROCM to use my system ram? (I cannot expand my vram size since my laptop's bios is retarded) |
@Etaash-mathamsetty maybe you can upgrade your BIOS? i had to do that to increase VRAM on my ThinkCentre system with AMD Ryzen 5 PRO 4650GE with Radeon Graphics. then i selected 2G in BIOS settings for VRAM and i currently see 1983M VRAM in |
I am already running the latest bios lol |
If I read correctly ryzen 4000 APUs are not supported. Are there any plans to support them in the future and if not, what opencl ICD should I use? (mesa doesn't work btw)
The text was updated successfully, but these errors were encountered: