Package Details: opencl-amd 1:6.1.1-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, hsakmt-roct, hsakmt-roct-dev, libdrm-amdgpu-amdgpu1, openmp-extras-runtime, rocdecode, rocdecode-dev, rocm-clang-ocl, 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, hsakmt-roct, hsakmt-roct-dev, libdrm-amdgpu-amdgpu1, opencl-driver, openmp-extras-runtime, rocdecode, rocdecode-dev, rocm-clang-ocl, 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: 131
Popularity: 0.67
First Submitted: 2016-12-01 03:45 (UTC)
Last Updated: 2024-05-09 21:58 (UTC)

Required by (114)

Sources (39)

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 2024-05-09 22:00 (UTC) by luciddream)

Current release is for ROCm 6.1.1 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 .. 9 10 11 12 13 14 15 16 17 18 19 .. 77 Next › Last »

magicgoose commented on 2022-10-03 07:10 (UTC) (edited on 2022-10-03 07:17 (UTC) by magicgoose)

darktable (which uses OpenCL) fails to start after the latest update of opencl-amd, with an error related to OpenCL.

I was interested to try opencl-amd-polaris, but seems like it was deleted, there's no such AUR page at the moment.

Then I tried downgrading package opencl-amd (22.40.0.50300-1 => 22.20.3.50203-1) and it helped.

wsippel commented on 2022-10-02 09:02 (UTC) (edited on 2022-10-02 09:55 (UTC) by wsippel)

@apaz no, both luciddream's and my PKGBUILD should be basically the same (arch4edu's are definitely different, they are based on rocm-arch AFAIK). Do you use the Arch Blender package? Because that one doesn't work for me, either. The official binary from blender.org works fine with luciddream's package, I switched over yesterday and just tested it.

EDIT: Just checked, Arch's Blender package has HIP support enabled, but doesn't include any kernels (or at least no kernels for RDNA1), so HIP tries to compile them at runtime, which doesn't work with opencl-amd because the compiler isn't included in this package - it's in opencl-amd-dev. The official Blender binary comes with all kernels for supported GPUs and works fine with just opencl-amd, if you want to save a few gigabytes of disk space.

luciddream commented on 2022-10-02 08:11 (UTC)

@apaz Blender cycles works for me with latest opencl-amd and a Sapphire 5700xt Nitro+. I've only tested one scene though.

apaz commented on 2022-10-02 07:36 (UTC)

@wsippel I have a RDNA1 (RX5700XT); Blender's Cycles does not work for me with either opencl-amd(-dev) or ROCm installed from the Arch4edu repository. Does your PKGBUILD do different things with these 2 packages?

luciddream commented on 2022-10-01 23:29 (UTC)

@wsippel yes but it's probably a mistake, I bet they are going to fix it or make another release soon.

wsippel commented on 2022-10-01 22:34 (UTC)

@luciddream I meant AMD doesn't seem to provide opencl-legacy-amdgpu-pro-icd anymore, which used to contain the legacy OpenCL driver, no?

luciddream commented on 2022-10-01 21:25 (UTC)

@wsippel I don't think they removed legacy support. It's just broken, as it has been before for other releases. I will update the comment so people know to revert back to the previous driver if they need legacy support.

I will also keep the naming scheme for now, I don't want to rush things when it's obvious there are issues with AMD's releases.

p.s updating opencl-amd-dev was a pain, I hope in the future they will decide to use zstd instead of xz / gzip

wsippel commented on 2022-10-01 08:52 (UTC) (edited on 2022-10-01 09:31 (UTC) by wsippel)

PKGBUILD for ROCm 5.3. Not sure if it's correct, but the filenames and hashes are, at least. I don't know why, but going by the way AMD names the directories, they apparently dropped the 'year.release' naming scheme, so this would be just version 5.3, not 22.xx.0.50300. Also, the Orca legacy OpenCL driver seems to be gone, and openmp-extras was split in two (openmp-extras-runtime and openmp-extras-dev), I included both. Successfully tested with Blender 3.3, HIP acceleration in Cycles finally works on RDNA1 (and hopefully Vega), PyTorch-ROCm also works fine, but Hashcat is broken.

