Package Details: opencl-amd 1:6.4.1-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: 134
Popularity: 0.81
First Submitted: 2016-12-01 03:45 (UTC)
Last Updated: 2025-05-22 15:22 (UTC)

Required by (129)

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 .. 21 22 23 24 25 26 27 28 29 30 31 .. 82 Next › Last »

Ashark commented on 2022-03-23 12:12 (UTC)

@luciddream I do not get you, where did you see that "21.50.2.50002" besides the one of debs you linked? In the gpu page I see they mention releases just as "21.50.2", without build number. And in the actual packages they use "21.50.2-1384496", see the Packages file I linked in previous comment or see any control file for any [there are few exceptions, like amf] deb package from repo. So the only correct way I see is to use scheme like I wrote before: 21.50.2_1384495-1.

luciddream commented on 2022-03-22 23:43 (UTC) (edited on 2022-03-23 00:00 (UTC) by luciddream)

Hi @Ashark I took a look and the upstream version (both for CentOS and Ubuntu) is 21.50.2.50002. So I guess I can remove the minor version .1384495 on the next update, but it will still look almost the same. I'm not sure if that helps you.

edit: to make things "worse", there are two amdgpu-install files, one that includes the minor version and one that doesn't, and I'm too sleepy to check their differences now. So I'm not sure that even removing the minor version will be OK.

@redshoe I didn't ignore you but I didn't have time to check yet. I think that you mean the PAL drivers though. This package is already using the legacy AMDGPU-PRO drivers, but I don't have an older GPU to check what works and what not.

Ashark commented on 2022-03-22 22:49 (UTC)

Can you please fix versioning scheme? Currently it is like 21.50.2.50002.1384495-1, but it should be like 21.50.2_1384495-1. I want to compare opencl-amd and amdgpu-pro-libgl versions in davinci-resolve-checker, and it would be easier if version schemes just matched.
Regarding the underscore instead of dot in last block: see https://wiki.archlinux.org/title/PKGBUILD#pkgver. It says if the author of the software uses hyphen (-), replace it with an underscore (_). And AMD versions their packages with hyphen, like Version: 21.50.2-1384496. You can see it in Packages file: http://repo.radeon.com/amdgpu/21.50.2/ubuntu/dists/bionic/proprietary/binary-amd64/Packages.

redshoe commented on 2022-03-19 16:27 (UTC)

@luciddream Thanks. Another question. Are newer AMDPRO drivers don't have opencl anymore, as in no more opencl support for GPUs from the AMDPRO-GPU driver stack?

luciddream commented on 2022-03-15 08:18 (UTC)

@redshoe I don't think so, libtinfo5 is required by ROCm. I don't think you can "trick" it like that.

@limsandy I think next ROCm release will be in April so you can try again then. If AMD doesn't have that information noone else will unfortunately :)

It would be nice if more people can verify what @ghostbuster is saying, does the path get expanded for you in /etc/profile.d/opencl-amd.sh ? Because I don't see any issues on my PC.

redshoe commented on 2022-03-15 01:42 (UTC) (edited on 2022-03-15 01:43 (UTC) by redshoe)

@luciddream is it possible to use libtinfo.so.6 instead of libtinfo.so.5? And maybe create a symbolic link? If so, can we prevent installing ncurses5-compat-libs, and just install ncurses6.3-2?

limsandy commented on 2022-03-14 16:34 (UTC)

Note to self: opencl-amd ver 20.40.xxx doesn't need ncurses-lib

So I installed opencl-amd ver 20.40.xxx, I can confirm that Vega iGPU works with Manjaro. I've got openCL ver 2.1 now. Any idea when the new version will work with my Vega 7 iGPU? :D

https://drive.google.com/file/d/1lPzlzX3dkZT82br7rMRdS45MutD89tGV/view

luciddream commented on 2022-03-14 08:40 (UTC)

@ghostbuster Are you using the latest opencl-amd version? I noticed that the PATH got expanded with the previous version so I changed it, and the current one worked fine on my PC.. but If you are seeing it expanded then it means it's not working as I thought. I will check it out later tonight when I'm at my PC.

ghostbuster commented on 2022-03-13 14:37 (UTC)

/etc/profile.d/opencl-amd.sh is created with the expanded PATH at package build time, by adding additional quotation this could be avoided.

diff --git a/PKGBUILD b/PKGBUILD
index bf83107..34910e4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -183,5 +183,5 @@ package() {
        echo /opt/rocm-5.0.2/hip/lib >> "$pkgdir/etc/ld.so.conf.d/opencl-amd.conf"

        mkdir -p ${pkgdir}/etc/profile.d
-       echo export PATH="\${PATH}:/opt/rocm-5.0.2/bin:/opt/rocm-5.0.2/hip/bin" > "$pkgdir/etc/profile.d/opencl-amd.sh"
+       echo 'export PATH="${PATH}:/opt/rocm-5.0.2/bin:/opt/rocm-5.0.2/hip/bin"' > "$pkgdir/etc/profile.d/opencl-amd.sh"
 }

limsandy commented on 2022-03-07 16:48 (UTC)

I don't get it.....

I uninstalled opencl-amd, opencl-amd-dev and ncurses5-compat-libs.

Then out of curiosity, I did clinfo again.... And here is what it returned:

https://drive.google.com/file/d/1QQ9t-3tOTTMS19JpNOyFwOqJIXiziLpU/

I am particularly concerned with this line: fatal error: cannot open file '/usr/share/clc/gfx909-amdgcn-mesa-mesa3d.bc': No such file or directory Preferred work group size multiple (kernel) <getWGsizes:1504: create kernel : error -46>

I guess I have opencl-mesa 21.3.7-1 installed.

Will try opencl-amd 20.40 now.