AMD, opencl / rusticl und Darktable

linuxnutzer

Commander
Registriert
Dez. 2011
Beiträge
2.893
AlphaKaninchen schrieb:
Das hat mit dem Treiber nix zu tun, man kann auch rocm-opencl installieren und dann läuft es. Unter Fedora z. B. ist das auch alles in den Paketquellen, einfach dnf install rocm-opencl fertig. Am besten dann noch rocm-hip und rocm-clinfo, und dann hat man das ganze Paket damit z. B. auch Blender mit Hardwarebeschleunigung läuft.

Man kann auch den Pro Treiber Download entpacken und nur das installieren die Komponenten liegen in dem Download als einzelne Pakete, das Skript installiert dann eben alles in der richtigen reinfolge wegen Abhängigkeiten

Vielleicht kann wer was dazu sagen, warum meine Konfiguration nicht funktioniert, dh abstürzt.


Code:
$ darktable-cltest

darktable 5.0.1
Copyright (C) 2012-2025 Johannes Hanika and other contributors.

Compile options:
  Bit depth              -> 64 bit
  Debug                  -> DISABLED
  SSE2 optimizations     -> ENABLED
  OpenMP                 -> ENABLED
  OpenCL                 -> ENABLED
  Lua                    -> ENABLED  - API version 9.4.0
  Colord                 -> ENABLED
  gPhoto2                -> ENABLED
  GMIC                   -> ENABLED  - Compressed LUTs are supported
  GraphicsMagick         -> ENABLED
  ImageMagick            -> DISABLED
  libavif                -> DISABLED
  libheif                -> ENABLED
  libjxl                 -> ENABLED
  LibRaw                 -> ENABLED  - Version 0.22.0-Devel202403
  OpenJPEG               -> ENABLED
  OpenEXR                -> ENABLED
  WebP                   -> ENABLED

See https://www.darktable.org/resources/ for detailed documentation.
See https://github.com/darktable-org/darktable/issues/new/choose to report bugs.

     0.4243 [dt_get_sysresource_level] switched to 1 as `default'
     0.4243   total mem:       11690MB
     0.4243   mipmap cache:    1461MB
     0.4243   available mem:   5845MB
     0.4243   singlebuff:      91MB
     0.4419 [dt_dlopencl_init] could not find default opencl runtime library 'libOpenCL'
     0.4419 [dt_dlopencl_init] could not find default opencl runtime library 'libOpenCL.so'
     0.4420 [opencl_init] opencl library 'libOpenCL.so.1' found on your system and loaded, preference 'default path'
     0.8426 [opencl_init] found 1 platform
[opencl_init] found 1 device

[dt_opencl_device_init]
OpenCL Mesa platform `Mesa/X.org' --> `AMD Radeon Graphics'
   DEVICE:                   0: 'AMD Radeon Graphics (radeonsi, rembrandt, LLVM 17.0.6, DRM 3.63, 6.8.0-60-generic)'
   CONF KEY:                 cldevice_v5_rusticlamdradeongraphics
   PLATFORM, VENDOR & ID:    rusticl, Mesa:Mesa/X.org, ID=4098
   CANONICAL NAME:           rusticlamdradeongraphics
   DRIVER VERSION:           24.0.5-1ubuntu1
   DEVICE VERSION:           OpenCL 3.0 
   DEVICE_TYPE:              GPU, dedicated mem
   GLOBAL MEM SIZE:          5845 MB
   MAX MEM ALLOC:            1461 MB
   MAX IMAGE SIZE:           16384 x 16384
   MAX WORK GROUP SIZE:      1024
   MAX WORK ITEM DIMENSIONS: 3
   MAX WORK ITEM SIZES:      [ 1024 1024 1024 ]
   ASYNC PIXELPIPE:          NO
   PINNED MEMORY TRANSFER:   NO
   USE HEADROOM:             600Mb
   AVOID ATOMICS:            NO
   MICRO NAP:                250
   ROUNDUP WIDTH & HEIGHT    16x16
   CHECK EVENT HANDLES:      128
   TILING ADVANTAGE:         0.000
   DEFAULT DEVICE:           NO
   KERNEL BUILD DIRECTORY:   /usr/share/darktable/kernels
   KERNEL DIRECTORY:         /home/ab/.cache/darktable/cached_v5_kernels_for_rusticlAMDRadeonGraphics_24051ubuntu1
   CL COMPILER OPTION:       
   CL COMPILER COMMAND:      -w  -DAMD=1 -I"/usr/share/darktable/kernels"
   KERNEL LOADING TIME:       0.4673 sec
[opencl_init] OpenCL successfully initialized. internal numbers and names of available devices:
[opencl_init]        0    'rusticl AMD Radeon Graphics'
     1.3129 [opencl_init] FINALLY: opencl PREFERENCE=ON is AVAILABLE and ENABLED.
