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

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!

HurricanePootis commented on 2021-08-09 21:01 (UTC) (edited on 2021-08-09 21:03 (UTC) by HurricanePootis)

I have created a patch for 21.30 :]

diff --git a/.SRCINFO b/.SRCINFO
index d72fa11..6f88d9f 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
 pkgbase = 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 = 21.20.1271047
+   pkgver = 21.30.1290604
    pkgrel = 1
    url = http://www.amd.com
    arch = x86_64
@@ -13,8 +13,7 @@ pkgbase = opencl-amd
    optdepends = clinfo
    provides = opencl-driver
    conflicts = rocm-opencl-runtime
-   source = https://drivers.amd.com/drivers/linux/amdgpu-pro-21.20-1271047-ubuntu-20.04.tar.xz
-   sha256sums = 8ea051de8c9c6814eb45ce18d102e639bb6edb5786e948b50c5105e3e21978f9
+   source = https://drivers.amd.com/drivers/linux/amdgpu-pro-21.30-1290604-ubuntu-20.04.tar.xz
+   sha256sums = 5840aac63a3658b3f790c59e57226062e7e4bc74f3c066a3e7bc9e3065e24382

 pkgname = opencl-amd
-
diff --git a/PKGBUILD b/PKGBUILD
index e435f31..6b9027e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,12 +4,13 @@
 # Contributor: ipha <ipha00 at gmail dot com>
 # Contributor: johnnybash <georgpfahler at wachenzell dot org>
 # Contributor: grmat <grmat at sub dot red>
+# Contributor: HurricanePootis <hurricanepootis@protonmail.com>

 prefix='amdgpu-pro-'
 postfix='-ubuntu-20.04'
-major='21.20'
-minor='1271047'
-amdver='2.4.100'
+major='21.30'
+minor='1290604'
+amdver='2.4.106'
 shared="opt/amdgpu-pro/lib/x86_64-linux-gnu"
 shared2="opt/amdgpu/lib/x86_64-linux-gnu"
 tarname="${prefix}${major}-${minor}${postfix}"
@@ -30,7 +31,7 @@ optdepends=('clinfo')
 DLAGENTS='https::/usr/bin/wget --referer https://www.amd.com/en/support/kb/release-notes/rn-amdgpu-unified-linux-21-20 -N %u'

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

 package() {
    mkdir -p "${srcdir}/opencl"
@@ -73,7 +74,7 @@ package() {
    # roc*
    mv "${srcdir}/opencl/${shared}/libamdocl64.so" "${pkgdir}/usr/lib/"
    mv "${srcdir}/opencl/${shared}/libamd_comgr.so.2.1.0" "${pkgdir}/usr/lib"
-   mv "${srcdir}/opencl/${shared}/libamdhip64.so.4.1.21233-" "${pkgdir}/usr/lib"
+   mv "${srcdir}/opencl/${shared}/libamdhip64.so.4.2.21303-" "${pkgdir}/usr/lib"
    mv "${srcdir}/opencl/${shared}/libamdhip64.so" "${pkgdir}/usr/lib"
    mv "${srcdir}/opencl/${shared}/libamdhip64.so.4" "${pkgdir}/usr/lib"    
    mv "${srcdir}/opencl/${shared}/libhsa-runtime64.so.1.3.0" "${pkgdir}/usr/lib"
@@ -89,7 +90,6 @@ package() {

    # orca
    mv "${srcdir}/opencl/${shared}/libamdocl-orca64.so" "${pkgdir}/usr/lib/"
-   mv "${srcdir}/opencl/${shared}/libamdocl12cl64.so" "${pkgdir}/usr/lib/"
    mv "${srcdir}/libdrm/${shared2}/libdrm_amdgpo.so.1.0.0" "${pkgdir}/usr/lib/"
    mv "${srcdir}/libdrm/${shared2}/libdrm_amdgpo.so.1" "${pkgdir}/usr/lib/"

You can apply the patch to the files by copying and pasting the text into a file, lets call it 21.30.patch in the main directory of the PKGBUILD. Then you can run the command

patch -p1 < 21.30.patch