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 .. 34 35 36 37 38 39 40 41 42 43 44 .. 79 Next › Last »

RJGarch commented on 2021-07-20 15:34 (UTC)

opencl-amd does not work together with darktable.

clinfo:

Number of platforms 1 Platform Name AMD Accelerated Parallel Processing Platform Vendor Advanced Micro Devices, Inc. Platform Version OpenCL 2.0 AMD-APP (3261.0) 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 1 Device Name gfx1010:xnack- Device Vendor Advanced Micro Devices, Inc. Device Vendor ID 0x1002 Device Version OpenCL 2.0 Driver Version 3261.0 (HSA1.1,LC) Device OpenCL C Version OpenCL C 2.0 Device Type GPU Device Board Name (AMD) Navi 10 [Radeon Pro W5700] Device PCI-e ID (AMD) 0x7312 Device Topology (AMD) PCI-E, 0000:0a:00.0 Device Profile FULL_PROFILE Device Available Yes Compiler Available Yes Linker Available Yes Max compute units 18 SIMD per compute unit (AMD) 4 SIMD width (AMD) 32 SIMD instruction width (AMD) 1 Max clock frequency 1930MHz Graphics IP (AMD) 10.1 Device Partition (core) Max number of sub-devices 18 Supported partition types None Supported affinity domains (n/a) Max work item dimensions 3 Max work item sizes 1024x1024x1024 Max work group size 256 Preferred work group size (AMD) 256 Max work group size (AMD) 1024 Preferred work group size multiple (kernel) 32 Wavefront width (AMD) 32 Preferred / native vector sizes
char 4 / 4
short 2 / 2
int 1 / 1
long 1 / 1
half 1 / 1 (cl_khr_fp16) float 1 / 1
double 1 / 1 (cl_khr_fp64) Half-precision Floating-point support (cl_khr_fp16) Denormals No Infinity and NANs No Round to nearest No Round to zero No Round to infinity No IEEE754-2008 fused multiply-add No Support is emulated in software No Single-precision Floating-point support (core) Denormals Yes Infinity and NANs Yes Round to nearest Yes Round to zero Yes Round to infinity Yes IEEE754-2008 fused multiply-add Yes Support is emulated in software No Correctly-rounded divide and sqrt operations Yes Double-precision Floating-point support (cl_khr_fp64) Denormals Yes Infinity and NANs Yes Round to nearest Yes Round to zero Yes Round to infinity Yes IEEE754-2008 fused multiply-add Yes Support is emulated in software No Address bits 64, Little-Endian Global memory size 8573157376 (7.984GiB) Global free memory (AMD) 8372224 (7.984GiB) 8372224 (7.984GiB) Global memory channels (AMD) 8 Global memory banks per channel (AMD) 4 Global memory bank width (AMD) 256 bytes Error Correction support No Max memory allocation 7287183768 (6.787GiB) Unified memory for Host and Device No Shared Virtual Memory (SVM) capabilities (core) Coarse-grained buffer sharing Yes Fine-grained buffer sharing Yes Fine-grained system sharing No Atomics No Minimum alignment for any data type 128 bytes Alignment of base address 1024 bits (128 bytes) Preferred alignment for atomics
SVM 0 bytes Global 0 bytes Local 0 bytes Max size for global variable 7287183768 (6.787GiB) Preferred total size of global vars 8573157376 (7.984GiB) Global Memory cache type Read/Write Global Memory cache size 16384 (16KiB) Global Memory cache line size 64 bytes Image support Yes Max number of samplers per kernel 29458 Max size for 1D images from buffer 134217728 pixels Max 1D or 2D image array size 8192 images Base address alignment for 2D image buffers 256 bytes Pitch alignment for 2D image buffers 256 pixels Max 2D image size 16384x16384 pixels Max 3D image size 16384x16384x8192 pixels Max number of read image args 128 Max number of write image args 8 Max number of read/write image args 64 Max number of pipe args 16 Max active pipe reservations 16 Max pipe packet size 2992216472 (2.787GiB) Local memory type Local Local memory size 65536 (64KiB) Local memory size per CU (AMD) 65536 (64KiB) Local memory banks (AMD) 32 Max number of constant args 8 Max constant buffer size 7287183768 (6.787GiB) Preferred constant buffer size (AMD) 16384 (16KiB) Max size of kernel argument 1024 Queue properties (on host)
Out-of-order execution No Profiling Yes Queue properties (on device)
Out-of-order execution Yes Profiling Yes Preferred size 262144 (256KiB) Max size 8388608 (8MiB) Max queues on device 1 Max events on device 1024 Prefer user sync for interop Yes Number of P2P devices (AMD) 0 Profiling timer resolution 1ns Profiling timer offset since Epoch (AMD) 0ns (Thu Jan 1 01:00:00 1970) Execution capabilities
Run OpenCL kernels Yes Run native kernels No Thread trace supported (AMD) No Number of async queues (AMD) 8 Max real-time compute queues (AMD) 8 Max real-time compute units (AMD) 18 printf() buffer size 4194304 (4MiB) Built-in kernels (n/a) Device Extensions cl_khr_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_fp16 cl_khr_gl_sharing cl_amd_device_attribute_query cl_amd_media_ops cl_amd_media_ops2 cl_khr_image2d_from_buffer cl_khr_subgroups cl_khr_depth_images cl_amd_copy_buffer_p2p cl_amd_assembly_program

