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.33
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 .. 34 35 36 37 38 39 40 41 42 43 44 .. 81 Next › Last »

maz-1 commented on 2021-08-20 01:27 (UTC) (edited on 2021-08-20 01:32 (UTC) by maz-1)

@sperg512 I think seperate lib32 packages are for packages built from source. lib32-opencl-amd share the same zip file with opencl-amd so it should be ok to built both packages from one package base. Besides lib32-opencl-amd requires opencl-amd and install it will download the same zip file twice if lib32-opencl-amd is a seperated package. You can check out nvidia-vulkan and amdgpu-pro-installer in aur.

luciddream commented on 2021-08-19 09:33 (UTC)

@maz-1 why not create another package lib32-opencl-amd ? It looks to me most AUR packages use that strategy for 32bit software. Having it in one package will make it harder to maintain and to verify updates. But that's just my opinion.

maz-1 commented on 2021-08-19 06:57 (UTC) (edited on 2021-08-19 07:34 (UTC) by maz-1)

@sperg512 I modified PKGBUILD to build lib32-opencl-amd, can you check if these changes can be merged? https://gist.github.com/maz-1/d08c16f84c8a0237c38141bd49a8d55c

I have tested with 32bit clinfo

my changes:

diff --git a/PKGBUILD b/PKGBUILD
index bdb81d7..ca51492 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,6 +4,7 @@
 # Contributor: ipha <ipha00 at gmail dot com>
 # Contributor: johnnybash <georgpfahler at wachenzell dot org>
 # Contributor: grmat <grmat at sub dot red>
+# Contributor: maz-1 <ohmygod19993 at gmail dot com>

 prefix='amdgpu-pro-'
 postfix='-ubuntu-20.04'
@@ -12,8 +13,16 @@ minor='1290604'
 amdver='2.4.106'
 shared="opt/amdgpu-pro/lib/x86_64-linux-gnu"
 shared2="opt/amdgpu/lib/x86_64-linux-gnu"
+shared_32="opt/amdgpu-pro/lib/i386-linux-gnu"
+shared2_32="opt/amdgpu/lib/i386-linux-gnu"
 tarname="${prefix}${major}-${minor}${postfix}"

+pkgbase=opencl-amd-installer
+pkgname=(
+opencl-amd
+lib32-opencl-amd
+)
+
 pkgname=opencl-amd
 pkgdesc="OpenCL userspace driver as provided in the amdgpu-pro driver stack. This package is intended to work along with the free amdgpu stack."
 pkgver=${major}.${minor}
@@ -22,17 +31,58 @@ arch=('x86_64')
 url='http://www.amd.com'
 license=('custom:AMD')
 makedepends=('wget')
-depends=('libdrm' 'ocl-icd' 'gcc-libs' 'numactl')
-conflicts=('rocm-opencl-runtime')
-provides=('opencl-driver')
-optdepends=('clinfo')

 DLAGENTS='https::/usr/bin/wget --referer https://www.amd.com/en/support/kb/release-notes/rn-amdgpu-unified-linux-21-30 -N %u'

 source=("https://drivers.amd.com/drivers/linux/$tarname.tar.xz")
 sha256sums=('5840aac63a3658b3f790c59e57226062e7e4bc74f3c066a3e7bc9e3065e24382')