# Maintainer: Carson Rueter <roachh at proton mail dot com>
# Co-Maintainer: George Sofianos

# Release notes https://docs.amd.com/bundle/ROCm-Release-Notes-v5.2/page/About_This_Document.html
amdgpu_install='5.3'
amdgpu_version='5.3'
rocm_version='50300'
amdgpu_build_id='1483871~22.04'
rocm_build_id='63~22.04'
amdgpu_repo='https://repo.radeon.com/amdgpu/5.3/ubuntu'
rocm_repo='https://repo.radeon.com/rocm/apt/5.3'
opencl_lib='opt/rocm-5.3.0/opencl/lib'
rocm_lib='opt/rocm-5.3.0/lib'
hip_lib='opt/rocm-5.3.0/hip/lib/'
amdgpu="opt/amdgpu/lib/x86_64-linux-gnu"
amdgpu_pro="opt/amdgpu-pro/lib/x86_64-linux-gnu/"

pkgname=opencl-amd
pkgdesc="ROCr OpenCL stack, supports Vega 10 and later products - Legacy OpenCL stack (Proprietary), supports legacy products older than Vega 10 - This package is intended to work along with the free amdgpu stack."            
pkgver=${amdgpu_install}
pkgrel=1
arch=('x86_64')
url='http://www.amd.com'
license=('custom:AMD')
makedepends=('wget')
depends=('libdrm' 'ocl-icd' 'gcc-libs' 'numactl' 'ncurses5-compat-libs')
conflicts=('rocm-opencl-runtime')
provides=('opencl-driver' 'rocm-core' 'rocm-cmake' 'hsakmt-roct-dev' 'hsa-rocr' 'hsa-rocr-dev' 'rocminfo' 'hip-runtime-amd' 'rocm-device-libs' 'rocm-language-runtime' 
    'rocm-hip-runtime' 'rocm-ocl-icd' 'rocm-opencl' 'rocm-opencl-dev' 'rocm-opencl-runtime')
optdepends=('clinfo' 'opencl-amd-dev')

