Package Details: opencl-amd 1:6.3.2-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: 132
Popularity: 0.21
First Submitted: 2016-12-01 03:45 (UTC)
Last Updated: 2025-01-29 20:12 (UTC)

Required by (128)

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.

luciddream commented on 2021-12-26 15:14 (UTC) (edited on 2025-01-29 20:13 (UTC) by luciddream)

Current release is for ROCm 6.3.2 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 .. 29 30 31 32 33 34 35 36 37 38 39 .. 79 Next › Last »

hpohl commented on 2021-11-22 20:15 (UTC)

@luciddream strace: https://www.dropbox.com/s/pbkf0io41gb4583/strace.txt?dl=0

None of those solutions seems to work :(

Is this related?: https://github.com/RadeonOpenCompute/ROCm/issues/1180

bingdonggaming commented on 2021-11-21 03:07 (UTC)

Anyone able to get this working on 21.30 or 21.40.1 for Hawaii (R9 290, R9 390) cards? I cannot for the life of me get opencl to work on the R9 390 on the latest drivers, but it works fine with my second Tonga r9 380 card. I've settled on Ubuntu 18.04 with the 21.20 driver for now. I've tried nearly everything I found on the internet and numerous distros.

luciddream commented on 2021-11-15 16:33 (UTC)

@HurricanePootis I think the answer is obvious, because they are precompiled binaries and you don't have to compile them yourself. Plus you can create any package you want, doesn't mean people have to use it if they don't like it or prefer something else.

HurricanePootis commented on 2021-11-15 15:25 (UTC)

Why keep opencl-amd if it uses ROCm, whenever the ROCm runtimes are already in the AUR?

luciddream commented on 2021-11-14 21:04 (UTC) (edited on 2021-11-14 21:25 (UTC) by luciddream)

Also try strace -f clinfo 2> strace.txt I see it can provide extra info about missing files / directories.

luciddream commented on 2021-11-14 20:46 (UTC)

@hpohl I don't see anything wrong with the log.. (i'm not an expert on reading it to be honest), and can't really find the issue when it's working for me.

One assumption is that it has something to do with your Intel CPU... maybe try installing intel-compute-runtime and see if that fixes anything?

I also noticed from your log that clinfo is using more libraries than this package has at the moment, specifically libhsa-amd-aqlprofile64.so.. I will probably add this in a second version of this package.

apaz commented on 2021-11-14 20:10 (UTC)

@hpohl

Try this command:

 sudo mount -o remount,exec /dev 

References are Phoronix:

https://www.phoronix.com/forums/forum/phoronix/latest-phoronix-articles/1290547-radeon-software-21-40-1-linux-driver-unifies-rocm-uses-new-driver-distribution-model/page2

Which in turn refers to:

https://stackoverflow.com/questions/67961666/rocm-installation-on-ubuntu-20-04-says-unable-to-open-dev-kfd-read-write-bad-a/68595394

hpohl commented on 2021-11-13 14:04 (UTC)

@luciddream https://www.dropbox.com/s/ja9lhc7ap8mr3kh/lddebug.txt?dl=0

luciddream commented on 2021-11-13 13:34 (UTC)

@apaz yes, this looks to be working for OpenCL as the previous versions, but, I think it's much easier now to add ROCM support for Pytorch and Tensorflow, and see that HIP is working. However I can't test it on my PC because 5700XT is not supported I believe. I've found and added a few libraries that should be able to do that (rocrtrace / rocrand / rocblas), but I can't verify they are working and I don't want to add more size to the package (rocblas is like 600+ MB of libraries). If someone with a supported GPU can test it I can attach another PKGBUILD for that purpose.

@esistgut yes, this is a precompiled binary from the Ubuntu repository. You have to compile the other one yourself.

@hpohl Try to LD_DEBUG=all clinfo 2> lddebug.txt or strace clinfo so we can see what is missing.