Package Details: opencl-amd-dev 1:6.0.2-1

Git Clone URL: https://aur.archlinux.org/opencl-amd-dev.git (read-only, click to copy)
Package Base: opencl-amd-dev
Description: OpenCL SDK / HIP SDK / ROCM Compiler. This package needs at least 10GB of space.
Upstream URL: http://www.amd.com
Licenses: custom:AMD
Conflicts: amd-smi-lib, composablekernel-dev, hipblas, hipblas-dev, hipblaslt, hipblaslt-dev, hipcub, hipcub-dev, hipfft, hipfft-dev, hipfort, hipfort-dev, hipify-clang, hiprand, hiprand-dev, hipsolver, hipsolver-dev, hipsparse, hipsparse-dev, hipsparselt, hipsparselt-dev, hiptensor, hiptensor-dev, miopen, miopen-hip, miopen-hip-dev, openmp-extras-dev, rccl, rccl-dev, rocalution, rocalution-dev, rocblas, rocblas-dev, rocfft, rocfft-dev, rocm-developer-tools, rocm-hip-libraries, rocm-hip-runtime-dev, rocm-hip-sdk, rocm-llvm, rocm-ml-libraries, rocm-ml-sdk, rocm-opencl-sdk, rocprim, rocprim-dev, rocrand, rocrand-dev, rocsolver, rocsolver-dev, rocsparse, rocsparse-dev, rocthrust, rocthrust-dev, rocwmma-dev
Provides: amd-smi-lib, composablekernel-dev, half, hipblas, hipblas-dev, hipblaslt, hipblaslt-dev, hipcub, hipcub-dev, hipfft, hipfft-dev, hipfort, hipfort-dev, hipify-clang, hiprand, hiprand-dev, hipsolver, hipsolver-dev, hipsparse, hipsparse-dev, hipsparselt, hipsparselt-dev, hiptensor, hiptensor-dev, miopen, miopen-hip, miopen-hip-dev, openmp-extras-dev, rccl, rccl-dev, rocalution, rocalution-dev, rocblas, rocblas-dev, rocfft, rocfft-dev, rocm-developer-tools, rocm-hip-libraries, rocm-hip-runtime-dev, rocm-hip-sdk, rocm-llvm, rocm-ml-libraries, rocm-ml-sdk, rocm-opencl-sdk, rocprim, rocprim-dev, rocrand, rocrand-dev, rocsolver, rocsolver-dev, rocsparse, rocsparse-dev, rocthrust, rocthrust-dev, rocwmma-dev
Submitter: luciddream
Maintainer: luciddream
Last Packager: luciddream
Votes: 6
Popularity: 0.000243
First Submitted: 2021-12-26 15:01 (UTC)
Last Updated: 2024-02-02 22:44 (UTC)

Dependencies (2)

Required by (96)

Sources (49)

Pinned Comments

luciddream commented on 2022-01-12 16:47 (UTC) (edited on 2024-02-02 22:45 (UTC) by luciddream)

Latest release: 6.0.2. It uses 20.36GB of disk.

Latest Comments

1 2 3 4 5 6 7 Next › Last »

luciddream commented on 2023-12-17 12:12 (UTC)