source=(
# LIBDRM
"https://repo.radeon.com/amdgpu/5.3/ubuntu/pool/main/libd/libdrm-amdgpu/libdrm-amdgpu-amdgpu1_2.4.112.50300-1483871.22.04_amd64.deb"
# ROCM
"https://repo.radeon.com/rocm/apt/5.3/pool/main/r/rocm-core/rocm-core_5.3.0.50300-63~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.3/pool/main/c/comgr/comgr_2.4.0.50300-63~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.3/pool/main/h/hip-dev/hip-dev_5.3.22061.50300-63~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.3/pool/main/h/hip-doc/hip-doc_5.3.22061.50300-63~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.3/pool/main/h/hip-samples/hip-samples_5.3.22061.50300-63~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.3/pool/main/h/hsakmt-roct-dev/hsakmt-roct-dev_20220803.1.8.50300-63~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.3/pool/main/h/hsa-rocr/hsa-rocr_1.7.0.50300-63~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.3/pool/main/h/hsa-rocr-dev/hsa-rocr-dev_1.7.0.50300-63~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.3/pool/main/r/rocminfo/rocminfo_1.0.0.50300-63~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.3/pool/main/h/hip-runtime-amd/hip-runtime-amd_5.3.22061.50300-63~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.3/pool/main/r/rocm-device-libs/rocm-device-libs_1.0.0.50300-63~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.3/pool/main/r/rocm-language-runtime/rocm-language-runtime_5.3.0.50300-63~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.3/pool/main/r/rocm-hip-runtime/rocm-hip-runtime_5.3.0.50300-63~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.3/pool/main/r/rocm-ocl-icd/rocm-ocl-icd_2.0.0.50300-63~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.3/pool/main/r/rocm-opencl/rocm-opencl_2.0.0.50300-63~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.3/pool/main/r/rocm-opencl-dev/rocm-opencl-dev_2.0.0.50300-63~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.3/pool/main/r/rocm-opencl-runtime/rocm-opencl-runtime_5.3.0.50300-63~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.3/pool/main/o/openmp-extras-runtime/openmp-extras-runtime_15.53.0.50300-63~22.04_amd64.deb"
# ROCM DEV
"https://repo.radeon.com/rocm/apt/5.3/pool/main/r/rocm-clang-ocl/rocm-clang-ocl_0.5.0.50300-63~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.3/pool/main/o/openmp-extras-dev/openmp-extras-dev_15.53.0.50300-63~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.3/pool/main/r/rocm-smi-lib/rocm-smi-lib_5.0.0.50300-63~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.3/pool/main/r/rocm-cmake/rocm-cmake_0.8.0.50300-63~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.3/pool/main/r/rocm-dbgapi/rocm-dbgapi_0.67.0.50300-63~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.3/pool/main/r/rocm-debug-agent/rocm-debug-agent_2.0.3.50300-63~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.3/pool/main/r/rocm-gdb/rocm-gdb_12.1.50300-63~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.3/pool/main/r/rocm-utils/rocm-utils_5.3.0.50300-63~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.3/pool/main/r/rocprofiler-dev/rocprofiler-dev_1.0.0.50300-63~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.3/pool/main/r/roctracer-dev/roctracer-dev_4.1.0.50300-63~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.3/pool/main/r/rocm-dev/rocm-dev_5.3.0.50300-63~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.3/pool/main/h/hsa-amd-aqlprofile/hsa-amd-aqlprofile_1.0.0.50300-63~22.04_amd64.deb"
# Proprietary
#"https://repo.radeon.com/amdgpu/22.20.3/ubuntu/pool/proprietary/o/opencl-legacy-amdgpu-pro/opencl-legacy-amdgpu-pro-icd_22.20-1462318~22.04_amd64.deb"
#"https://repo.radeon.com/amdgpu/22.20.3/ubuntu/pool/proprietary/c/clinfo-amdgpu-pro/clinfo-amdgpu-pro_22.10-1462318~22.04_amd64.deb"
#"https://repo.radeon.com/amdgpu/22.20.3/ubuntu/pool/proprietary/o/ocl-icd-amdgpu-pro/ocl-icd-libopencl1-amdgpu-pro_22.10-1462318~22.04_amd64.deb"
#"https://repo.radeon.com/amdgpu/22.20.3/ubuntu/pool/proprietary/a/amf-amdgpu-pro/amf-amdgpu-pro_1.4.24-1462318~22.04_amd64.deb"
)