[opencl_init] opencl_scheduling_profile: 'default'
[opencl_init] opencl_device_priority: '*/!0,*/*/*/!0,*'
[opencl_init] opencl_mandatory_timeout: 400
[opencl_update_priorities] these are your device priorities:
[opencl_update_priorities]         image    preview    export    thumbs    preview2
[dt_opencl_update_priorities]        0    -1    0    0    -1
[opencl_update_priorities] show if opencl use is mandatory for a given pixelpipe:
[opencl_update_priorities]         image    preview    export    thumbs    preview2
[opencl_update_priorities]        0    0    0    0    0
[opencl_synchronization_timeout] synchronization timeout set to 200
[opencl_update_priorities] these are your device priorities:
[opencl_update_priorities]         image    preview    export    thumbs    preview2
[dt_opencl_update_priorities]        0    -1    0    0    -1
[opencl_update_priorities] show if opencl use is mandatory for a given pixelpipe:
[opencl_update_priorities]         image    preview    export    thumbs    preview2
[opencl_update_priorities]        0    0    0    0    0
[opencl_synchronization_timeout] synchronization timeout set to 200

Sieht ja auf den 1. Blick nicht so schlecht aus.

Code:
$ clinfo

Number of platforms                               1
  Platform Name                                   rusticl
  Platform Vendor                                 Mesa/X.org
  Platform Version                                OpenCL 3.0 
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_byte_addressable_store cl_khr_create_command_queue cl_khr_expect_assume cl_khr_extended_versioning cl_khr_icd cl_khr_il_program cl_khr_spirv_no_integer_wrap_decoration
  Platform Extensions with Version                cl_khr_byte_addressable_store                                    0x400000 (1.0.0)
                                                  cl_khr_create_command_queue                                      0x400000 (1.0.0)
                                                  cl_khr_expect_assume                                             0x400000 (1.0.0)
                                                  cl_khr_extended_versioning                                       0x400000 (1.0.0)
                                                  cl_khr_icd                                                       0x400000 (1.0.0)
                                                  cl_khr_il_program                                                0x400000 (1.0.0)
                                                  cl_khr_spirv_no_integer_wrap_decoration                          0x400000 (1.0.0)
  Platform Numeric Version                        0xc00000 (3.0.0)
  Platform Extensions function suffix             MESA
  Platform Host timer resolution                  1ns

  Platform Name                                   rusticl
