Package Details: opencl-amd 1:6.4.0-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: 133
Popularity: 0.54
First Submitted: 2016-12-01 03:45 (UTC)
Last Updated: 2025-04-11 22:54 (UTC)

Required by (132)

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.

Latest Comments

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

luciddream commented on 2022-02-28 08:22 (UTC)

@limsandy

This is the latest stable release (5.0.1 doesn't count since it has experimental binaries), I will wait for the next AMD release (which is probably March) before I can release a new package.

If you need OpenCL and ROCm is not working for you, you can try an older release that works, probably 20.40

limsandy commented on 2022-02-28 07:51 (UTC)

@luciddream,

Not yet. To be honest, I am a little scared to try this on my own because so many users have reported problems (and those who managed to make it work, did not find the solution straight-forward).

I am trying to run a crypto farmer program where it can use OpenCL to help it sync up to the current blockchain height. And the Vega iGPU inside a Renoir is actually very powerful to do it.

I'm not in a rush to use OpenCL so I have a few more weeks. BTW, do you plan on releasing a newer stable version of opencl-amd anytime soon? ;) I know AMD is releasing a bunch of drivers in kernel 5.17 so I might wait until then. ;)

luciddream commented on 2022-02-27 21:26 (UTC) (edited on 2022-02-27 21:29 (UTC) by luciddream)

@limsandy I don't think there is a reason to make any assumptions about how the drivers work / build / etc. Did you try opencl-amd and it's not working for you? What are you trying to run and what do the logs provide any errors? example try strace clinfo 2> strace.txt

You can also use the DEBUG flags, maybe they provide more information about any errors.

@srahman5317 sorry about your laptop!

limsandy commented on 2022-02-26 18:51 (UTC)

Hello luciddream,

I am a new Manjaro user and I really would like to get my AMD 4650 PRO (Renoir) APU to work with some programs utilizing OpenCL. Now I've just read srahman5317's trouble getting his Renoir laptop to work with OpenCL and getting it to work might be tricky.

Now don't get me wrong, I know someone who has successfully get his Renoir APU to work with OpenCL but he said the process is quite painful. And here I quote him:

"I was somehow able to get OpenCL running on my AMD 4800U iGPU under Linux... it was very tricky and even then it only seemed to work when a monitor was attached and running a GUI. It would not work headless.

AMD's proprietary Linux drivers suck. They're locally compiled kernel modules. So if there's an automatic kernel update from Ubuntu that gets downloaded and if the AMD drivers won't compile with the newer kernel, you're screwed.

What tends to happen is the kernel gets updated and the AMD drivers lag, so if you try to install a fresh Ubuntu machine you have to manually download and install an older kernel, then remove the newer one (and the newer kernel headers) to get the drivers to build."

Having this information, is there anything you could help us to confidently get OpenCL to successfully work with Manjaro (or any Arch Linux distribution)? Thank you so much in advance, luciddream.

srahman5317 commented on 2022-02-18 16:54 (UTC)

@luciddream don't mean to ignore you but my laptop literally broke so I can't provide more details. Thank you for your help so far.

luciddream commented on 2022-02-16 10:29 (UTC) (edited on 2022-02-16 10:29 (UTC) by luciddream)

@srahman5317 What's the rocminfo output? Maybe it gives more info about what's wrong.

srahman5317 commented on 2022-02-16 05:21 (UTC)

@luciddream Thank you for your response. I haven't found a way to make ROCm work with Renoir APUs but I will keep looking. Here are the errors from strace when version 21.50 is installed and I run clinfo (link through Mega. Text file) https://mega.nz/file/cctUSQrb#PqodPi0VLhDDJ7hjeAx6Xlh8Bdr1jt5YZ__XUlzhtiY

luciddream commented on 2022-02-16 00:59 (UTC) (edited on 2022-02-16 01:03 (UTC) by luciddream)

I found something. For some reason librocalution.so has been compiled with missing library paths, from what I understand. Manually setting LD_LIBRARY_PATH=/opt/rocm/lib:/opt/rocm/hip/lib will help some HIP software run.

For example Pytorch will run again when I set the path, and Julia AMDGPU will run fine after I set it. Most software won't show logs for these missing libraries. I will investigate it tomorrow since it's super late for me.

I'm posting this here too until opencl-amd-dev gains some traction.

luciddream commented on 2022-02-15 08:54 (UTC)

@srahman5317

That's unfortunate but I would at least try to check logs before giving up (e.g strace clinfo 2> errors.txt) Maybe there is something we are missing. I see that some people are using Renoir APUs with ROCM somehow.

srahman5317 commented on 2022-02-15 03:03 (UTC)

Hope this doesn't come across in the wrong way - I just want to put the information out there. On a Renoir APU (4700U for me), version 21.50 gives me a segmentation fault when I run clinfo. That being said, the previous version was also giving me errors with clinfo but not a segmentation fault. For now I am back to version 20.40 which worked with APUs. Not much to be done here I believe, but I hope AMD cleans up it drivers in the future to something that works for all it products