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 2 3 4 5 6 7 .. 79 Next › Last »

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.

blueman commented on 2024-12-05 18:44 (UTC)

Thanks for the quick update! :)

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

There are many reasons to hate bash scripts. But maybe we can start testing if it works for everyone. It seems the 6.3 release is now stable so I will make a new release for opencl-amd tonight.

HurricanePootis commented on 2024-12-05 00:00 (UTC)

I don't see why not. The for loop is a simple bash script, I don't get how use configuration would ruin it.

luciddream commented on 2024-12-04 20:29 (UTC)

ROCm is in a very bad state at the moment. The Ubuntu release (amdgpu-install) is broken (again) and there are still no release notes. I think I will wait a couple of days before making a new release.

@HurricanePootis the for loop is a nice addition, but I'm not sure if there is any user configuration that might break the PKGBUILD. Maybe it can be added in the future.

HurricanePootis commented on 2024-12-04 06:37 (UTC) (edited on 2024-12-04 06:38 (UTC) by HurricanePootis)

I have created an update for ROCm 6.3.0. I also suggested the following changes:

  1. Introduce variables into the source() section. This makes updating the information much easier on the packager, hopefuly leading to quicker turn around times
  2. Use a for loop to unpack the data tarballs. Instead of having to manually list whether or not a package is compressed with gzip or xz, you can just use a for loop since those are the only two formats used by amd
  3. Edit the OpenCL icd files, as rocm-ocl-icd is apparently no longer available for 6.3.0. You have to manually point to the library in the icd file.

I tested the package, and both HIP on blender and opencl on geekbench work

Here is the link to the github gist patch