Package Details: opencl-amd-dev 1:6.2.4-2

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 20GB of disk space.
Upstream URL: http://www.amd.com
Licenses: custom:AMD
Conflicts: 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, migraphx, migraphx-dev, miopen, miopen-hip, miopen-hip-dev, mivisionx, mivisionx-dev, omniperf, omnitrace, 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, rocprofiler-sdk, rocprofiler-sdk-roctx, rocrand, rocrand-dev, rocsolver, rocsolver-dev, rocsparse, rocsparse-dev, rocthrust, rocthrust-dev, rocwmma-dev, rpp, rpp-dev
Provides: 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, migraphx, migraphx-dev, miopen, miopen-hip, miopen-hip-dev, mivisionx, mivisionx-dev, omniperf, omnitrace, 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, rocprofiler-sdk, rocprofiler-sdk-roctx, rocrand, rocrand-dev, rocsolver, rocsolver-dev, rocsparse, rocsparse-dev, rocthrust, rocthrust-dev, rocwmma-dev, rpp, rpp-dev
Submitter: luciddream
Maintainer: luciddream
Last Packager: luciddream
Votes: 8
Popularity: 0.43
First Submitted: 2021-12-26 15:01 (UTC)
Last Updated: 2024-11-10 10:22 (UTC)

Required by (156)

Sources (54)

Pinned Comments

luciddream commented on 2022-01-12 16:47 (UTC) (edited on 2024-11-07 20:44 (UTC) by luciddream)

Latest release: 6.2.4. It uses 25.93GB of disk.

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 Next › Last »

b0o commented on 2024-06-11 02:43 (UTC)

I was having trouble using ollama with the 5700 XT (gfx1010).

I was running with HSA_OVERRIDE_GFX_VERSION="10.1.0" ollama serve and after trying to run a model, I was getting this error: Error: llama runner process has terminated: signal: aborted (core dumped) error:Cannot read /opt/rocm/lib/rocblas/library/TensileLibrary.dat: Illegal seek for GPU arch : gfx1010

I tried using HSA_OVERRIDE_GFX_VERSION="10.3.0" but that caused my GPU to crash.

I noticed that the /opt/rocm/lib/rocblas/library/TensileLibrary.dat file did not actually exist, but that other files like /opt/rocm/lib/rocblas/library/TensileLibrary_lazy_gfx1030.dat do exist. However, there was no file corresponding to gfx1030.

So, as a shot in the dark, I tried symlinking TensileLibrary_lazy_gfx1010.dat to TensileLibrary_lazy_gfx1030.dat: sudo ln -s /opt/rocm/lib/rocblas/library/TensileLibrary_lazy_gfx{1030,1010}.dat.

To my surprise, this actually worked! Running HSA_OVERRIDE_GFX_VERSION="10.1.0" ollama serve and then running a model like ollama run mistral successfully loads and runs the model on my GPU.

I am wondering if the reason the TensileLibrary_lazy_gfx1010.dat file is missing is a packaging issue, or whether it should be reported upstream?

luciddream commented on 2024-04-18 21:09 (UTC) (edited on 2024-04-18 21:09 (UTC) by luciddream)

I've pushed a new version. There is a library missing from this package, which is libmetis and is available in https://aur.archlinux.org/packages/metis. I didn't want to delay the package any more, for a package that I'm not sure if and what is used for. Please report if something is not working as expected.

luciddream commented on 2024-02-27 09:33 (UTC)

Hi @Eirikr, my intentions with opencl-amd and opencl-amd-dev packages is to follow the upstream releases so latest GPUs are supported. OpenCL legacy is still provided by AMD but it will be completely removed in a future version. I guess someone can then provide a working version in a different package. IF it is still available on the AMD servers, it will be trivial to provide since it won't even require any updates. In the opencl-amd release log you can find the legacy versions. OpenCL packages before ROCm was part of the drivers can be found in the 2020-10-02 release.

Eirikr commented on 2024-02-26 23:58 (UTC)

Which version works with GFX7xx GPUs? I see the PKGBUILD for 5.6 below but will it have the correct /opt/rocm-(version)/lib/rocblas/library/TensileLibrary files and everything else needed?

Is it possible to have rocm-legacy for pre-vega GPUs? OR; can we merge all those files needed into one sort of "mega rocm" blob to get this working again for cards dropped before their time?

(thinking specifically about 16GB/32GB workstation cards having a lot of life left in them)

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