I had to make a second release because of missing hipsparselt library (it's also missing from the ubuntu release). Sorry about that.

trougnouf commented on 2023-11-02 12:42 (UTC)

PKGBUILD for 5.7.1 which uses /opt/rocm (compat. w/ magma-hip): https://pastebin.com/raw/4u51YyuR

trougnouf commented on 2023-10-05 16:14 (UTC)

For anyone else having trouble with magma-hip, here is a PKGBUILD which doesn't own /opt/rocm: https://pastebin.com/raw/j2wwQb8C

luciddream commented on 2023-09-16 10:25 (UTC)

I've updated the package to 5.7.0 - This release was quick so I didn't manage to complete my helper scripts. Lets hope everything is in there.

I've also added hipTensor library. For some reason it's missing in the Ubuntu release. Please comment if anything is not working properly.

luciddream commented on 2023-06-29 22:42 (UTC)

Thanks @DgDev91. My script actually picked it up, but my brain ignored it (there are a few more that get picked up that are not relevant to the package, i will improve the script so they are removed).

I've added it to the opencl-amd package and made a second release.

DgDev91 commented on 2023-06-29 22:29 (UTC)

@luciddream Seems like in 5.6.0 hipcc is in a separate package too: https://repo.radeon.com/rocm/apt/5.6/pool/main/h/hipcc/hipcc_1.0.0.50600-67~22.04_amd64.deb

luciddream commented on 2023-06-29 22:08 (UTC) (edited on 2023-06-29 22:08 (UTC) by luciddream)

Hi all and @wsippel, just a reminder in case I get hit by a bus or something, sometimes it's not so simple to just update the versions, which is why I go through every time the whole process of the Ubuntu installation and check most of the files installed.

For example for 5.6.0 there is a new library hipblaslt which I just added to the package. Have fun and all feedback is welcome!

wsippel commented on 2023-06-29 09:24 (UTC) (edited on 2023-06-29 09:35 (UTC) by wsippel)

5.6 PKGBUILD:

# Release notes https://docs.amd.com/bundle/ROCm-Release-Notes-v5.6/page/About_This_Document.html
amdgpu_repo='https://repo.radeon.com/amdgpu/5.6/ubuntu'
rocm_repo='https://repo.radeon.com/rocm/apt/5.6'
opencl_lib='opt/rocm-5.6.0/opencl/lib'
rocm_lib='opt/rocm-5.6.0/lib'
hip_lib='opt/rocm-5.6.0/hip/lib/'
amdgpu="opt/amdgpu/lib/x86_64-linux-gnu"
amdgpu_pro="opt/amdgpu-pro/lib/x86_64-linux-gnu/"

pkgname=opencl-amd-dev
pkgdesc="OpenCL SDK / HIP SDK / ROCM Compiler. This package needs at least 10GB of space."
pkgver=5.6.0
pkgrel=1
epoch=1
arch=('x86_64')
url='http://www.amd.com'
license=('custom:AMD')
makedepends=('wget')
depends=('opencl-amd')
provides=('rocm-llvm' 'rocblas' 'rocblas-dev' 'rocsolver' 'rocsolver-dev' 'hipblas' 'hipblas-dev' 'rocprim' 'rocprim-dev' 'hipcub' 'hipcub-dev' 'rocfft' 'rocfft-dev' 'hipfft' 'hipfft-dev' 'hipfort' 'hipfort-dev' 
    'hipify-clang' 'hipsolver' 'hipsolver-dev' 'rocsparse' 'rocsparse-dev' 'hipsparse' 'hipsparse-dev' 'openmp-extras-dev' 'rccl' 'rccl-dev' 'rocrand' 'rocrand-dev' 'rocalution' 'rocalution-dev' 'rocm-hip-libraries' 
    'rocm-hip-runtime-dev' 'rocthrust' 'rocthrust-dev' 'rocm-hip-sdk' 'rocm-opencl-sdk' 'rocwmma-dev' 'rocm-developer-tools' 'miopen' 'miopen-hip' 'miopen-hip-dev' 'rocm-ml-libraries' 'rocm-ml-sdk')
conflicts=('rocm-llvm' 'rocblas' 'rocblas-dev' 'rocsolver' 'rocsolver-dev' 'hipblas' 'hipblas-dev' 'rocprim' 'rocprim-dev' 'hipcub' 'hipcub-dev' 'rocfft' 'rocfft-dev' 'hipfft' 'hipfft-dev' 'hipfort' 'hipfort-dev' 
    'hipify-clang' 'hipsolver' 'hipsolver-dev' 'rocsparse' 'rocsparse-dev' 'hipsparse' 'hipsparse-dev' 'openmp-extras-dev' 'rccl' 'rccl-dev' 'rocrand' 'rocrand-dev' 'rocalution' 'rocalution-dev' 'rocm-hip-libraries' 
    'rocm-hip-runtime-dev' 'rocthrust' 'rocthrust-dev' 'rocm-hip-sdk' 'rocm-opencl-sdk' 'rocwmma-dev' 'rocm-developer-tools' 'miopen' 'miopen-hip' 'miopen-hip-dev' 'rocm-ml-libraries' 'rocm-ml-sdk')

source=(
"https://repo.radeon.com/rocm/apt/5.6/pool/main/o/openmp-extras-dev/openmp-extras-dev_16.56.0.50600-67~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.6/pool/main/r/rocm-llvm/rocm-llvm_16.0.0.23243.50600-67~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.6/pool/main/r/rocblas/rocblas_3.0.0.50600-67~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.6/pool/main/r/rocblas-dev/rocblas-dev_3.0.0.50600-67~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.6/pool/main/r/rocsolver/rocsolver_3.22.0.50600-67~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.6/pool/main/r/rocsolver-dev/rocsolver-dev_3.22.0.50600-67~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.6/pool/main/h/hipblas/hipblas_1.0.0.50600-67~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.6/pool/main/h/hipblas-dev/hipblas-dev_1.0.0.50600-67~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.6/pool/main/r/rocprim-dev/rocprim-dev_2.13.0.50600-67~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.6/pool/main/h/hipcub-dev/hipcub-dev_2.13.1.50600-67~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.6/pool/main/r/rocfft/rocfft_1.0.23.50600-67~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.6/pool/main/r/rocfft-dev/rocfft-dev_1.0.23.50600-67~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.6/pool/main/h/hipfft/hipfft_1.0.12.50600-67~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.6/pool/main/h/hipfft-dev/hipfft-dev_1.0.12.50600-67~22.04_amd64.deb"
#"https://repo.radeon.com/rocm/apt/5.6/pool/main/h/hipfort/hipfort_0.4.0.50501-74~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.6/pool/main/h/hipfort-dev/hipfort-dev_0.4.0.50600-67~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.6/pool/main/h/hipsolver/hipsolver_1.8.0.50600-67~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.6/pool/main/h/hipsolver-dev/hipsolver-dev_1.8.0.50600-67~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.6/pool/main/h/hipify-clang/hipify-clang_16.0.0.50600-67~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.6/pool/main/r/rocsparse/rocsparse_2.5.2.50600-67~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.6/pool/main/r/rocsparse-dev/rocsparse-dev_2.5.2.50600-67~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.6/pool/main/h/hipsparse/hipsparse_2.3.6.50600-67~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.6/pool/main/h/hipsparse-dev/hipsparse-dev_2.3.6.50600-67~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.6/pool/main/r/rccl/rccl_2.16.5.50600-67~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.6/pool/main/r/rccl-dev/rccl-dev_2.16.5.50600-67~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.6/pool/main/r/rocrand/rocrand_2.10.17.50600-67~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.6/pool/main/r/rocrand-dev/rocrand-dev_2.10.17.50600-67~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.6/pool/main/r/rocalution/rocalution_2.1.9.50600-67~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.6/pool/main/r/rocalution-dev/rocalution-dev_2.1.9.50600-67~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.6/pool/main/r/rocm-hip-libraries/rocm-hip-libraries_5.6.0.50600-67~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.6/pool/main/r/rocm-hip-runtime-dev/rocm-hip-runtime-dev_5.6.0.50600-67~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.6/pool/main/r/rocthrust-dev/rocthrust-dev_2.18.0.50600-67~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.6/pool/main/r/rocm-hip-sdk/rocm-hip-sdk_5.6.0.50600-67~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.6/pool/main/r/rocm-opencl-sdk/rocm-opencl-sdk_5.6.0.50600-67~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.6/pool/main/r/rocwmma-dev/rocwmma-dev_1.1.0.50600-67~22.04_amd64.deb"
#"https://repo.radeon.com/rocm/apt/5.6/pool/main/r/rocm-developer-tools/rocm-developer-tools_5.4.3.50501-74~22.04_amd64.deb"
# ML
"https://repo.radeon.com/rocm/apt/5.6/pool/main/m/miopen-hip/miopen-hip_2.20.0.50600-67~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.6/pool/main/m/miopen-hip-dev/miopen-hip-dev_2.20.0.50600-67~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.6/pool/main/r/rocm-ml-libraries/rocm-ml-libraries_5.6.0.50600-67~22.04_amd64.deb"
"https://repo.radeon.com/rocm/apt/5.6/pool/main/r/rocm-ml-sdk/rocm-ml-sdk_5.6.0.50600-67~22.04_amd64.deb"
)

sha256sums=(
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
)

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

package() {
    egz "${srcdir}/openmp-extras-dev_16.56.0.50600-67~22.04_amd64.deb"
    egz "${srcdir}/rocm-llvm_16.0.0.23243.50600-67~22.04_amd64.deb"
    exz "${srcdir}/rocblas_3.0.0.50600-67~22.04_amd64.deb"
    exz "${srcdir}/rocblas-dev_3.0.0.50600-67~22.04_amd64.deb"
    exz "${srcdir}/hipblas_1.0.0.50600-67~22.04_amd64.deb"
    exz "${srcdir}/hipblas-dev_1.0.0.50600-67~22.04_amd64.deb"
    exz "${srcdir}/rocprim-dev_2.13.0.50600-67~22.04_amd64.deb"
    exz "${srcdir}/hipcub-dev_2.13.1.50600-67~22.04_amd64.deb"
    exz "${srcdir}/rocfft_1.0.23.50600-67~22.04_amd64.deb"
    exz "${srcdir}/rocfft-dev_1.0.23.50600-67~22.04_amd64.deb"
    exz "${srcdir}/hipfft_1.0.12.50600-67~22.04_amd64.deb"
    exz "${srcdir}/hipfft-dev_1.0.12.50600-67~22.04_amd64.deb"
    #exz "${srcdir}/hipfort_0.4.0.50501-74~22.04_amd64.deb"
    exz "${srcdir}/hipfort-dev_0.4.0.50600-67~22.04_amd64.deb"
    exz "${srcdir}/hipsolver_1.8.0.50600-67~22.04_amd64.deb"
    exz "${srcdir}/hipsolver-dev_1.8.0.50600-67~22.04_amd64.deb"
    egz "${srcdir}/hipify-clang_16.0.0.50600-67~22.04_amd64.deb"
    exz "${srcdir}/rocsparse_2.5.2.50600-67~22.04_amd64.deb"
    exz "${srcdir}/rocsparse-dev_2.5.2.50600-67~22.04_amd64.deb"
    exz "${srcdir}/hipsparse_2.3.6.50600-67~22.04_amd64.deb"
    exz "${srcdir}/hipsparse-dev_2.3.6.50600-67~22.04_amd64.deb"
    exz "${srcdir}/miopen-hip_2.20.0.50600-67~22.04_amd64.deb"
    exz "${srcdir}/miopen-hip-dev_2.20.0.50600-67~22.04_amd64.deb"
    exz "${srcdir}/rccl_2.16.5.50600-67~22.04_amd64.deb"
    exz "${srcdir}/rccl-dev_2.16.5.50600-67~22.04_amd64.deb"
    exz "${srcdir}/rocrand_2.10.17.50600-67~22.04_amd64.deb"
    exz "${srcdir}/rocrand-dev_2.10.17.50600-67~22.04_amd64.deb"
    exz "${srcdir}/rocalution_2.1.9.50600-67~22.04_amd64.deb"
    exz "${srcdir}/rocalution-dev_2.1.9.50600-67~22.04_amd64.deb"
    egz "${srcdir}/rocm-hip-libraries_5.6.0.50600-67~22.04_amd64.deb"
    egz "${srcdir}/rocm-hip-runtime-dev_5.6.0.50600-67~22.04_amd64.deb"
    exz "${srcdir}/rocsolver_3.22.0.50600-67~22.04_amd64.deb"
    exz "${srcdir}/rocsolver-dev_3.22.0.50600-67~22.04_amd64.deb"
    exz "${srcdir}/rocthrust-dev_2.18.0.50600-67~22.04_amd64.deb"
    egz "${srcdir}/rocm-hip-sdk_5.6.0.50600-67~22.04_amd64.deb"
    egz "${srcdir}/rocm-opencl-sdk_5.6.0.50600-67~22.04_amd64.deb"
    exz "${srcdir}/rocwmma-dev_1.1.0.50600-67~22.04_amd64.deb"
    # egz "${srcdir}/rocm-developer-tools_5.4.3.50501-74~22.04_amd64.deb"
    egz "${srcdir}/rocm-ml-libraries_5.6.0.50600-67~22.04_amd64.deb"
    egz "${srcdir}/rocm-ml-sdk_5.6.0.50600-67~22.04_amd64.deb"

    mv "${srcdir}/opt/" "${pkgdir}/"
    # mkdir -p "${pkgdir}/opt/rocm-5.6.0/hsa"
    # ln -s "/opt/rocm-5.6.0/include/hsa" "$pkgdir/opt/rocm-5.6.0/hsa/include"
}

Redenbacher commented on 2023-05-03 23:18 (UTC)

@luciddream it's working on a 6800xt. Cannot confirm 7000 series.

Thank you!

luciddream commented on 2023-05-03 21:17 (UTC) (edited on 2023-05-03 21:19 (UTC) by luciddream)

@Redenbacher I've just updated the package to 5.5.0 - It doesn't help that AMD decides to release on a Monday morning of a busy week :)

p.s I didn't have enough time to check if something is missing. I will do tomorrow.

@Eirikr Unfortunately this package doesn't build anything, it only repackages from the Ubuntu release. Have you tried the official Arch Linux packages?