Package Details: opencl-amd 1:6.4.0-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: 0.53
First Submitted: 2016-12-01 03:45 (UTC)
Last Updated: 2025-04-11 22:54 (UTC)

Required by (132)

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.

Latest Comments

« First ‹ Previous 1 .. 40 41 42 43 44 45 46 47 48 49 50 .. 81 Next › Last »

hpohl commented on 2021-03-29 08:30 (UTC) (edited on 2021-03-29 08:32 (UTC) by hpohl)

I've just installed 20.40 and it works:

$ clinfo
  Platform Name                                   AMD Accelerated Parallel Processing
Number of devices                                 1
  Device Name                                     gfx1031
  Device Vendor                                   Advanced Micro Devices, Inc.
  Device Vendor ID                                0x1002
  Device Version                                  OpenCL 2.0 AMD-APP (3180.7)
  Driver Version                                  3180.7 (PAL,LC)
  Device OpenCL C Version                         OpenCL C 2.0
  Device Type                                     GPU
  Device Board Name (AMD)                         Unknown AMD GPU
  Device PCI-e ID (AMD)                           0x73df
  Device Topology (AMD)                           PCI-E, 0000:0b:00.0
  Device Profile                                  FULL_PROFILE
...

$ ldd -v /usr/bin/clinfo
linux-vdso.so.1 (0x00007ffdb07aa000)
libOpenCL.so.1 => /opt/cuda/lib64/libOpenCL.so.1 (0x00007f3c5cfdf000)
libdl.so.2 => /usr/lib/libdl.so.2 (0x00007f3c5cfd8000)
libc.so.6 => /usr/lib/libc.so.6 (0x00007f3c5ce0b000)
libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007f3c5cdea000)
/lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007f3c5d21e000)

Version information:
/usr/bin/clinfo:
    libdl.so.2 (GLIBC_2.2.5) => /usr/lib/libdl.so.2
    libOpenCL.so.1 (OPENCL_1.0) => /opt/cuda/lib64/libOpenCL.so.1
    libc.so.6 (GLIBC_2.3) => /usr/lib/libc.so.6
    libc.so.6 (GLIBC_2.7) => /usr/lib/libc.so.6
    libc.so.6 (GLIBC_2.14) => /usr/lib/libc.so.6
    libc.so.6 (GLIBC_2.4) => /usr/lib/libc.so.6
    libc.so.6 (GLIBC_2.2.5) => /usr/lib/libc.so.6
    libc.so.6 (GLIBC_2.3.4) => /usr/lib/libc.so.6
/opt/cuda/lib64/libOpenCL.so.1:
    libdl.so.2 (GLIBC_2.2.5) => /usr/lib/libdl.so.2
    libpthread.so.0 (GLIBC_2.2.5) => /usr/lib/libpthread.so.0
    libc.so.6 (GLIBC_2.2.5) => /usr/lib/libc.so.6
/usr/lib/libdl.so.2:
    ld-linux-x86-64.so.2 (GLIBC_PRIVATE) => /usr/lib64/ld-linux-x86-64.so.2
    libc.so.6 (GLIBC_PRIVATE) => /usr/lib/libc.so.6
    libc.so.6 (GLIBC_2.4) => /usr/lib/libc.so.6
    libc.so.6 (GLIBC_2.2.5) => /usr/lib/libc.so.6
/usr/lib/libc.so.6:
    ld-linux-x86-64.so.2 (GLIBC_2.2.5) => /usr/lib64/ld-linux-x86-64.so.2
    ld-linux-x86-64.so.2 (GLIBC_2.3) => /usr/lib64/ld-linux-x86-64.so.2
    ld-linux-x86-64.so.2 (GLIBC_PRIVATE) => /usr/lib64/ld-linux-x86-64.so.2