sha256sums=(
"3248b09dda58dd9a03bb0d00052af46648e76f7874c86c522f72e2db9bc2d762"

"9755a7a06f29529c675bdf516b79d52c8b46c1cb7b5a3749221a2de379f594ef"
"2f319ea328850c4c764ac2caf11974ea2cd6833c5dad279df60251f9b49d11fc"
"4bf9c0ad3dde077bb69d821a1b67ef7224120a80b8db71b0c4ee092a32f57b2a"
"982c91201cbe91ed88c442d462bd062009155406bc54681db41dd4c992168cc9"
"8fb9424b1b9fedd050d549c942332bcae0ac9c785a59ffeb44cbb9ffcfe08dc8"
"3cca7470ab22aa9263cffe54080719c8faf672070126c28ae638e57ec6c8d548"
"7806b9fee2de2635788db0922294aeeaa5f6589b954c2485fdac9b19e7b6170b"
"c7df12afb386c66548789ee840421da10b5a76e03ba381a91d9544f29ea9f188"
"6fbf312bdde68a67e645dc24fdedb7df006846ccb26b466b4f70fbfad07c794f"
"21b3b0fe687ff2c5795288a9473ed77c596bdceb26ba42e24f87fbfabda9d4ea"
"eb5ef2ebc8c41c4838b79952c1facf635eed85294b83e26c15e0162183754295"
"ec3014c3a5c246415db11323d9744d147a905f127e354f39856ee6dfb6c132c6"
"69cef8d550af582666af0cec2e3315da9d7704b46cacca55b5adf087bf7d7cb8"
"1937022c82a9c66e901ba79326b5e021d606ee29ba00f7e6cfb83833640359f5"
"7adcb5dfaf5b802b6cbc038b603a3c0cf5201a63d9044b20c7c31aa62f943f0d"
"8226e6a3bbe2b49d0ce3e06cf66fb1417cd5cb72d493f3e672f45bca4bdfdd8c"
"aff2698fa346a622efda1e488e7ea678b6aec95211f6ae45b31a959677c88fe7"
"f862bb14cbba8a463dde71bf0ba69fef095b335a127ef6aeafba33d849c67e54"

"84469921e2c235846d02244f15c61929661bd3fc6b9f9cc833252882df06c799"
"d3bf5fda899e83d2f8b3f30103cc008fbce3abe008a4c47a812218d40aacf3cf"
"7e13a9215f7f47b7945725ca407a7a8a2040e80a4662b77a4c9586f8986ee6b8"
"e37d188c1cdeb565d1beb65f1641c37b04f07d5cba89afeff93eae82096bfec2"
"212d162eba0481950aa0a527472d1ad6f171b13d860463cea01bd45e6c93fb4e"
"5076d51a2dbfca1d3562e91a297715550db408acaf0fe0e8a756e75b4445f975"
"91b5125fc041b29bc68f53134441fd97874ed3568f90f28cf808d8b27c33b6db"
"82c29972a86103b4b8df3edd41f9b71b883b220257ecd98d04c7353a17e96a81"
"44978ff0331ae1362ef49d114a00e6cce098213b5eaf77858af1ed2023e00291"
"af62c042aeba930971e4182d4c7edb3544378a540fcec93d8b375724e8b2e2ba"
"77d986836cc0e9058749807076733a1825502e0883bec06f52af56d2fa5ae145"
"46635f4f019aba1c3a53665430b0de70b992700e852f08b36f54ff33ca7e3ec7"
)

#Extract .xz files
exz() {
    ar x $1
    tar xJf data.tar.xz
    rm data.tar.xz
}
#Extract .gz files
egz() {
    ar x $1
    tar xfx data.tar.gz
    rm data.tar.gz
}