Number of devices                                 1
  Device Name                                     AMD Radeon Graphics (radeonsi, rembrandt, LLVM 17.0.6, DRM 3.63, 6.8.0-60-generic)
  Device Vendor                                   AMD
  Device Vendor ID                                0x1002
  Device Version                                  OpenCL 3.0 
  Device UUID                                     00000000-e500-0000-0000-000000000000
  Driver UUID                                     414d442d-4d45-5341-2d44-525600000000
  Valid Device LUID                               No
  Device LUID                                     0000-000000000000
  Device Node Mask                                0
  Device Numeric Version                          0xc00000 (3.0.0)
  Driver Version                                  24.0.5-1ubuntu1
  Device OpenCL C Version                         OpenCL C 1.2 
  Device OpenCL C Numeric Version                 0x402000 (1.2.0)
  Device OpenCL C all versions                    OpenCL C                                                         0xc00000 (3.0.0)
                                                  OpenCL C                                                         0x402000 (1.2.0)
                                                  OpenCL C                                                         0x401000 (1.1.0)
                                                  OpenCL C                                                         0x400000 (1.0.0)
  Device OpenCL C features                        __opencl_c_integer_dot_product_input_4x8bit_packed               0x800000 (2.0.0)
                                                  __opencl_c_integer_dot_product_input_4x8bit                      0x800000 (2.0.0)
                                                  __opencl_c_int64                                                 0x400000 (1.0.0)
                                                  __opencl_c_images                                                0x400000 (1.0.0)
                                                  __opencl_c_3d_image_writes                                       0x400000 (1.0.0)
                                                  __opencl_c_subgroups                                             0x400000 (1.0.0)
  Latest conformance test passed                  v0000-01-01-00
  Device Type                                     GPU
  Device PCI bus info (KHR)                       PCI-E, 0000:e5:00.0
  Device Profile                                  EMBEDDED_PROFILE
  Device Available                                Yes
  Compiler Available                              Yes
  Linker Available                                Yes
  Max compute units                               12
  Max clock frequency                             2200MHz
  Device Partition                                (core)
    Max number of sub-devices                     0
    Supported partition types                     None
    Supported affinity domains                    (n/a)
  Max work item dimensions                        3
  Max work item sizes                             1024x1024x1024
  Max work group size                             1024
  Preferred work group size multiple (device)     64
  Preferred work group size multiple (kernel)     64
  Max sub-groups per work group                   32
  Preferred / native vector sizes                 
    char                                                 1 / 1       
    short                                                1 / 1       
    int                                                  1 / 1       
    long                                                 1 / 1       
    half                                                 0 / 0        (n/a)
    float                                                1 / 1       
    double                                               0 / 0        (n/a)
  Half-precision Floating-point support           (n/a)
  Single-precision Floating-point support         (core)
    Denormals                                     No
    Infinity and NANs                             Yes
    Round to nearest                              Yes
    Round to zero                                 No
    Round to infinity                             No
    IEEE754-2008 fused multiply-add               No
    Support is emulated in software               No
    Correctly-rounded divide and sqrt operations  No
  Double-precision Floating-point support         (n/a)
  Address bits                                    64, Little-Endian
  Global memory size                              6129356800 (5.708GiB)
  Error Correction support                        No
  Max memory allocation                           1532339200 (1.427GiB)
  Unified memory for Host and Device              No
  Shared Virtual Memory (SVM) capabilities        (core)
    Coarse-grained buffer sharing                 No
    Fine-grained buffer sharing                   No
    Fine-grained system sharing                   No
    Atomics                                       No
  Minimum alignment for any data type             128 bytes
  Alignment of base address                       4096 bits (512 bytes)
  Preferred alignment for atomics                 
    SVM                                           0 bytes
    Global                                        0 bytes
    Local                                         0 bytes
  Atomic memory capabilities                      relaxed, work-group scope
  Atomic fence capabilities                       relaxed, acquire/release, work-group scope
  Max size for global variable                    0
  Preferred total size of global vars             0
  Global Memory cache type                        None
  Image support                                   Yes
    Max number of samplers per kernel             32
    Max size for 1D images from buffer            268435455 pixels
    Max 1D or 2D image array size                 8192 images
    Base address alignment for 2D image buffers   0 bytes
    Pitch alignment for 2D image buffers          0 pixels
    Max 2D image size                             16384x16384 pixels
    Max 3D image size                             8192x8192x8192 pixels
    Max number of read image args                 32
    Max number of write image args                16
    Max number of read/write image args           0
  Pipe support                                    No
  Max number of pipe args                         0
  Max active pipe reservations                    0
  Max pipe packet size                            0
  Local memory type                               Global
  Local memory size                               65536 (64KiB)
  Max number of constant args                     16
  Max constant buffer size                        67108864 (64MiB)
  Generic address space support                   No
  Max size of kernel argument                     4096 (4KiB)
  Queue properties (on host)                      
    Out-of-order execution                        No
    Profiling                                     Yes
  Device enqueue capabilities                     (n/a)
  Queue properties (on device)                    
    Out-of-order execution                        No
    Profiling                                     No
    Preferred size                                0
    Max size                                      0
  Max queues on device                            0
  Max events on device                            0
  Prefer user sync for interop                    Yes
  Profiling timer resolution                      10ns
  Execution capabilities                          
    Run OpenCL kernels                            Yes
    Run native kernels                            No
    Non-uniform work-groups                       No
    Work-group collective functions               No
    Sub-group independent forward progress        No
    IL version                                    SPIR-V_1.0 SPIR-V_1.1 SPIR-V_1.2 SPIR-V_1.3 SPIR-V_1.4
    ILs with version                              SPIR-V                                                           0x400000 (1.0.0)
                                                  SPIR-V                                                           0x401000 (1.1.0)
                                                  SPIR-V                                                           0x402000 (1.2.0)
                                                  SPIR-V                                                           0x403000 (1.3.0)
                                                  SPIR-V                                                           0x404000 (1.4.0)
  printf() buffer size                            1048576 (1024KiB)
  Built-in kernels                                (n/a)
  Built-in kernels with version                   (n/a)
  Device Extensions                               cl_khr_byte_addressable_store cl_khr_create_command_queue cl_khr_expect_assume cl_khr_extended_versioning cl_khr_icd cl_khr_il_program cl_khr_spirv_no_integer_wrap_decoration cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_integer_dot_product cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_gl_sharing cles_khr_int64 cl_khr_3d_image_writes cl_khr_pci_bus_info cl_khr_device_uuid cl_khr_subgroup_shuffle cl_khr_subgroup_shuffle_relative
  Device Extensions with Version                  cl_khr_byte_addressable_store                                    0x400000 (1.0.0)
                                                  cl_khr_create_command_queue                                      0x400000 (1.0.0)
                                                  cl_khr_expect_assume                                             0x400000 (1.0.0)
                                                  cl_khr_extended_versioning                                       0x400000 (1.0.0)
                                                  cl_khr_icd                                                       0x400000 (1.0.0)
                                                  cl_khr_il_program                                                0x400000 (1.0.0)
                                                  cl_khr_spirv_no_integer_wrap_decoration                          0x400000 (1.0.0)
                                                  cl_khr_global_int32_base_atomics                                 0x400000 (1.0.0)
                                                  cl_khr_global_int32_extended_atomics                             0x400000 (1.0.0)
                                                  cl_khr_integer_dot_product                                       0x800000 (2.0.0)
                                                  cl_khr_local_int32_base_atomics                                  0x400000 (1.0.0)
                                                  cl_khr_local_int32_extended_atomics                              0x400000 (1.0.0)
                                                  cl_khr_gl_sharing                                                0x400000 (1.0.0)
                                                  cles_khr_int64                                                   0x400000 (1.0.0)
                                                  cl_khr_3d_image_writes                                           0x400000 (1.0.0)
                                                  cl_khr_pci_bus_info                                              0x400000 (1.0.0)
                                                  cl_khr_device_uuid                                               0x400000 (1.0.0)
                                                  cl_khr_subgroup_shuffle                                          0x400000 (1.0.0)
                                                  cl_khr_subgroup_shuffle_relative                                 0x400000 (1.0.0)

NULL platform behavior
  clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...)  rusticl
  clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)   Success [MESA]
  clCreateContext(NULL, ...) [default]            Success [MESA]
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT)  Success (1)
    Platform Name                                 rusticl
    Device Name                                   AMD Radeon Graphics (radeonsi, rembrandt, LLVM 17.0.6, DRM 3.63, 6.8.0-60-generic)
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU)  Success (1)
    Platform Name                                 rusticl
    Device Name                                   AMD Radeon Graphics (radeonsi, rembrandt, LLVM 17.0.6, DRM 3.63, 6.8.0-60-generic)
  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                                 rusticl
    Device Name                                   AMD Radeon Graphics (radeonsi, rembrandt, LLVM 17.0.6, DRM 3.63, 6.8.0-60-generic)

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