/usr/lib/libpthread.so.0:
    ld-linux-x86-64.so.2 (GLIBC_2.2.5) => /usr/lib64/ld-linux-x86-64.so.2
    ld-linux-x86-64.so.2 (GLIBC_PRIVATE) => /usr/lib64/ld-linux-x86-64.so.2
    libc.so.6 (GLIBC_2.14) => /usr/lib/libc.so.6
    libc.so.6 (GLIBC_2.32) => /usr/lib/libc.so.6
    libc.so.6 (GLIBC_2.3.2) => /usr/lib/libc.so.6
    libc.so.6 (GLIBC_2.4) => /usr/lib/libc.so.6
    libc.so.6 (GLIBC_2.2.5) => /usr/lib/libc.so.6
    libc.so.6 (GLIBC_PRIVATE) => /usr/lib/libc.so.6

Also when I upgraded from 20.40 to 20.50:

Packages (1) opencl-amd-20.50.1234664-5

Total Installed Size:  243.56 MiB
Net Upgrade Size:      -73.44 MiB

And now with clinfo 20.50 (1234664):

$ ldd -v /usr/bin/clinfo
linux-vdso.so.1 (0x00007fff379ae000)
libOpenCL.so.1 => /opt/cuda/lib64/libOpenCL.so.1 (0x00007f62fb4ab000)
libdl.so.2 => /usr/lib/libdl.so.2 (0x00007f62fb4a4000)
libc.so.6 => /usr/lib/libc.so.6 (0x00007f62fb2d7000)
libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007f62fb2b6000)
/lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007f62fb6ea000)

Version information:
/usr/bin/clinfo:
    libdl.so.2 (GLIBC_2.2.5) => /usr/lib/libdl.so.2
    libOpenCL.so.1 (OPENCL_1.0) => /opt/cuda/lib64/libOpenCL.so.1
    libc.so.6 (GLIBC_2.3) => /usr/lib/libc.so.6
    libc.so.6 (GLIBC_2.7) => /usr/lib/libc.so.6
    libc.so.6 (GLIBC_2.14) => /usr/lib/libc.so.6
    libc.so.6 (GLIBC_2.4) => /usr/lib/libc.so.6
    libc.so.6 (GLIBC_2.2.5) => /usr/lib/libc.so.6
    libc.so.6 (GLIBC_2.3.4) => /usr/lib/libc.so.6
/opt/cuda/lib64/libOpenCL.so.1:
    libdl.so.2 (GLIBC_2.2.5) => /usr/lib/libdl.so.2
    libpthread.so.0 (GLIBC_2.2.5) => /usr/lib/libpthread.so.0
    libc.so.6 (GLIBC_2.2.5) => /usr/lib/libc.so.6
/usr/lib/libdl.so.2:
    ld-linux-x86-64.so.2 (GLIBC_PRIVATE) => /usr/lib64/ld-linux-x86-64.so.2
    libc.so.6 (GLIBC_PRIVATE) => /usr/lib/libc.so.6
    libc.so.6 (GLIBC_2.4) => /usr/lib/libc.so.6
    libc.so.6 (GLIBC_2.2.5) => /usr/lib/libc.so.6
/usr/lib/libc.so.6:
    ld-linux-x86-64.so.2 (GLIBC_2.2.5) => /usr/lib64/ld-linux-x86-64.so.2
    ld-linux-x86-64.so.2 (GLIBC_2.3) => /usr/lib64/ld-linux-x86-64.so.2
    ld-linux-x86-64.so.2 (GLIBC_PRIVATE) => /usr/lib64/ld-linux-x86-64.so.2
/usr/lib/libpthread.so.0:
    ld-linux-x86-64.so.2 (GLIBC_2.2.5) => /usr/lib64/ld-linux-x86-64.so.2
    ld-linux-x86-64.so.2 (GLIBC_PRIVATE) => /usr/lib64/ld-linux-x86-64.so.2
    libc.so.6 (GLIBC_2.14) => /usr/lib/libc.so.6
    libc.so.6 (GLIBC_2.32) => /usr/lib/libc.so.6
    libc.so.6 (GLIBC_2.3.2) => /usr/lib/libc.so.6
    libc.so.6 (GLIBC_2.4) => /usr/lib/libc.so.6
    libc.so.6 (GLIBC_2.2.5) => /usr/lib/libc.so.6
    libc.so.6 (GLIBC_PRIVATE) => /usr/lib/libc.so.6

