Package Details: opencl-amd 1:6.3.2-1

Git Clone URL: https://aur.archlinux.org/opencl-amd.git (read-only, click to copy)
Package Base: opencl-amd
Description: ROCm components repackaged from AMD's Ubuntu releases (ROCr runtime, ROCm runtime, HIP runtime) - This package is intended to work along with the free amdgpu stack.
Upstream URL: http://www.amd.com
Keywords: amd amdgpu computing gpgpu opencl radeon
Licenses: custom:AMD
Conflicts: amd-smi-lib, comgr, hip, hip-dev, hip-doc, hip-runtime-amd, hip-samples, hipcc, hsa-amd-aqlprofile, hsa-rocr, hsa-rocr-dev, libdrm-amdgpu-amdgpu1, openmp-extras-runtime, rocdecode, rocdecode-dev, rocjpeg, rocjpeg-dev, rocm-cmake, rocm-core, rocm-dbgapi, rocm-debug-agent, rocm-device-libs, rocm-gdb, rocm-hip-runtime, rocm-language-runtime, rocm-ocl-icd, rocm-opencl, rocm-opencl-dev, rocm-opencl-icd-loader, rocm-opencl-runtime, rocm-smi-lib, rocm-utils, rocminfo, rocprofiler, rocprofiler-dev, rocprofiler-plugins, rocprofiler-register, roctracer, roctracer-dev
Provides: amd-smi-lib, comgr, hip, hip-dev, hip-doc, hip-runtime-amd, hip-samples, hipcc, hsa-amd-aqlprofile, hsa-rocr, hsa-rocr-dev, libdrm-amdgpu-amdgpu1, opencl-driver, openmp-extras-runtime, rocdecode, rocdecode-dev, rocjpeg, rocjpeg-dev, rocm-cmake, rocm-core, rocm-dbgapi, rocm-debug-agent, rocm-device-libs, rocm-gdb, rocm-hip-runtime, rocm-language-runtime, rocm-ocl-icd, rocm-opencl, rocm-opencl-dev, rocm-opencl-icd-loader, rocm-opencl-runtime, rocm-smi-lib, rocm-utils, rocminfo, rocprofiler, rocprofiler-dev, rocprofiler-plugins, rocprofiler-register, roctracer, roctracer-dev
Submitter: grmat
Maintainer: sperg512 (luciddream)
Last Packager: luciddream
Votes: 132
Popularity: 0.21
First Submitted: 2016-12-01 03:45 (UTC)
Last Updated: 2025-01-29 20:12 (UTC)

Required by (128)

Sources (38)

Pinned Comments

nho1ix commented on 2023-12-29 08:43 (UTC) (edited on 2024-02-10 07:13 (UTC) by nho1ix)

Note for anyone who has a Polaris GPU (Radeon RX 5xx) debugging issues with this package; Packages that use OpenCL like clinfo or davinci-resolve-studio will need you to downgrade opencl-amd to 1:5.7.1-1 as well as amdgpu-pro-oglp to 23.10_1620044-1 to avoid coredumps & segfaults.

DVR would not open unless these 2 packages were downgraded (along with their dependencies). Had to figure it out the hard way after hours using valgrind and rebooting over and over. Hopefully someone else will not have to pull their hair out trying to resolve their issue.

luciddream commented on 2021-12-26 15:14 (UTC) (edited on 2025-01-29 20:13 (UTC) by luciddream)

Current release is for ROCm 6.3.2 opencl-amd package includes only OpenCL / HIP runtime. You also need to use opencl-amd-dev package for ROCm LLVM compiler, OpenCL and HIP SDK. Please relog / reboot after installing so your PATH gets updated

There are now official packages available: rocm-opencl-sdk for OpenCL and rocm-hip-sdk for HIP - You might have better luck with these packages depending on your GPU.

Latest Comments

« First ‹ Previous 1 .. 23 24 25 26 27 28 29 30 31 32 33 .. 79 Next › Last »

srahman5317 commented on 2022-01-14 23:44 (UTC) (edited on 2022-01-15 01:08 (UTC) by srahman5317)

@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 (UTC)

@srahman5317

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 (UTC) (edited on 2022-01-14 19:51 (UTC) by srahman5317)

@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 (UTC)

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 (UTC)

@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): https://mega.nz/file/8BNVnIZI#LRYfD_zpOnWMcNDZzZrHdrFuRjK4GRSw206iK3bBBfk

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 (UTC)

@t3k

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 (UTC)

@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 !

luciddream commented on 2022-01-11 20:09 (UTC) (edited on 2022-01-11 20:10 (UTC) by luciddream)

@t3k do you have libtinfo.so.5 library installed? It is required by this package. This is also provided by ncurses5-compat-libs package.

t3k commented on 2022-01-11 19:42 (UTC)

Hi @luciddream, thanks for your work ! I'm trying to make my 2 Vega cards (56 and 64) using opencl with your package, but /opt/rocm-4.5.2/opencl/clinfo does not list them (number of devices 0 despite platform being detected)

Still, /opt/rocm-4.5.2/bin/rocminfo detects correctly the 2 Vegas

If I'm installing rocm-opencl-sdk, clinfo detects the 2 Vegas, compilation goes through but I've got the C++ stl_vector.h problem (https://giters.com/ethereum-mining/ethminer/issues/2391) everytime miner tries to access the card with clinfo

I've seen on this link (https://community.amd.com/t5/drivers-software/opencl-pal-legacy-platforms-under-ubuntu/td-p/43645) that it should be installed with the option --opencl=pal for opencl to work on Vega, was it the case for this package ?

Thanks for any help you can provide !