Bitte diese Diskussion beachten:

https://github.com/ROCm/ROCm/discussions/2932
 
linuxnutzer schrieb:
Vielleicht kann wer was dazu sagen, warum meine Konfiguration nicht funktioniert, dh abstürzt.
Ich sehe nichts, was abgestürzt ist...
Logs or didn't happen.
 
Rusticl ist halt in Entwicklung und Mesa 24.0.5 eine recht alte Version, damals war Rusticl halt noch nicht stabil, nimm rocm-opencl und gut, habe ich letztes Jahr nach ein paar versuchen mit darktable und rusticl auch gemacht. Habe Rusticl danach noch nicht wieder versucht rocm + darktable und hip + Blender läuft einfach (auf Framework 13 mit AMD 7840U also eine 780M iGPU)
 
  • Gefällt mir
Reaktionen: Der_Dicke82
Dürfte mit dem verwendeten Testszenario zusammen hängen-

Code:
darktable-cli bench.srw bench.srw.xmp test-bench.jpg --core -d perf -d opencl | tee rustilog-bench.txt

Das läuft durch:

Code:
darktable 5.0.1
Copyright (C) 2012-2025 Johannes Hanika and other contributors.

Compile options:
  Bit depth              -> 64 bit
  Debug                  -> DISABLED
  SSE2 optimizations     -> ENABLED
  OpenMP                 -> ENABLED
  OpenCL                 -> ENABLED
  Lua                    -> ENABLED  - API version 9.4.0
  Colord                 -> ENABLED
  gPhoto2                -> ENABLED
  GMIC                   -> ENABLED  - Compressed LUTs are supported
  GraphicsMagick         -> ENABLED
  ImageMagick            -> DISABLED
  libavif                -> DISABLED
  libheif                -> ENABLED
  libjxl                 -> ENABLED
  LibRaw                 -> ENABLED  - Version 0.22.0-Devel202403
  OpenJPEG               -> ENABLED
  OpenEXR                -> ENABLED
  WebP                   -> ENABLED

See https://www.darktable.org/resources/ for detailed documentation.
See https://github.com/darktable-org/darktable/issues/new/choose to report bugs.

     0.2167 [dt_get_sysresource_level] switched to 1 as `default'
     0.2167   total mem:       11690MB
     0.2167   mipmap cache:    1461MB
     0.2167   available mem:   5845MB
     0.2167   singlebuff:      91MB
     0.2348 [dt_dlopencl_init] could not find default opencl runtime library 'libOpenCL'
     0.2348 [dt_dlopencl_init] could not find default opencl runtime library 'libOpenCL.so'
     0.2350 [opencl_init] opencl library 'libOpenCL.so.1' found on your system and loaded, preference 'default path'
     0.6407 [opencl_init] found 1 platform
[opencl_init] found 1 device

[dt_opencl_device_init]
OpenCL Mesa platform `Mesa/X.org' --> `AMD Radeon Graphics'
   DEVICE:                   0: 'AMD Radeon Graphics (radeonsi, rembrandt, LLVM 17.0.6, DRM 3.63, 6.8.0-60-generic)'
   CONF KEY:                 cldevice_v5_rusticlamdradeongraphics
   PLATFORM, VENDOR & ID:    rusticl, Mesa:Mesa/X.org, ID=4098
   CANONICAL NAME:           rusticlamdradeongraphics
   DRIVER VERSION:           24.0.5-1ubuntu1
   DEVICE VERSION:           OpenCL 3.0 
   DEVICE_TYPE:              GPU, dedicated mem
   GLOBAL MEM SIZE:          5845 MB
   MAX MEM ALLOC:            1461 MB
   MAX IMAGE SIZE:           16384 x 16384
   MAX WORK GROUP SIZE:      1024
   MAX WORK ITEM DIMENSIONS: 3
   MAX WORK ITEM SIZES:      [ 1024 1024 1024 ]
   ASYNC PIXELPIPE:          NO
   PINNED MEMORY TRANSFER:   NO
   USE HEADROOM:             600Mb
   AVOID ATOMICS:            NO
   MICRO NAP:                250
   ROUNDUP WIDTH & HEIGHT    16x16
   CHECK EVENT HANDLES:      128
   TILING ADVANTAGE:         0.000
   DEFAULT DEVICE:           NO
   KERNEL BUILD DIRECTORY:   /usr/share/darktable/kernels
   KERNEL DIRECTORY:         /home/ab/.cache/darktable/cached_v5_kernels_for_rusticlAMDRadeonGraphics_24051ubuntu1
   CL COMPILER OPTION:       
   CL COMPILER COMMAND:      -w  -DAMD=1 -I"/usr/share/darktable/kernels"
   KERNEL LOADING TIME:       0.4597 sec
[opencl_init] OpenCL successfully initialized. internal numbers and names of available devices:
[opencl_init]        0    'rusticl AMD Radeon Graphics'
     1.1036 [opencl_init] FINALLY: opencl PREFERENCE=ON is AVAILABLE and ENABLED.
