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

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.

luciddream commented on 2022-03-07 12:18 (UTC)

@limsandy

I don't see anything missing from the strace, so i don't think there is something to do on package level. I guess you can try 20.40 for now.

limsandy commented on 2022-03-07 02:33 (UTC)

Never assume anyone would have strace installed, because it's not installed by default in Manjaro. :P

https://drive.google.com/file/d/1WruIQJxNqVgUmd74r4LFd2qis87CatDS/

luciddream commented on 2022-03-07 01:18 (UTC)

@limsandy, you can try and see if there are any logs that show what's wrong.

Try to run strace clinfo 2> clinfo.txt, try the debug flags. If it's not working and you can't find a solution, you can always install 20.40 package as we discussed in the previous comments.

limsandy commented on 2022-03-07 01:02 (UTC)

With opencl-amd uninstalled, I ran clinfo and it returned "Number of platforms 0".

After installing the latest version of opencl-amd, I ran clinfo again and it returned "Segmentation fault (core dumped)".

So I tried installing opencl-amd-dev and it returned the same error message. Do I need to mess with AMD GPU drivers to make it work?