-package() {
+package_lib32-opencl-amd() {
+    pkgdesc="OpenCL 32bit userspace driver as provided in the amdgpu-pro driver stack. This package is intended to work along with the free amdgpu stack."
+    license=('custom:AMD')
+    provides=('lib32-opencl-driver')
+    depends=('lib32-libdrm' 'lib32-ocl-icd' 'lib32-gcc-libs' 'opencl-amd')
+
+   mkdir -p "${srcdir}/opencl32"
+   cd "${srcdir}/opencl32"
+
+   # orca
+   ar x "${srcdir}/$tarname/opencl-orca-amdgpu-pro-icd_${major}-${minor}_i386.deb"
+   tar xJf data.tar.xz
+
+   cd ${shared_32}
+   sed -i "s|libdrm_amdgpu|libdrm_amdgpo|g" libamdocl-orca32.so
+
+   mkdir -p "${srcdir}/libdrm32"
+   cd "${srcdir}/libdrm32"
+   ar x "${srcdir}/$tarname/libdrm-amdgpu-amdgpu1_${amdver}-${minor}_i386.deb"
+   tar xJf data.tar.xz
+   cd ${shared2_32}
+   rm "libdrm_amdgpu.so.1"
+   mv "libdrm_amdgpu.so.1.0.0" "libdrm_amdgpo.so.1.0.0"
+   ln -s "libdrm_amdgpo.so.1.0.0" "libdrm_amdgpo.so.1"
+
+   mv "${srcdir}/opencl32/etc" "${pkgdir}/"
+   mkdir -p ${pkgdir}/usr/lib32
+
+   # orca
+   mv "${srcdir}/opencl32/${shared_32}/libamdocl-orca32.so" "${pkgdir}/usr/lib32/"
+   mv "${srcdir}/libdrm32/${shared2_32}/libdrm_amdgpo.so.1.0.0" "${pkgdir}/usr/lib32/"
+   mv "${srcdir}/libdrm32/${shared2_32}/libdrm_amdgpo.so.1" "${pkgdir}/usr/lib32/"
+
+   rm -r "${srcdir}/opencl32"
+   rm -r "${srcdir}/libdrm32"
+
+}
+
+package_opencl-amd() {
+    pkgdesc="OpenCL userspace driver as provided in the amdgpu-pro driver stack. This package is intended to work along with the free amdgpu stack."
+    license=('custom:AMD')
+    depends=('libdrm' 'ocl-icd' 'gcc-libs' 'numactl')
+    optdepends=('clinfo')
+    provides=('opencl-driver')
+    conflicts=('rocm-opencl-runtime')
+
    mkdir -p "${srcdir}/opencl"
    cd "${srcdir}/opencl"


redshoe commented on 2021-08-18 22:16 (UTC)

@tyler19820201 I have similar model APU (Ryzen 7 4750U) and I was successful with the package version of 20.40.

luciddream commented on 2021-08-18 12:07 (UTC)

@tyler19820201 can you copy paste the command you are using and the error you are getting?

Could it be that your download got corrupted or your RAM is not stable and corrupted the package? I would try to re-download the package if possible.

tyler19820201 commented on 2021-08-18 10:09 (UTC)

I have a new laptop with Ryzen 7 4700U with Radeon graphics ATI 05:00.0 Renoir integrated GPU. I want install this package but it giving me error that the package did not pass the authentication test. I have mesa and xf86-video-ati already installed. Any idea how to install it?

IMBJR commented on 2021-08-16 14:53 (UTC)

@luciddream Running the ldd command as shown gives:

ldd: /usr/bin/clinfo: No such file or directory

luciddream commented on 2021-08-10 17:24 (UTC)

@IMBJR I assume it's because the OpenCL 1.2 library has changed. I was planning to ask yesterday when I updated the package because it's the only big change in the drivers. Can you see if something is missing on the output of ldd -v /usr/bin/clinfo ? If nothing is missing I will pin another comment for Polaris users to stay on 21.20 package.

IMBJR commented on 2021-08-10 15:20 (UTC) (edited on 2021-08-10 15:23 (UTC) by IMBJR)

In Blender: I'm getting just a black object when I try to render the default scene with GPU Compute turned on.

Downgrading to version 21.20.1271047-1 allows the render to be produced normally.

I have an RX 480 GPU, which is a Polaris one. I notice there's a pinned comment about that, but for an older package - and as I say above, the cube renders correctly for the previous version.

Edit: I'm also getting random crashes when I attempt to put Blender into GPU Compute mode.

matbonn commented on 2021-08-10 06:25 (UTC) (edited on 2021-08-10 06:26 (UTC) by matbonn)

@HurricanePootis and luciddream - Thanks for the patch. Installs great and Davinci works 100%. No errors and my old projects export without issues. DarkTable still needs to be the GIT version but thats ok. Thank again!