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: 133
Popularity: 1.19
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 .. 51 52 53 54 55 56 57 58 59 60 61 .. 79 Next › Last »

luciddream commented on 2020-11-19 15:43 (UTC) (edited on 2020-11-19 15:54 (UTC) by luciddream)

Like @sperg512 said there are some extra files that I haven't used in my PKGBUILD. This is the complete list of the files in the lib directory on Ubuntu after a headless OpenCL installation.

AMDGPU:

libdrm_amdgpu.so.1 libdrm.so.2 libhsakmt.so.1 libkms.so.1 libdrm_amdgpu.so.1.0.0 libdrm.so.2.4.0 libhsakmt.so.1.0.6 libkms.so.1.0.0

AMDGPU-PRO:

libamd_comgr.so.1 libamdhip64.so.1 libhsa-runtime64.so.1 libOpenCL.so.1.2 libamd_comgr.so.1.7.0 libamdhip64.so.1.5.19245 libhsa-runtime64.so.1.2.0 libamdhip64.so libamdocl64.so libOpenCL.so.1

edit: tbh I don't see something missing. Maybe libOpenCL but this is provided by ocl-icd and it was working with 20.40

coxackie commented on 2020-11-19 15:31 (UTC)

@sperg512 if there is any way I can help by testing, let me know...

@apaz well, the 5700 (no XT) seems to be unhappy with this change. Is there anything else that you guys have installed that may be helpful? I also have opencl-mesa and all dependencies there (but it has other problems); but the card is not detected independently of whether I have opencl-mesa installed.

sperg512 commented on 2020-11-19 15:28 (UTC)

@coxackie that's exactly what I feared. I think the ROCr stuff is just overall lighter than pal, but there were some other files that I might add if i can find any that might be necessary

apaz commented on 2020-11-19 15:22 (UTC)

@coxackie A lot has changed: they switched to the ROCr backend, which is part of ROCm. Until now amdgpu-pro and ROCm were incompatible. Strange though, with 5700XT it works without problems both for me and luciddream.

coxackie commented on 2020-11-19 14:26 (UTC)

RX 5700 here. Latest update does not detect card (Number of devices 0), no OpenCL. Had to revert back to previous version. What happened - seems like the package lost a lot of weight upon update. Maybe something was missed?

luciddream commented on 2020-11-19 14:16 (UTC) (edited on 2020-11-19 14:18 (UTC) by luciddream)

Blender works for me too (5700xt), but if it's on the release notes must be for a reason. I made some rendering tests here: https://imgur.com/a/YzyQElw

I tried to find rocm stuff to test but I couldn't. I think Tensorflow-rocm for example requires the HIP compiler, which the runtime does not include. When I try to run it I get: ImportError: libhipsparse.so.0: cannot open shared object file: No such file or directory

Maybe I will try Hashcat which has different code for rocm and amdgpu, and compare it with previous results.

sperg512 commented on 2020-11-19 14:06 (UTC)

Also @agapito make sure you've got LLVM and its libraries installed, though you should (as it's a dependency of vulkan-radeon, clang and mesa which are basically required to do any 3d rendering). Maybe you also need opencl-mesa. If you have both of those/you install them and it still doesn't work, then I might need to also add the LLVM libs deb file.

sperg512 commented on 2020-11-19 14:02 (UTC)

Interesting. For me, it opens and renders fine, though it is a bit laggy. That might be because it's using up all my Vega's VRAM and it probably needs to borrow some strength from the weaker dGPU. It also uses anywhere from 1.8-2.1 GB of RAM according to htop, and my Vega uses that same amount of RAM as its VRAM (although it's not visible to programs). I might test some ROCm stuff later if possible. No errors in CLinfo, etc. either so I think it's safe to say this works.

No problem, by the way, luciddream.

luciddream commented on 2020-11-19 10:12 (UTC)

Hello, thanks sperg512 for the co-maintain. I'll take another look later in the day but from the AMD release notes, Blender is a known issue with the driver.

Blender 2.90.1 users may experience page faults (details in dmesg log).

My experience is that it's better to keep the new driver than revert the package. Users that need blender can still use the previous PKGBUILD to install an older driver.

apaz commented on 2020-11-19 09:07 (UTC)

Installed and everything is OK: clinfo reports no errors; Junk shop scene in Blender is OK. I have AMD RX 5700XT. Thanks!