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.60
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 .. 74 75 76 77 78 79 80 81 Next › Last »

grmat commented on 2017-08-01 17:19 (UTC) (edited on 2017-08-01 17:20 (UTC) by grmat)

Thanks for reporting. The file is located under '/usr/share/libdrm' with the upstream libdrm package and I've just linked it accordingly. However, Alex Deucher also started pushing the libdrm changes by AMD which are required for their hybrid stack publicly[1]. It should now be possible to stop this approach for the OpenCL driver and replace libdrm with libdrm-amd[2]. The hybrid branch at [3] is intended to work with that (also includes Vulkan), but I've had no time to test things yet. I've set the linux-amd-mainline-git kernel as a dependency, which can be found in the AUR[4] and is also pushed out publicly now. [1]: https://cgit.freedesktop.org/~agd5f/drm [2]: https://github.com/grmat/libdrm-amd/blob/master/PKGBUILD [3]: https://github.com/grmat/opencl-amd/blob/hybrid/PKGBUILD [4]: https://aur.archlinux.org/packages/linux-amd-mainline-git

HappyGirl commented on 2017-08-01 17:15 (UTC)

I believe the source directory has changed in the package, as a quick workaround I just made the directory and created a symlink to the copy on my system and it seems to be working fine. I didn't have a copy of the file in /opt where it was expected, in fact the directory didn't exist on my system. Not a great solution but it's a quick workaround sudo find /usr/ -iname "amdgpu.ids" -exec stat -c "%a %n %y" {} \; 644 /usr/share/libdrm/amdgpu.ids 2017-07-19 10:52:24.000000000 -0400 mkdir -p /opt/amdgpu-pro/share/libdrm/ sudo ln -s /usr/share/libdrm/amdgpu.ids /opt/amdgpu-pro/share/libdrm/amdgpu.ids Checking on my Ubunutu 16.04 box that I updated the driver yesterday /usr/share/libdrm/amdgpu.ids does seem to be the last one updated as well so I'd assume they decided to move it but forgot to update some dependencies, but that is just a guess stat /usr/share/libdrm/amdgpu.ids /opt/amdgpu-pro/share/libdrm/amdgpu.ids File: '/usr/share/libdrm/amdgpu.ids' Size: 5488 Blocks: 16 IO Block: 4096 regular file Device: 805h/2053d Inode: 130985 Links: 1 Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2017-08-01 03:53:30.000000000 -0400 Modify: 2017-07-31 12:56:08.000000000 -0400 Change: 2017-08-01 03:53:31.717442199 -0400 Birth: - File: '/opt/amdgpu-pro/share/libdrm/amdgpu.ids' Size: 6110 Blocks: 16 IO Block: 4096 regular file Device: 805h/2053d Inode: 270675 Links: 1 Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2017-08-01 10:57:11.952749332 -0400 Modify: 2017-07-12 10:49:18.000000000 -0400 Change: 2017-07-30 14:35:09.701521015 -0400 Birth: -

maxammann commented on 2017-08-01 13:11 (UTC)

@p4block can confirm, damn worst moment to try this :D

p4block commented on 2017-08-01 13:08 (UTC) (edited on 2017-08-01 13:09 (UTC) by p4block)

With the latest upgrade, openCL apps are complaining about /opt/amdgpu-pro/share/libdrm/amdgpu.ids: No such file or directory And segfault

pgeorgiadis commented on 2017-07-18 07:16 (UTC)

I have a fresh system install which I did 2-3 days ago to test this with an AMD RX550. "lspci -k" shows that the device is recognized and using the amdgpu driver: 01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Polaris12 (rev c7) Subsystem: Device 1da2:e367 Kernel driver in use: amdgpu Kernel modules: amdgpu But "clinfo" shows the platform with name "AMD Accelerated Parallel Processing" with only 1 device, which is the CPU of the system. What am I doing wrong? BTW, AMD seems to have a slightly newer version of the driver here: https://www2.ati.com/drivers/linux/ubuntu/amdgpu-pro-17.10-450821.tar.xz.

marmistrz commented on 2017-07-17 19:33 (UTC)

I was trying to set this up on a friend's computer running Manjaro and I get an error while running clinfo: amdgpu_device_initialize: DRM version is 2.49.0 but this driver is only compatible with 3.x.x.

Vi0L0 commented on 2017-07-13 20:01 (UTC)

@leidola: do_opencl() { rm -r "${srcdir}/opencl" } and then: do_drm() { mv "${srcdir}/opencl/etc" "${pkgdir}/" } how could that work?

grmat commented on 2017-06-28 10:01 (UTC) (edited on 2017-06-28 10:07 (UTC) by grmat)

