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.53
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 »

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

luciddream commented on 2021-08-09 20:25 (UTC)

I just noticed there is another release (21.30), I will try to update package later tonight.

matbonn commented on 2021-08-09 17:35 (UTC) (edited on 2021-08-09 17:36 (UTC) by matbonn)

@apaz I used to use this and just comment / uncomment when I wanted to change. I suspect it's an issue with 17.2.2 Build 4. I never used to call progl direct until more recently. I'm about to do a fresh install of Manjaro for testing. Either the issue is with 17.2.2 or latest opencl. PS I never used to get ANY error with DRS. My thinking of blaming opencl is the fact DT broke too.


!/bin/bash
progl() {

#export LD_LIBRARY_PATH="${HOME}/pro/drivers:$#{LD_LIBRARY_PATH}" #export LIBGL_DRIVERS_PATH="${HOME}/pro/drivers/dri" #export dri_driver="amdgpu" #export QT_DEVICE_PIXEL_RATIO=2 #export QT_SCALE_FACTOR=1

} && progl && /opt/resolve/bin/resolve

progl /opt/resolve/bin/resolve


apaz commented on 2021-08-09 16:31 (UTC)

@matbonn

I get that error too, but then everything works for me, including Fusion. Try this script (runDavinci.sh) that I put in the same folder (/home/USER/pro) where I put progl and the amdgpu-pro drivers and libraries. It was made by an Arch user who posted it on the Blackmagic forum. The content of the script is (you have to customize the paths):

echo #!/bin/bash

progl() {
export LD_LIBRARY_PATH="${HOME}/pro/drivers:${LD_LIBRARY_PATH}"
export LIBGL_DRIVERS_PATH="${HOME}/pro/drivers/dri"
#export dri_driver="amdgpu"
} && progl && /opt/resolve/bin/resolve

PS: I have 17.2.1 not the last 17.2.2

matbonn commented on 2021-08-09 15:19 (UTC) (edited on 2021-08-09 15:20 (UTC) by matbonn)

@apaz I use progl. I don't get any errors opening DRS. I can even open empty projects with no errors, add clips etc. but add a fusion effect or just wait a few seconds and error. The moment I add a fusion effect or open my older projects after a couple seconds. I get "The GPU failed to perform image processing because of an error" Error Code: -1.

rolling log shows


0x7efe637ff640 | DVIP | ERROR | 2021-08-09 17:14:49,617 | Failed to build OpenCL program: - Error: CL_BUILD_PROGRAM_FAILURE - Options: " -w -cl-mad-enable -cl-fast-relaxed-math -Dz323df50901b485739bf3a3b9a84c73b0 -Dz6e436e44fad709e7c0aa0046bd091019 -Dzc229ce7b384e9cbe83e58608fba7c36d" - Build log: lld: error: undefined hidden symbol: z1536d0ff067facba3ae1f450c0a9a893

referenced by /tmp/comgr-2a94eb/input/linked.bc.o:(z54ee33ec600f7cd087f01ab97fdc688b) referenced by /tmp/comgr-2a94eb/input/linked.bc.o:(z54ee33ec600f7cd087f01ab97fdc688b) Error: Creating the executable from LLVM IRs failed.


Similar to what Dark Table used to show. I can click OK and continue and it will scrub etc but you can't "DELIVER" the project as it says GPU Error code -1. All thumbnails etc load fine.