Package Details: opencl-amd 1:6.3.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, 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, 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.59
First Submitted: 2016-12-01 03:45 (UTC)
Last Updated: 2024-12-05 18:41 (UTC)

Required by (126)

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 2024-12-05 18:42 (UTC) by luciddream)

Current release is for ROCm 6.3.0 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

1 2 3 4 5 6 .. 79 Next › Last »

freewick commented on 2024-12-08 09:43 (UTC)

Thank you @luciddream. For now I will keep using this as you said its more upto date and also install opencl-amd-dev along with opencl-amd.

luciddream commented on 2024-12-08 09:20 (UTC) (edited on 2024-12-08 09:41 (UTC) by luciddream)

@freewick I guess there were not many differences in the packages (they are supposed to do the same thing) which is why it was working for you.

If you want to keep the official packages you have to install both rocm-opencl-sdk and rocm-hip-sdk. Which is why I'm guessing you get the second error. You only have rocm-opencl-sdk installed.

I recommend to keep what's best for you. In a perfect world official packages would be better but we don't live in one. Last update for the official packages took over 6 months I think while opencl-amd gets updated as soon as AMD releases a new version.

edit: if you decide to go with opencl-amd you also need opencl-amd-dev for the full ROCm capabilities.

freewick commented on 2024-12-08 09:08 (UTC) (edited on 2024-12-08 09:19 (UTC) by freewick)

Thanks @luciddream.

So may I know why I didn't get any issue until now as I think I installed both of them a long time back and don't have any issue until now.

Also I am using these to for machine learning. So which package do you recommend me to keep?

Edit: Also when I am trying to uninstall I am getting this dependency error from rocm package itself that u mentioned :D

❯ paru -R opencl-amd
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing opencl-amd breaks dependency 'rocm-core' required by rocm-opencl-sdk
:: removing opencl-amd breaks dependency 'hsa-rocr' required by rocm-opencl-sdk
:: removing opencl-amd breaks dependency 'rocm-opencl-runtime' required by rocm-opencl-sdk
:: removing opencl-amd breaks dependency 'hsakmt-roct' required by rocm-opencl-sdk

Edit2: I uninstalled rocm-opencl-sdk and the update seems working fine. So thanks. Also will ml works with rocm-opencl-sdk only since it is official and in extra as I used this package only to run ml tasks?

luciddream commented on 2024-12-08 08:58 (UTC) (edited on 2024-12-08 09:00 (UTC) by luciddream)

Hi @freewick.

hsakmt-roct (The ROCT Thunk Interface) is now integrated into the ROCr runtime for 6.3.0 release which is why it's missing.

It looks to me you have accidentally installed both the official ROCm packages (rocm-opencl-sdk) and opencl-amd.

You can't have both, you have to choose one or the other :)

I will add it to conflicts section for the next release so more people don't make the same mistake.

freewick commented on 2024-12-08 08:37 (UTC)

Hello everyone. First time commenting here. I am unable to update this. I am getting the following error.

error: failed to prepare transaction (could not satisfy dependencies)
:: installing opencl-amd (1:6.3.0-1) breaks dependency 'hsakmt-roct' required by rocm-opencl-sdk
 -> error installing: [/home/wick/.cache/yay/opencl-amd/opencl-amd-1:6.3.0-1-x86_64.pkg.tar.zst /home/wick/.cache/yay/opencl-amd/opencl-amd-debug-1:6.3.0-1-x86_64.pkg.tar.zst] - exit status 1

I even tried chaotic-aur prebuilt packages and it has the same issue too. Basically I added it to IgnorePkg for now and any idea as to how to solve this?

luciddream commented on 2024-12-07 12:11 (UTC) (edited on 2024-12-07 12:21 (UTC) by luciddream)

@HurricanePootis

I've reconsidered about the /opt/rocm directory. It feels like following logic is a losing battle and I don't want opencl-amd to become irrelevant, especially when blender is important.

Also I'm more open to experimentation as long there is enough feedback from people. I would like to know how other packages deal with leftover files before I make this change.

e.g what happens when someone wants to upgrade opencl-amd but blender is also installed inside of it? I guess the only worrying thing will be outdated directory permissions.

luciddream commented on 2024-12-06 07:43 (UTC) (edited on 2024-12-06 07:44 (UTC) by luciddream)

@HurricanePootis opencl-amd follows the ROCm Linux Filesystem Hierarchy as defined in the ROCm docs. I'm not sure why official packages don't, but maybe there is a techical reason to do so. Some attempts by myself to clarify it have been ignored [1] [2]

@veganvelociraptr I will have to take another look tonight about it. Did you make a new installation or was it an upgrade from a previous version?

HurricanePootis commented on 2024-12-06 06:33 (UTC)

@luciddream, forgot my comment about OpenCL.

However, I do have one more suggestion. The official blender packaged introduced HIP-RT support, but that requires the installation of the hiprt package. HIP-RT libraries are published separately it seems.

However, since opencl-amd currently has /opt/rocm has a soft-link, while hiprt expects it to be the actual directory, you get the following error:

error: failed to commit transaction (conflicting files)
hiprt: /opt/rocm exists in filesystem (owned by opencl-amd)

Therefore, how about instead of having /opt/rocm by the soft-link, /opt/rocm-6.3.0 be the soft link instead?

diff --git a/PKGBUILD b/PKGBUILD
index 6089d56..3445e43 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -146,7 +146,8 @@ package() {
    mv "${srcdir}/${_amdgpu}/libdrm_amdgpo.so.1" "${pkgdir}/usr/lib/"

    mv "${srcdir}/opt/" "${pkgdir}/"
-   ln -s "/opt/rocm-6.3.0" "$pkgdir/opt/rocm"
+   mv "$pkgdir/opt/rocm-6.3.0" "$pkgdir/opt/rocm"
+   ln -s "/opt/rocm" "$pkgdir/opt/rocm-6.3.0"
    #ln -s "/opt/rocm-6.3.0/hip/bin/.hipVersion" "$pkgdir/opt/rocm-6.3.0/bin/.hipVersion"

    mkdir -p "${pkgdir}/opt/amdgpu/share/libdrm"

veganvelociraptr commented on 2024-12-06 06:03 (UTC)

mv: cannot stat '/tmp/makepkg/opencl-amd/src/opt/amdgpu/lib/x86_64-linux-gnu/libdrm_amdgpo.so.1': No such file or directory

luciddream commented on 2024-12-05 18:55 (UTC)

No problem @blueman :)

Let's hope AMD stops messing with the release, last change was for libdrm file today at 05-Dec-2024 01:47

I've changed the extraction method to a bash for loop. I've also added rocjpeg that is missing from the ubuntu release (forgot to add it to provides list - oops). Hopefully everything works.

@HurricanePootis I'm a bit confused about your comment for ocl-icd and the documentation from AMD. It works for me because everything is in /opt/rocm/lib which is already included in ld.so.conf. But I'm super tired from work and updating this package so I will just wait for peoples feedback.