@leidola: thanks for the update, you could always create a PR ;-) The mid-term target for me would be to actually remove the libdrm fiddling and depend on packages like libdrm-amd (they released libdrm code for their hybrid stack recently*) and linux-amd (mainline). However, I've had problems with that setup which is why I didn't push an update. *see https://cgit.freedesktop.org/~agd5f/drm/log/?h=amd-mainline-hybrid-master20170517 Note that this branch is currently missing the file with the IDs. It could be acquired from upstream or extracted from the -pro stack

leidola commented on 2017-06-27 20:47 (UTC) (edited on 2017-06-27 21:16 (UTC) by leidola)

The following is a patch for 17.20 version. Works for me with my 470 + linux-amd-mainline-git kernel; not sure if the stock kernel works. (or pull from https://github.com/oleid/opencl-amd.git) ######### commit ad2785880854070baaa45fd303ea24a4ce8f45d1 Author: Olaf Leidinger <oleid@mescharet.de> Date: Tue Jun 27 22:43:30 2017 +0200 Restructure + 17.20 version diff --git a/PKGBUILD b/PKGBUILD index 468b7cc..598eaab 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,7 +2,7 @@ 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=17.10.429170 +pkgver=17.20.445420 pkgrel=1 arch=('x86_64') url='http://www.amd.com' @@ -14,30 +14,55 @@ conflicts=('amdgpocl') DLAGENTS='https::/usr/bin/wget --referer https://support.amd.com/en-us/kb-articles/Pages/AMDGPU-PRO-Driver-for-Linux-Release-Notes.aspx -N %u' prefix='amdgpu-pro-' -major='17.10' -minor='429170' +major='17.20' +minor='445420' shared="opt/amdgpu-pro/lib/x86_64-linux-gnu" source=("https://www2.ati.com/drivers/linux/ubuntu/${prefix}${major}-${minor}.tar.xz") -sha256sums=('cb1ea7f9756f197a976138d2c00f239ae4ee43b839fbb1ea57f8770957d4afd6') +sha256sums=('44066abd68be933571e9a01cc2486d458e4250a22e477f9401bc883a5bc49512') pkgver() { echo "${major}.${minor}" } -package() { - mkdir "${srcdir}/opencl" +unpack_deb() { + ar x "$1" + tar xvJf data.tar.xz +} + +do_opencl() +{ + mkdir -p "${srcdir}/opencl" cd "${srcdir}/opencl" - ar x "${srcdir}/${prefix}${major}-${minor}/opencl-amdgpu-pro-icd_${major}-${minor}_amd64.deb" - tar xJf data.tar.xz + unpack_deb "${srcdir}/${prefix}${major}-${minor}/opencl-amdgpu-pro-icd_${major}-${minor}_amd64.deb" + cd ${shared} sed -i "s|libdrm_amdgpu|libdrm_amdgpo|g" libamdocl64.so - mkdir "${srcdir}/libdrm" + rm -r "${srcdir}/opencl" +} + +do_drm_ids() +{ + mkdir -p "${srcdir}/libdrm" + cd "${srcdir}/libdrm" + + unpack_deb "${srcdir}/${prefix}${major}-${minor}/ids-amdgpu-pro_1.0.0-${minor}_all.deb" + mkdir -p ${pkgdir}/opt/amdgpu-pro/share + mv "${srcdir}/libdrm/opt/amdgpu-pro/share/libdrm" "${pkgdir}/opt/amdgpu-pro/share" + + rm -r "${srcdir}/libdrm" +} + + +do_drm() +{ + mkdir -p "${srcdir}/libdrm" cd "${srcdir}/libdrm" - ar x "${srcdir}/${prefix}${major}-${minor}/libdrm-amdgpu-pro-amdgpu1_2.4.70-${minor}_amd64.deb" - tar xJf data.tar.xz + + unpack_deb "${srcdir}/${prefix}${major}-${minor}/libdrm-amdgpu-pro-amdgpu1_2.4.70-${minor}_amd64.deb" cd ${shared} + 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" @@ -49,7 +74,12 @@ package() { mv "${srcdir}/libdrm/${shared}/libdrm_amdgpo.so.1.0.0" "${pkgdir}/usr/lib/" mv "${srcdir}/libdrm/${shared}/libdrm_amdgpo.so.1" "${pkgdir}/usr/lib/" - rm -r "${srcdir}/opencl" rm -r "${srcdir}/libdrm" } +package() { + do_opencl + + do_drm + do_drm_ids +}

milek7 commented on 2017-06-10 15:35 (UTC) (edited on 2017-06-10 15:38 (UTC) by milek7)

For me OpenCL apps don't detect GPUs without libdrm installed.