[opencl_init] opencl_scheduling_profile: 'default'
[opencl_init] opencl_device_priority: '*/!0,*/*/*/!0,*'
[opencl_init] opencl_mandatory_timeout: 400
[opencl_update_priorities] these are your device priorities:
[opencl_update_priorities]         image    preview    export    thumbs    preview2
[dt_opencl_update_priorities]        0    -1    0    0    -1
[opencl_update_priorities] show if opencl use is mandatory for a given pixelpipe:
[opencl_update_priorities]         image    preview    export    thumbs    preview2
[opencl_update_priorities]        0    0    0    0    0
[opencl_synchronization_timeout] synchronization timeout set to 200
[opencl_update_priorities] these are your device priorities:
[opencl_update_priorities]         image    preview    export    thumbs    preview2
[dt_opencl_update_priorities]        0    -1    0    0    -1
[opencl_update_priorities] show if opencl use is mandatory for a given pixelpipe:
[opencl_update_priorities]         image    preview    export    thumbs    preview2
[opencl_update_priorities]        0    0    0    0    0
[opencl_synchronization_timeout] synchronization timeout set to 200
     2.2507 [dt_dev_load_raw] loading the image. took 0.103 secs (0.121 CPU)
     2.3065 [export] creating pixelpipe took 0.051 secs (0.395 CPU)
     2.3066 [dt_opencl_check_tuning] use 5245MB (headroom=ON, pinning=OFF) on device `rusticl AMD Radeon Graphics' id=0
     2.3102 [dev_pixelpipe] took 0.003 secs (0.013 CPU) initing base buffer [export]
     2.3326 [dev_pixelpipe] took 0.022 secs (0.068 CPU) [export] processed `rawprepare' on GPU, blended on GPU
     2.3362 [dev_pixelpipe] took 0.004 secs (0.000 CPU) [export] processed `temperature' on GPU, blended on GPU
     2.4325 [dev_pixelpipe] took 0.096 secs (0.584 CPU) [export] processed `highlights' on CPU, blended on CPU
     2.6515 [dev_pixelpipe] took 0.219 secs (3.233 CPU) [export] processed `demosaic' on CPU, blended on CPU
     3.5857 [dev_pixelpipe] took 0.934 secs (3.102 CPU) [export] processed `tonemap' on CPU, blended on CPU
     3.9432 [dev_pixelpipe] took 0.357 secs (0.307 CPU) [export] processed `lens' on GPU, blended on GPU
     3.9676 [dev_pixelpipe] took 0.024 secs (0.002 CPU) [export] processed `basecurve' on GPU, blended on GPU
     3.9899 [dev_pixelpipe] took 0.022 secs (0.002 CPU) [export] processed `colorin' on GPU, blended on GPU
     4.0413 [dev_pixelpipe] took 0.051 secs (0.000 CPU) [export] processed `colorreconstruct' on GPU, blended on GPU
     9.5828 [dev_pixelpipe] took 5.541 secs (0.122 CPU) [export] processed `nlmeans' on GPU, blended on GPU
     9.6937 [dev_pixelpipe] took 0.111 secs (0.004 CPU) [export] processed `globaltonemap' on GPU, blended on GPU
    10.4374 [dev_pixelpipe] took 0.744 secs (0.049 CPU) [export] processed `shadhi' on GPU, blended on GPU
    12.1930 [dev_pixelpipe] took 1.756 secs (0.002 CPU) [export] processed `atrous' on GPU, blended on GPU
    12.2462 [dev_pixelpipe] took 0.053 secs (0.001 CPU) [export] processed `bilat' on GPU, blended on GPU
    12.2699 [dev_pixelpipe] took 0.024 secs (0.001 CPU) [export] processed `colorzones' on GPU, blended on GPU
    12.2904 [dev_pixelpipe] took 0.020 secs (0.001 CPU) [export] processed `levels' on GPU, blended on GPU
    12.3493 [dev_pixelpipe] took 0.059 secs (0.001 CPU) [export] processed `sharpen' on GPU, blended on GPU
    12.3674 [dev_pixelpipe] took 0.018 secs (0.000 CPU) [export] processed `colorcontrast' on GPU, blended on GPU
    12.4016 [dev_pixelpipe] took 0.034 secs (0.000 CPU) [export] processed `colorout' on GPU, blended on GPU
    12.4733 [resample_cl] took 0.000 secs (0.000 CPU) 1:1 copy/crop of 5490x3660 pixels
    12.4880 [dev_pixelpipe] took 0.086 secs (0.000 CPU) [export] processed `finalscale' on GPU, blended on GPU
    12.6859 [opencl_profiling] profiling device 0 ('rusticl AMD Radeon Graphics'):
    12.6859 [opencl_profiling] spent  0.0217 seconds in [Write Image (from host to device)]
    12.6859 [opencl_profiling] spent  0.0023 seconds in rawprepare_1f
    12.6859 [opencl_profiling] spent  0.0029 seconds in whitebalance_1f
    12.6859 [opencl_profiling] spent  0.1273 seconds in [Read Image (from device to host)]
    12.6859 [opencl_profiling] spent  0.0618 seconds in [Copy Image (on device)]
    12.6859 [opencl_profiling] spent  0.0000 seconds in [Write Buffer (from host to device)]
    12.6859 [opencl_profiling] spent  0.0440 seconds in lens_distort_bicubic
    12.6860 [opencl_profiling] spent  0.0160 seconds in basecurve_legacy_lut
    12.6860 [opencl_profiling] spent  0.0156 seconds in colorin_unbound
    12.6860 [opencl_profiling] spent  0.0000 seconds in colorreconstruction_zero
    12.6860 [opencl_profiling] spent  0.0304 seconds in colorreconstruction_splat
    12.6860 [opencl_profiling] spent  0.0000 seconds in [Copy Buffer to Buffer (on device)]
    12.6860 [opencl_profiling] spent  0.0000 seconds in colorreconstruction_blur_line
    12.6860 [opencl_profiling] spent  0.0132 seconds in colorreconstruction_slice
    12.6860 [opencl_profiling] spent  0.0059 seconds in nlmeans_init
    12.6860 [opencl_profiling] spent  1.0826 seconds in nlmeans_dist
    12.6860 [opencl_profiling] spent  0.3257 seconds in nlmeans_horiz
    12.6860 [opencl_profiling] spent  0.7862 seconds in nlmeans_vert
    12.6860 [opencl_profiling] spent  2.8027 seconds in nlmeans_accu
    12.6860 [opencl_profiling] spent  0.0246 seconds in nlmeans_finish
    12.6860 [opencl_profiling] spent  0.0069 seconds in pixelmax_first
    12.6860 [opencl_profiling] spent  0.0000 seconds in pixelmax_second
    12.6860 [opencl_profiling] spent  0.0001 seconds in [Read Buffer (from device to host)]
    12.6860 [opencl_profiling] spent  0.0000 seconds in zero
    12.6860 [opencl_profiling] spent  0.0850 seconds in splat
    12.6860 [opencl_profiling] spent  0.0137 seconds in global_tonemap_drago
    12.6860 [opencl_profiling] spent  0.0001 seconds in blur_line
    12.6860 [opencl_profiling] spent  0.0000 seconds in blur_line_z
    12.6860 [opencl_profiling] spent  0.0168 seconds in slice_to_output
    12.6860 [opencl_profiling] spent  0.1049 seconds in [Copy Image to Buffer (on device)]
    12.6860 [opencl_profiling] spent  0.0581 seconds in gaussian_column_4c
    12.6860 [opencl_profiling] spent  0.0252 seconds in gaussian_transpose_4c
    12.6860 [opencl_profiling] spent  0.1931 seconds in [Copy Buffer to Image (on device)]
    12.6860 [opencl_profiling] spent  0.0174 seconds in shadows_highlights_mix
    12.6860 [opencl_profiling] spent  0.4357 seconds in eaw_decompose
    12.6860 [opencl_profiling] spent  0.1387 seconds in eaw_synthesize
    12.6860 [opencl_profiling] spent  0.0139 seconds in slice
    12.6860 [opencl_profiling] spent  0.0199 seconds in colorzones_v3
    12.6860 [opencl_profiling] spent  0.0186 seconds in levels
    12.6860 [opencl_profiling] spent  0.0228 seconds in sharpen_hblur
    12.6860 [opencl_profiling] spent  0.0137 seconds in sharpen_vblur
    12.6860 [opencl_profiling] spent  0.0182 seconds in sharpen_mix
    12.6860 [opencl_profiling] spent  0.0158 seconds in colorcontrast
    12.6860 [opencl_profiling] spent  0.0251 seconds in colorout
    12.6860 [opencl_profiling] spent  6.6065 seconds totally in command queue (with 0 events missing)
    12.6860 [dev_process_export] pixel pipeline processing took 10.379 secs (7.554 CPU)
    12.9825 [export_job] exported to `test-bench.jpg'
 [opencl_summary_statistics] device 'rusticl AMD Radeon Graphics' (0): 552 out of 552 events were successful and 0 events lost. max event=551

