Package Details: opencl-amd

Git Clone URL: (read-only, click to copy)
Package Base: opencl-amd
Description: OpenCL userspace driver as provided in the amdgpu-pro driver stack. This package is intended to work along with the free amdgpu stack.
Upstream URL:
Keywords: amd amdgpu computing gpgpu opencl radeon
Licenses: custom:AMD
Conflicts: rocm-opencl-runtime
Provides: opencl-driver
Submitter: grmat
Maintainer: sperg512 (luciddream)
Last Packager: luciddream
Votes: 115
Popularity: 3.40
First Submitted: 2016-12-01 03:45
Last Updated: 2021-12-26 19:47

Required by (35)

Sources (30)

Pinned Comments

luciddream commented on 2021-12-26 15:14

Hi all, I've pushed another release. This is the best compromise I could think of in order to include support for most ROCM things without making the package super bloated.

opencl-amd requires a package that that provides libtinfo5. One option is installing ncurses5-compat-libs package.

I've added an opencl-amd-dev package which "only" includes the ROCM compiler files, for people that need more than just OpenCL support. This package download size is 500+ MB and needs about 2.4G disk space.

The downside is that I've included all of the remaining files in the opencl-amd package, but that's only 20MB download size more than the previous package. The package now installs at /opt/rocm - The library paths need to be updated after installing the package. I'm not sure if it's necessary but if it doesn't work for you after installation, you should run sudo ldconfig.

There's a lot more work in order to make sure it's easy for me to update next releases, but I think that's a good first step into that direction for full ROCM support.

I'm really afraid that there are things that I've not thought about, and maybe this doesn't run on your PC. Please comment so I can investigate if it's not working for you.

sperg512 commented on 2021-03-24 13:27

ok so as @ATrigger and @quimkaos pointed out, 20.50 doesn't work on Polaris GPUs. If you have one, downgrade to 20.45 or install opencl-amd-polaris. could also be Mesa being fat but for now just downgrade or install the other package ok thanks

Latest Comments

1 2 3 4 5 6 ... Next › Last »

luciddream commented on 2022-01-15 11:45

I don't have an opinion on that, I'm just copying files here :) If AMD doesn't know then we can't know either. You can always try on next releases, the package is relatively small.

srahman5317 commented on 2022-01-15 03:15

@luciddream Makes sense. Thank you for all your help. I will stay on 20.40 for now. Would you recommend that I continue to do that in the future or is there going to be a package that has just the amdgpu-pro OpenCL userspace instead of (amdgpu-pro + ROCm)

luciddream commented on 2022-01-15 01:19

No remnants, I just saw your post in the forums :)

I just looked around and saw that people have problems with ROCM and APUs, and they got it fixed by reverting to 20.40.

srahman5317 commented on 2022-01-14 23:44

@luciddream I used to have opencl-mesa installed but not since I've made any posts here. Do you see any remnants of opencl-mesa in the strace? It should be uninstalled. I uninstalled both opencl's and then installed just opencl-amd ...

OK. So I downgraded to version 20.40. Everything functions perfectly. So ROCm causes the issue since those elements were introduced in version 21.

luciddream commented on 2022-01-14 21:00


I think that the problem is your GPU can't work with ROCM.. You can try an older version 20.40 of opencl-amd if you just need OpenCL.

Also I see you had installed both opencl-mesa and opencl-amd .. have you removed opencl-mesa at the moment? Maybe it creates issues.

If it works for you I will make a new pinned comment that explains that.

srahman5317 commented on 2022-01-14 19:48

@luciddream Thank you for looking into the case. I looked through the output of journalctl -b0 -k and the error seems to be:

Jan 14 12:14:10 hp-machine kernel: amdgpu: qcm fence wait loop timeout expired

Jan 14 12:14:10 hp-machine kernel: amdgpu: The cp might be in an unrecoverable state due to an unsuccessful queues preemption

Jan 14 12:14:10 hp-machine kernel: amdgpu: Failed to evict process queues

Jan 14 12:14:10 hp-machine kernel: amdgpu: Failed to quiesce KFD

This (as far as I can tell) causes the GPU to reset and the DE crashes. I looked into the error and it seems like its an old one with ROCm. There didn't seem to any consistent solution though. Pointers as to where to report this would be welcome.

luciddream commented on 2022-01-13 18:03

nah, I think it won't help with your case.. I'm not sure that clinfo crashes to be honest. Maybe check journalctl -b0 -k to find out what's crashing.

srahman5317 commented on 2022-01-13 15:43

@luciddream thank you so much for your earlier response (Ryzen 4700u - opencl tasks and benchmarks seem to be working but clinfo causes a crash). I extracted clinfo from the deb package and tried that. Ran into the same issue. I'm linking the strace output here (don't know how else to attach it - its a shared file through Mega):

Also just FYI, when I run clinfo, the resulting crash seems to be graphical. I can usually switch to a different tty and upon restart, the compositor doesn't function correctly. I need to re-enable OpenGL before it works again. I hope this helps.

luciddream commented on 2022-01-12 09:36


Because I created a similar package that is not outdated and doesn't require the GPG validation from users, so it makes everybody's life easier, but it got deleted by a trusted user as duplicate. (You can see it with red color in the dependency list). If there is not a better solution (like maybe adding libtinfo5 as dependency and makepkg figuring it out automatically) I could add it in the future as dependency, but at the moment I'm still salty about it.

t3k commented on 2022-01-12 09:16

@luciddream, thank you for your help, it works now !

But I don't understand, if this package is required for opencl to work, why isn't it included as a dependency ? This is error prone, a lot of people must make the same error as me !