luciddream commented on 2021-03-28 22:52 (UTC)

@hpohl run ldd -v /usr/bin/clinfo and paste the output, maybe some library is missing for 6700 XT.

sperg512 commented on 2021-03-28 22:14 (UTC)

@hpohl that's interesting. Do apps/games that use OpenCL crash without DRI_PRIME=1? If so, then get one to crash and attach a crash log of that game and the most recent (or any relevant) dmesg lines.

hpohl commented on 2021-03-28 12:52 (UTC) (edited on 2021-03-28 13:00 (UTC) by hpohl)

My RX 6700 XT is not detected by clinfo (with our without --ofline):

Number of platforms                               1
  Platform Name                                   AMD Accelerated Parallel Processing
  Platform Vendor                                 Advanced Micro Devices, Inc.
  Platform Version                                OpenCL 2.0 AMD-APP (3188.4)
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_icd cl_amd_event_callback
  Platform Extensions function suffix             AMD

  Platform Name                                   AMD Accelerated Parallel Processing
Number of devices                                 0

NULL platform behavior
  clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...)  AMD Accelerated Parallel Processing
  clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)   No devices found in platform [AMD Accelerated Parallel Processing?]
  clCreateContext(NULL, ...) [default]            No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL)  No devices found in platform

ICD loader properties
  ICD loader Name                                 OpenCL ICD Loader
  ICD loader Vendor                               OCL Icd free software
  ICD loader Version                              2.2.14
  ICD loader Profile                              OpenCL 3.0

Also there is a new build (1234664) available, but it did not change anything. And so did downgrading to 20.45.

Running games with DRI_PRIME=1 works just fine.

0b:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 22 (rev c1)

Could not find anything relevant in dmesg.

Tell me if you need any more info :)

sperg512 commented on 2021-03-27 03:12 (UTC) (edited on 2021-03-27 03:15 (UTC) by sperg512)

@luciddream weird, could it be your git config? Long while ago I had issues with that, but I'll push that tomorrow morning

Anways, anyone with a Polaris card that doesnt work on this version, send outputs of the following commands preferrably in files:

  • clinfo

  • clinfo --offline

  • dmesg, include relevant lines only if possible

Please also, if possible, include a crash log of any application using OCL that crashes on this version (i.e Junk Shop blender scene, Geekbench, or even just a basic OCL program). Any extra information would be appreciated. You can include versions of things like the kernel if you want

I need this so I can give the driver devs as much info as possible to fix this bug. In the future, when any major bugs like this occur, I will likely refer back to this comment.

also if there's any more information that should be necessary for everyone to send please tell me! Thanks

luciddream commented on 2021-03-27 03:00 (UTC)

I still can't push packages here, AUR doesn't recognize my SSH key for some reason. I've updated the PKGBUILD to use the latest version, maybe it will help some people.

Link for Download - it's just a version change + file hash.

Geekbench5 fails to run with this version for my 5700XT.

vinibali commented on 2021-03-24 20:38 (UTC)

20.45 produces really low OpenLC compute power with Vega56, does anybody has some info about the 20.50 version? I even tried to checkout the older 20.40 version but that case only the superuser was able to find the OpenCL devices with clinfo.

sperg512 commented on 2021-03-24 14:55 (UTC)

@merlock RX 400s and 500s are Polaris. you can see it says POLARIS11 after the name.

and if it's working for you then that's great, no need to downgrade

merlock commented on 2021-03-24 14:40 (UTC)

@sperg512 - is there some kind of Polaris versioning?

OpenGL: renderer: Radeon RX 560 Series (POLARIS11 DRM 3.40.0 5.11.8-arch1-1 LLVM 11.1.0) v: 4.6 Mesa 20.3.4

Current version is working fine for me (F@H is plugging right along).

sperg512 commented on 2021-03-24 13:27 (UTC) (edited on 2021-03-24 15:02 (UTC) by sperg512)

ok so as @ATrigger and @quimkaos pointed out, 20.50 doesn't work on Polaris GPUs. If you have one, downgrade to 20.45 or install opencl-amd-polaris. could also be Mesa being fat but for now just downgrade or install the other package ok thanks