Vergleichsweise:

Code:
$ darktable-cli bench.srw bench.srw.xmp test-bench.jpg --core --disable-opencl -d perf  | tee rustilog-bench-cpuonly.txt
output file already exists, it will get renamed
darktable 5.0.1
Copyright (C) 2012-2025 Johannes Hanika and other contributors.

Compile options:
  Bit depth              -> 64 bit
  Debug                  -> DISABLED
  SSE2 optimizations     -> ENABLED
  OpenMP                 -> ENABLED
  OpenCL                 -> ENABLED
  Lua                    -> ENABLED  - API version 9.4.0
  Colord                 -> ENABLED
  gPhoto2                -> ENABLED
  GMIC                   -> ENABLED  - Compressed LUTs are supported
  GraphicsMagick         -> ENABLED
  ImageMagick            -> DISABLED
  libavif                -> DISABLED
  libheif                -> ENABLED
  libjxl                 -> ENABLED
  LibRaw                 -> ENABLED  - Version 0.22.0-Devel202403
  OpenJPEG               -> ENABLED
  OpenEXR                -> ENABLED
  WebP                   -> ENABLED

See https://www.darktable.org/resources/ for detailed documentation.
See https://github.com/darktable-org/darktable/issues/new/choose to report bugs.

     0.9083 [dt_dev_load_raw] loading the image. took 0.108 secs (0.133 CPU)
     0.9585 [export] creating pixelpipe took 0.045 secs (0.393 CPU)
     0.9624 [dev_pixelpipe] took 0.003 secs (0.037 CPU) initing base buffer [export]
     0.9686 [dev_pixelpipe] took 0.006 secs (0.037 CPU) [export] processed `rawprepare' on CPU, blended on CPU
     0.9766 [dev_pixelpipe] took 0.008 secs (0.083 CPU) [export] processed `temperature' on CPU, blended on CPU
     1.0123 [dev_pixelpipe] took 0.036 secs (0.566 CPU) [export] processed `highlights' on CPU, blended on CPU
     1.2396 [dev_pixelpipe] took 0.227 secs (3.289 CPU) [export] processed `demosaic' on CPU, blended on CPU
     2.2132 [dev_pixelpipe] took 0.973 secs (3.101 CPU) [export] processed `tonemap' on CPU, blended on CPU
     2.5804 [dev_pixelpipe] took 0.367 secs (3.622 CPU) [export] processed `lens' on CPU, blended on CPU
     2.6110 [dev_pixelpipe] took 0.031 secs (0.445 CPU) [export] processed `basecurve' on CPU, blended on CPU
     2.6303 [dev_pixelpipe] took 0.019 secs (0.293 CPU) [export] processed `colorin' on CPU, blended on CPU
     2.6993 [dev_pixelpipe] took 0.069 secs (1.057 CPU) [export] processed `colorreconstruct' on CPU, blended on CPU
     5.4492 [dev_pixelpipe] took 2.750 secs (43.290 CPU) [export] processed `nlmeans' on CPU, blended on CPU
     5.5405 [dev_pixelpipe] took 0.091 secs (1.430 CPU) [export] processed `globaltonemap' on CPU, blended on CPU
     5.7127 [dev_pixelpipe] took 0.172 secs (2.217 CPU) [export] processed `shadhi' on CPU, blended on CPU
     6.7196 [dev_pixelpipe] took 1.007 secs (14.934 CPU) [export] processed `atrous' on CPU, blended on CPU
     6.7645 [dev_pixelpipe] took 0.045 secs (0.697 CPU) [export] processed `bilat' on CPU, blended on CPU
     6.8432 [dev_pixelpipe] took 0.079 secs (1.257 CPU) [export] processed `colorzones' on CPU, blended on CPU
     6.8701 [dev_pixelpipe] took 0.027 secs (0.378 CPU) [export] processed `levels' on CPU, blended on CPU
     6.9242 [dev_pixelpipe] took 0.054 secs (0.830 CPU) [export] processed `sharpen' on CPU, blended on CPU
     6.9408 [dev_pixelpipe] took 0.017 secs (0.232 CPU) [export] processed `colorcontrast' on CPU, blended on CPU
     6.9810 [dev_pixelpipe] took 0.040 secs (0.606 CPU) [export] processed `colorout' on CPU, blended on CPU
     7.0062 [resample_plain] took 0.025 secs (0.391 CPU) 1:1 copy/crop of 5490x3660 pixels
     7.0063 [dev_pixelpipe] took 0.025 secs (0.391 CPU) [export] processed `finalscale' on CPU, blended on CPU
     7.0064 [dev_process_export] pixel pipeline processing took 6.048 secs (78.823 CPU)
     7.3041 [export_job] exported to `test-bench_01.jpg'

Sehe ich es richtig mit rusticl dauert es länger?

Das schmiert ab:

Sass:
$ darktable-cli setubal.orf setubal.orf.xmp test-setubal.jpg --core -d perf -d opencl | tee rustilog-setubal.txt

darktable 5.0.1
Copyright (C) 2012-2025 Johannes Hanika and other contributors.

Compile options:
  Bit depth              -> 64 bit
  Debug                  -> DISABLED
  SSE2 optimizations     -> ENABLED
  OpenMP                 -> ENABLED
  OpenCL                 -> ENABLED
  Lua                    -> ENABLED  - API version 9.4.0
  Colord                 -> ENABLED
  gPhoto2                -> ENABLED
  GMIC                   -> ENABLED  - Compressed LUTs are supported
  GraphicsMagick         -> ENABLED
  ImageMagick            -> DISABLED
  libavif                -> DISABLED
  libheif                -> ENABLED
  libjxl                 -> ENABLED
  LibRaw                 -> ENABLED  - Version 0.22.0-Devel202403
  OpenJPEG               -> ENABLED
  OpenEXR                -> ENABLED
  WebP                   -> ENABLED

See https://www.darktable.org/resources/ for detailed documentation.
See https://github.com/darktable-org/darktable/issues/new/choose to report bugs.

     0.0442 [dt_get_sysresource_level] switched to 1 as `default'
     0.0443   total mem:       11690MB
     0.0443   mipmap cache:    1461MB
     0.0443   available mem:   5845MB
     0.0443   singlebuff:      91MB
     0.0499 [dt_dlopencl_init] could not find default opencl runtime library 'libOpenCL'
     0.0499 [dt_dlopencl_init] could not find default opencl runtime library 'libOpenCL.so'
     0.0500 [opencl_init] opencl library 'libOpenCL.so.1' found on your system and loaded, preference 'default path'
     0.1033 [opencl_init] found 1 platform