NULL platform behavior clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...) AMD Accelerated Parallel Processing clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...) Success [AMD] clCreateContext(NULL, ...) [default] Success [AMD] clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT) Success (1) Platform Name AMD Accelerated Parallel Processing Device Name gfx1010:xnack- clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU) No devices found in platform clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU) Success (1) Platform Name AMD Accelerated Parallel Processing Device Name gfx1010:xnack- 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) Success (1) Platform Name AMD Accelerated Parallel Processing Device Name gfx1010:xnack-

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

darktable -d opencl

0.276847 [opencl_init] opencl related configuration options: 0.276879 [opencl_init] 0.276882 [opencl_init] opencl: 1 0.276884 [opencl_init] opencl_scheduling_profile: 'default' 0.276886 [opencl_init] opencl_library: '' 0.276889 [opencl_init] opencl_memory_requirement: 768 0.276891 [opencl_init] opencl_memory_headroom: 400 0.276894 [opencl_init] opencl_device_priority: '/!0,///!0,*' 0.276897 [opencl_init] opencl_mandatory_timeout: 200 0.276899 [opencl_init] opencl_size_roundup: 16 0.276901 [opencl_init] opencl_async_pixelpipe: 0 0.276903 [opencl_init] opencl_synch_cache: active module 0.276905 [opencl_init] opencl_number_event_handles: 25 0.276908 [opencl_init] opencl_micro_nap: 1000 0.276910 [opencl_init] opencl_use_pinned_memory: 0 0.276912 [opencl_init] opencl_use_cpu_devices: 0 0.276914 [opencl_init] opencl_avoid_atomics: 0 0.276915 [opencl_init] 0.277155 [opencl_init] found opencl runtime library 'libOpenCL' 0.277173 [opencl_init] opencl library 'libOpenCL' found on your system and loaded 0.350606 [opencl_init] found 1 platform 0.350641 [opencl_init] found 1 device 0.350660 [opencl_init] device 0 gfx1010:xnack-' supports image sizes of 16384 x 16384 0.350663 [opencl_init] device 0gfx1010:xnack-' allows GPU memory allocations of up to 6949MB [opencl_init] device 0: gfx1010:xnack- GLOBAL_MEM_SIZE: 8176MB MAX_WORK_GROUP_SIZE: 256 MAX_WORK_ITEM_DIMENSIONS: 3 MAX_WORK_ITEM_SIZES: [ 1024 1024 1024 ] DRIVER_VERSION: 3261.0 (HSA1.1,LC) DEVICE_VERSION: OpenCL 2.0 0.638738 [opencl_init] options for OpenCL compiler: -w -cl-fast-relaxed-math -DAMD=1 -I"/usr/share/darktable/kernels" 0.638916 [opencl_init] compiling program demosaic_ppg.cl' .. 0.639137 [opencl_load_program] loaded cached binary program from file '/home/raphael/.cache/darktable/cached_kernels_for_gfx1010xnack_32610HSA11LC/demosaic_ppg.cl.bin' MD5: '7bd0bb8e42db27fbd7b2247b9c7243a2' 0.639141 [opencl_load_program] successfully loaded program from '/usr/share/darktable/kernels/demosaic_ppg.cl' MD5: '7bd0bb8e42db27fbd7b2247b9c7243a2' 0.640301 [opencl_build_program] successfully built program 0.640308 [opencl_build_program] BUILD STATUS: 0 0.640311 BUILD LOG: 0.640312 0.640318 [opencl_init] compiling programatrous.cl' .. 0.640369 [opencl_load_program] loaded cached binary program from file '/home/raphael/.cache/darktable/cached_kernels_for_gfx1010xnack_32610HSA11LC/atrous.cl.bin' MD5: '03010eae88840256f08caf4148cc99de' 0.640372 [opencl_load_program] successfully loaded program from '/usr/share/darktable/kernels/atrous.cl' MD5: '03010eae88840256f08caf4148cc99de' 0.640778 [opencl_build_program] successfully built program 0.640785 [opencl_build_program] BUILD STATUS: 0 0.640788 BUILD LOG: 0.640789 0.640794 [opencl_init] compiling program basic.cl' .. 0.641489 [opencl_load_program] loaded cached binary program from file '/home/raphael/.cache/darktable/cached_kernels_for_gfx1010xnack_32610HSA11LC/basic.cl.bin' MD5: '06bed41b26faa5d9c010dfa4232863ae' 0.641493 [opencl_load_program] successfully loaded program from '/usr/share/darktable/kernels/basic.cl' MD5: '06bed41b26faa5d9c010dfa4232863ae' 0.646168 [opencl_build_program] successfully built program 0.646177 [opencl_build_program] BUILD STATUS: 0 0.646180 BUILD LOG: 0.646181 0.646188 [opencl_init] compiling programblendop.cl' .. 0.646321 [opencl_fopen_stat] could not open file `/home/raphael/.cache/darktable/cached_kernels_for_gfx1010xnack_32610HSA11LC/blendop.cl.bin'! 0.646326 [opencl_load_program] could not load cached binary program, trying to compile source 0.646348 [opencl_load_program] successfully loaded program from '/usr/share/darktable/kernels/blendop.cl' MD5: '12fda7537d9ccceccb6fe5b2b6372438' 1.715850 [opencl_build_program] could not build program: -11 1.715877 [opencl_build_program] BUILD STATUS: -2 1.715880 BUILD LOG: 1.715882 lld: error: undefined hidden symbol: rgb_to_JzCzhz

referenced by /tmp/comgr-f40f3f/input/linked.bc.o:(blendop_display_channel) referenced by /tmp/comgr-f40f3f/input/linked.bc.o:(blendop_display_channel) referenced by /tmp/comgr-f40f3f/input/linked.bc.o:(blendop_display_channel) referenced 9 more times

lld: error: undefined hidden symbol: get_rgb_matrix_luminance

referenced by /tmp/comgr-f40f3f/input/linked.bc.o:(blendop_display_channel) referenced by /tmp/comgr-f40f3f/input/linked.bc.o:(blendop_display_channel) referenced by /tmp/comgr-f40f3f/input/linked.bc.o:(blendop_display_channel) referenced 1 more times Error: Creating the executable from LLVM IRs failed.

1.715892 [opencl_init] failed to compile program `blendop.cl'! 1.715901 [opencl_init] no suitable devices found. 1.715903 [opencl_init] FINALLY: opencl is NOT AVAILABLE on this system. 1.715904 [opencl_init] initial status of opencl enabled flag is OFF.

