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 .. 19 20 21 22 23 24 25 26 27 28 29 .. 79 Next › Last »

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?

luciddream commented on 2022-03-05 22:21 (UTC)

I've pushed a new version for ROCm 5.0.2 because it contains a bug fix. I made some small changes to the PKGBUILD as well so please report if it's not working for you.

luciddream commented on 2022-03-02 07:36 (UTC) (edited on 2022-03-02 13:23 (UTC) by luciddream)

@limsandy You can download the 20.40 PKGBUILD, then install the package as explained in the AUR guide.

edit: oops, I had linked 20.50 by accident. fixed now