package() {
    egz "${srcdir}/rocm-core_5.3.0.50300-63~22.04_amd64.deb"
    egz "${srcdir}/comgr_2.4.0.50300-63~22.04_amd64.deb"
    egz "${srcdir}/hip-dev_5.3.22061.50300-63~22.04_amd64.deb"
    egz "${srcdir}/hip-doc_5.3.22061.50300-63~22.04_amd64.deb"
    egz "${srcdir}/hip-samples_5.3.22061.50300-63~22.04_amd64.deb"
    egz "${srcdir}/hsakmt-roct-dev_20220803.1.8.50300-63~22.04_amd64.deb"
    egz "${srcdir}/hsa-rocr_1.7.0.50300-63~22.04_amd64.deb"
    egz "${srcdir}/hsa-rocr-dev_1.7.0.50300-63~22.04_amd64.deb"
    egz "${srcdir}/rocminfo_1.0.0.50300-63~22.04_amd64.deb"
    egz "${srcdir}/hip-runtime-amd_5.3.22061.50300-63~22.04_amd64.deb"
    egz "${srcdir}/rocm-device-libs_1.0.0.50300-63~22.04_amd64.deb"
    egz "${srcdir}/rocm-language-runtime_5.3.0.50300-63~22.04_amd64.deb"
    egz "${srcdir}/rocm-hip-runtime_5.3.0.50300-63~22.04_amd64.deb"
    egz "${srcdir}/rocm-ocl-icd_2.0.0.50300-63~22.04_amd64.deb"
    egz "${srcdir}/rocm-opencl_2.0.0.50300-63~22.04_amd64.deb"
    egz "${srcdir}/rocm-opencl-dev_2.0.0.50300-63~22.04_amd64.deb"
    egz "${srcdir}/rocm-opencl-runtime_5.3.0.50300-63~22.04_amd64.deb"
    exz "${srcdir}/rocm-clang-ocl_0.5.0.50300-63~22.04_amd64.deb"
    egz "${srcdir}/rocm-smi-lib_5.0.0.50300-63~22.04_amd64.deb"
    exz "${srcdir}/rocm-cmake_0.8.0.50300-63~22.04_amd64.deb"
    egz "${srcdir}/rocm-dbgapi_0.67.0.50300-63~22.04_amd64.deb"
    egz "${srcdir}/rocm-debug-agent_2.0.3.50300-63~22.04_amd64.deb"
    egz "${srcdir}/rocm-utils_5.3.0.50300-63~22.04_amd64.deb"
    egz "${srcdir}/rocprofiler-dev_1.0.0.50300-63~22.04_amd64.deb"
    egz "${srcdir}/roctracer-dev_4.1.0.50300-63~22.04_amd64.deb"
    egz "${srcdir}/rocm-dev_5.3.0.50300-63~22.04_amd64.deb"
    egz "${srcdir}/hsa-amd-aqlprofile_1.0.0.50300-63~22.04_amd64.deb"
    exz "${srcdir}/libdrm-amdgpu-amdgpu1_2.4.112.50300-1483871.22.04_amd64.deb"
    egz "${srcdir}/openmp-extras-runtime_15.53.0.50300-63~22.04_amd64.deb"
    egz "${srcdir}/openmp-extras-dev_15.53.0.50300-63~22.04_amd64.deb"
    egz "${srcdir}/rocm-gdb_12.1.50300-63~22.04_amd64.deb"

    cd ${srcdir}/${amdgpu}
    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"

    # legacy
    mkdir -p ${pkgdir}/usr/lib
    mv "${srcdir}/${amdgpu}/libdrm_amdgpo.so.1.0.0" "${pkgdir}/usr/lib/"
    mv "${srcdir}/${amdgpu}/libdrm_amdgpo.so.1" "${pkgdir}/usr/lib/"

    mv "${srcdir}/opt/" "${pkgdir}/"
    ln -s "/opt/rocm-5.3.0" "$pkgdir/opt/rocm"
    #ln -s "/opt/rocm-5.3/hip/bin/.hipVersion" "$pkgdir/opt/rocm-5.3/bin/.hipVersion"

    mkdir -p "${pkgdir}/opt/amdgpu/share/libdrm"
    cd "${pkgdir}/opt/amdgpu/share/libdrm"
    ln -s /usr/share/libdrm/amdgpu.ids amdgpu.ids

    mkdir -p ${pkgdir}/etc/OpenCL/vendors   
    echo libamdocl64.so > "${pkgdir}/etc/OpenCL/vendors/amdocl64.icd"

    mkdir -p ${pkgdir}/etc/ld.so.conf.d
    echo /opt/rocm-5.3.0/opencl/lib > "$pkgdir/etc/ld.so.conf.d/opencl-amd.conf"
    echo /opt/rocm-5.3.0/lib >> "$pkgdir/etc/ld.so.conf.d/opencl-amd.conf"
    echo /opt/rocm-5.3.0/hip/lib >> "$pkgdir/etc/ld.so.conf.d/opencl-amd.conf"

    mkdir -p ${pkgdir}/etc/profile.d
    echo export PATH="\${PATH}:/opt/rocm-5.3.0/bin:/opt/rocm-5.3.0/hip/bin" > "$pkgdir/etc/profile.d/opencl-amd.sh"
}

ajb139 commented on 2022-09-15 02:57 (UTC)

hi. I was wondering if you had any guidance for installing on steam deck so blender will recognize its rdna2 gpu. Will will these drivers help? Thanks.

ezra commented on 2022-09-12 23:57 (UTC)

My bad, forgot to install the dev package + was using an out of date version for this one (chaotic moment).