[opencl_init] found 1 device

[dt_opencl_device_init]
OpenCL Mesa platform `Mesa/X.org' --> `AMD Radeon Graphics'
   DEVICE:                   0: 'AMD Radeon Graphics (radeonsi, rembrandt, LLVM 17.0.6, DRM 3.63, 6.8.0-60-generic)'
   CONF KEY:                 cldevice_v5_rusticlamdradeongraphics
   PLATFORM, VENDOR & ID:    rusticl, Mesa:Mesa/X.org, ID=4098
   CANONICAL NAME:           rusticlamdradeongraphics
   DRIVER VERSION:           24.0.5-1ubuntu1
   DEVICE VERSION:           OpenCL 3.0 
   DEVICE_TYPE:              GPU, dedicated mem
   GLOBAL MEM SIZE:          5845 MB
   MAX MEM ALLOC:            1461 MB
   MAX IMAGE SIZE:           16384 x 16384
   MAX WORK GROUP SIZE:      1024
   MAX WORK ITEM DIMENSIONS: 3
   MAX WORK ITEM SIZES:      [ 1024 1024 1024 ]
   ASYNC PIXELPIPE:          NO
   PINNED MEMORY TRANSFER:   NO
   USE HEADROOM:             600Mb
   AVOID ATOMICS:            NO
   MICRO NAP:                250
   ROUNDUP WIDTH & HEIGHT    16x16
   CHECK EVENT HANDLES:      128
   TILING ADVANTAGE:         0.000
   DEFAULT DEVICE:           NO
   KERNEL BUILD DIRECTORY:   /usr/share/darktable/kernels
   KERNEL DIRECTORY:         /home/ab/.cache/darktable/cached_v5_kernels_for_rusticlAMDRadeonGraphics_24051ubuntu1
   CL COMPILER OPTION:       
   CL COMPILER COMMAND:      -w  -DAMD=1 -I"/usr/share/darktable/kernels"
   KERNEL LOADING TIME:       0.2761 sec