luciddream commented on 2021-07-01 21:31 (UTC)

@mabod yeap, I also tested master branch and it works OK (I have no idea how to use darktable either) and log is fine:

[opencl_summary_statistics] device 'gfx1010:xnack-' (0): 2092 out of 2092 events were successful and 0 events lost

apaz commented on 2021-07-01 07:28 (UTC)

With the 21.20, geekbench gets to the end of the benchmark indicating an error though:

[0701/090650:ERROR:src/geekbench/workload/compute_workload.cpp(111)] workload 321 failed validation

The final value is 29248 while with previous drivers it was never under 80000. Probably it depends on the error. Blender and DaVinci Resolve work without problems. Clinfo reports the data correctly (small unimportant note: where before it reported gfx1010:xnack+ now it reports gfx1010:xnack-) I have the 5700XT.

mabod commented on 2021-07-01 06:56 (UTC)

There is a new PR #9359 for darktable which fixes the issue with opencl-amd 21.20.1271047-1. I just tested it.

luciddream commented on 2021-07-01 06:52 (UTC)

@mabod Thanks I will test it too in the evening when I get access to my PC.

mabod commented on 2021-07-01 05:03 (UTC) (edited on 2021-07-01 05:04 (UTC) by mabod)

darktable-git contains fixes which make it work with opencl-amd 21.10.1247438-1 but it fails again with opencl-amd 21.20.1271047-1

You might want to include darktable in your test scenario. Just excecute "darktable -d opencl"

luciddream commented on 2021-06-30 19:25 (UTC) (edited on 2021-06-30 20:35 (UTC) by luciddream)

I've updated the package to 21.20 - Geekbench is still failing. But I will make more tests with other software.

edit: Radeon ProRender looks to be working (default settings) - [Link]

edit: TeamRedMiner works too (I have no idea how to use it properly)

GPU 0 [67C, fan 45%] ethash: 34.28Mh/s, avg 33.91Mh/s, pool 0.000 h/s a:0 r:0 hw:0

sperg512 commented on 2021-06-30 18:51 (UTC)

I don't use Arch as my main anymore so I can only update when i ssh into my server. and i haven't properly setup my funny update script for this package on my server yet, so once i'll do that I'll push an update (assuming luciddream doesnt do it first)

Also I will probably not be able to test these as much anymore, unless I adapted this PKGBUILD to an ebuild

luciddream commented on 2021-06-30 18:08 (UTC)

Hi all, real life got in the way, I'm preparing a package right now and will update in a while.