[opencl_init] OpenCL successfully initialized. internal numbers and names of available devices:
[opencl_init]        0    'rusticl AMD Radeon Graphics'
     0.3799 [opencl_init] FINALLY: opencl PREFERENCE=ON is AVAILABLE and ENABLED.
[opencl_init] opencl_scheduling_profile: 'default'
[opencl_init] opencl_device_priority: '*/!0,*/*/*/!0,*'
[opencl_init] opencl_mandatory_timeout: 400
[opencl_update_priorities] these are your device priorities:
[opencl_update_priorities]         image    preview    export    thumbs    preview2
[dt_opencl_update_priorities]        0    -1    0    0    -1
[opencl_update_priorities] show if opencl use is mandatory for a given pixelpipe:
[opencl_update_priorities]         image    preview    export    thumbs    preview2
[opencl_update_priorities]        0    0    0    0    0
[opencl_synchronization_timeout] synchronization timeout set to 200
[opencl_update_priorities] these are your device priorities:
[opencl_update_priorities]         image    preview    export    thumbs    preview2
[dt_opencl_update_priorities]        0    -1    0    0    -1
[opencl_update_priorities] show if opencl use is mandatory for a given pixelpipe:
[opencl_update_priorities]         image    preview    export    thumbs    preview2
[opencl_update_priorities]        0    0    0    0    0
[opencl_synchronization_timeout] synchronization timeout set to 200
     1.7829 [dt_dev_load_raw] loading the image. took 0.661 secs (0.598 CPU)
     1.8446 [export] creating pixelpipe took 0.058 secs (0.583 CPU)
     1.8447 [dt_opencl_check_tuning] use 5245MB (headroom=ON, pinning=OFF) on device `rusticl AMD Radeon Graphics' id=0
     1.8455 [dev_pixelpipe] took 0.000 secs (0.000 CPU) initing base buffer [export]
     1.8796 [dev_pixelpipe] took 0.034 secs (0.076 CPU) [export] processed `rawprepare' on GPU, blended on GPU
     1.8899 [dev_pixelpipe] took 0.010 secs (0.001 CPU) [export] processed `temperature' on GPU, blended on GPU
     1.9175 [dev_pixelpipe] took 0.027 secs (0.001 CPU) [export] processed `highlights' on GPU, blended on GPU
     2.0850 [dev_pixelpipe] took 0.168 secs (0.225 CPU) [export] processed `hotpixels' on CPU, blended on CPU
     2.3043 [dev_pixelpipe] took 0.219 secs (0.092 CPU) [export] processed `demosaic' on GPU, blended on GPU
     8.4943 [dev_pixelpipe] took 6.190 secs (0.211 CPU) [export] processed `denoiseprofile' on GPU with tiling, blended on CPU
    13.4830 [dev_pixelpipe] took 4.989 secs (1.270 CPU) [export] processed `lens' on GPU, blended on GPU
    13.6156 [dev_pixelpipe] took 0.129 secs (0.000 CPU) [export] processed `ashift' on GPU, blended on GPU
    13.8333 [dev_pixelpipe] took 0.216 secs (0.000 CPU) [export] processed `exposure' on GPU, blended on GPU
    21.9540 [dev_pixelpipe] took 8.117 secs (0.000 CPU) [export] processed `colorin' on GPU, blended on GPU
    22.1089 [dt_ioppr_transform_image_colorspace_cl] IOP_CS_LAB-->IOP_CS_RGB took 0.152 secs (0.001 GPU) [channelmixerrgb]
    22.2075 [dev_pixelpipe] took 0.252 secs (0.001 CPU) [export] processed `channelmixerrgb' on GPU, blended on GPU
    27.3306 [dt_ioppr_transform_image_colorspace] IOP_CS_RGB-->IOP_CS_LAB took 1.252 secs (0.523 CPU) [atrous]
Ergänzung ()

AlphaKaninchen schrieb:
nimm rocm-opencl und gu

Wie mache ich das jetzt?
 
Zurück
Oben