10000 Darktable appimage fails to compile intel opencl · Issue #18373 · darktable-org/darktable · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Darktable appimage fails to compile intel opencl #18373

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task done
joesid12 opened this issue Feb 7, 2025 · 5 comments
Open
1 task done

Darktable appimage fails to compile intel opencl #18373

joesid12 opened this issue Feb 7, 2025 · 5 comments
Labels
OpenCL Related to darktable OpenCL code reproduce: peculiar the bug seems to affect only a specific target and cannot be reproduced elsewhere

Comments

@joesid12
Copy link
joesid12 commented Feb 7, 2025

Is there an existing issue for this?

  • I checked and did not find my issue in the already reported ones

Describe the bug

Using the latest intel-graphics-compiler (1.0.15468.25-2ubuntu0.1) provided by the linux mint 22.1 update manager opencl fails to compile for for the intel(R) UHD Graphics 630. If the compiler package is downgraded it works and since it compiles only on the initial launch it will work fine even if the compiler is upgraded.

This issue is based on the latest 5.1 build but, I first discovered the problem with the production 5.0 release which is my production install. Because the 5.0 release compiles opencl on every launch it became a real problem. I am able to downgrade the compiler as a workaround and ignore the option to upgrade the compiler. I can't say for sure if it is a darktable issue or a compiler problem since I am not aware of any other app on my system that uses the compiler.

Steps to reproduce

  1. Update linux mint 22.1
  2. Download the latest nightly build of darktable
  3. Rename the darktable directory in /home/USER/.config to force a clean/fresh launch
  4. opencl compiles fine for my nvidia card but fails for the onboard intel gpu

Workaround steps is to downgrade the intel compiler

  1. sudo apt remove libigc1
  2. sudo apt remove libigdfcl1
  3. sudo apt-get install libigc1=1.0.15468.25-2build1
  4. sudo apt-get install libigdfcl1=1.0.15468.25-2build1
  5. sudo apt install intel-opencl-icd
  6. delete the darktable directory in /home/USER/.config (may be optional)
  7. launch darktable

Expected behavior

No response

Logfile | Screenshot | Screencast

Output of launching darktable with the -d opencl option:
./Darktable-5.1.0+269.ga30f4ac621-x86_64.AppImage -d opencl

opencl-failed.txt

opencl-working.txt

Commit

No response

Where did you obtain darktable from?

darktable.org / GitHub release

darktable version

5.1.0+269~ga30f4ac621

What OS are you using?

Linux

What is the version of your OS?

linux mint Cinnamon 22.1

Describe your system

System:
Kernel: 6.8.0-52-generic arch: x86_64 bits: 64 compiler: gcc v: 13.3.0 clocksource: tsc
Desktop: Cinnamon v: 6.4.6 tk: GTK v: 3.24.41 wm: Muffin v: 6.4.1 vt: 7 dm: LightDM v: 1.30.0
Distro: Linux Mint 22.1 Xia base: Ubuntu 24.04 noble
Machine:
Type: Desktop System: Dell product: XPS 8940 v: N/A serial: Chassis: type: 3

Info: 8-core model: Intel Core i7-10700 bits: 64 type: MT MCP smt: enabled arch: Comet Lake

Device-1: Intel CometLake-S GT2 [UHD Graphics 630] vendor: Dell driver: i915 v: kernel
arch: Gen-9.5 ports: active: none empty: DP-3, DP-4, HDMI-A-2, HDMI-A-3 bus-ID: 00:02.0
chip-ID: 8086:9bc5 class-ID: 0380
Device-2: NVIDIA TU116 [GeForce GTX 1660 Ti] vendor: Dell driver: nvidia v: 550.120
arch: Turing pcie: speed: 2.5 GT/s lanes: 16 ports: active: none off: DP-2
empty: DP-1,DVI-D-1,HDMI-A-1 bus-ID: 01:00.0 chip-ID: 10de:2182 class-ID: 0300
Display: x11 server: X.Org v: 21.1.11 with: Xwayland v: 23.2.6 driver: X:
loaded: modesetting,nouveau unloaded: fbdev,vesa failed: nvidia dri: iris
gpu: nvidia,nvidia-nvswitch display-ID: :0 screens: 1
Screen-1: 0 s-res: 3840x2160 s-dpi: 162 s-size: 602x341mm (23.70x13.43") s-diag: 692mm (27.24")
Monitor-1: DP-0.8 res: 3840x2160 hz: 60 dpi: 163 size: 600x340mm (23.62x13.39")
diag: 690mm (27.15") modes: N/A
API: EGL v: 1.5 hw: drv: intel iris drv: nvidia platforms: device: 0 drv: nvidia device: 2
drv: iris device: 3 drv: swrast surfaceless: drv: nvidia x11: drv: nvidia
inactive: gbm,wayland,device-1
API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: nvidia mesa v: 550.120 glx-v: 1.4 direct-render: yes
renderer: NVIDIA GeForce GTX 1660 Ti/PCIe/SSE2

Are you using OpenCL GPU in darktable?

Yes

If yes, what is the GPU card and driver?

Intel(R) UHD Graphics 630 -- intel-opencl-lcd version 23.43.27642.40-1ubuntu3

Please provide additional context if applicable. You can attach files too, but might need to rename to .txt or .zip

This is an even bigger issue with darktable 5.0 because opencl is compiled on every launch.

@jenshannoschwalm jenshannoschwalm added reproduce: peculiar the bug seems to affect only a specific target and cannot be reproduced elsewhere OpenCL Related to darktable OpenCL code labels Feb 19, 2025
@pozix604
Copy link
pozix604 commented Feb 21, 2025

+1 same for me

Linux Mint 22.1, Intel Iris Xe

$ Darktable-5.0.1-x86_64.AppImage  -d opencl
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                -> ENABLED
  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.0056 [dt starting]
 /tmp/.mount_DarktaUOrQI6/usr/bin/darktable -d opencl
Gtk-Message: 16:22:11.789: Failed to load module "xapp-gtk3-module"
/usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so: undefined symbol: g_task_set_static_name
Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so
     0.3082 [dt_get_sysresource_level] switched to 1 as `default'
     0.3082   total mem:       31815MB
     0.3082   mipmap cache:    3976MB
     0.3082   available mem:   15907MB
     0.3082   singlebuff:      248MB
     0.3435 [opencl_init] opencl disabled via darktable preferences
     0.3438 [dt_dlopencl_init] could not find default opencl runtime library 'libOpenCL'
     0.3440 [dt_dlopencl_init] could not find default opencl runtime library 'libOpenCL.so'
     0.3452 [opencl_init] opencl library 'libOpenCL.so.1' found on your system and loaded, preference 'default path'
     0.3679 [opencl_init] found 1 platform
[opencl_init] found 1 device

[dt_opencl_device_init]
   DEVICE:                   0: 'Intel(R) Iris(R) Xe Graphics'
   CONF KEY:                 cldevice_v5_intelropenclgraphicsintelririsrxegraphics
   PLATFORM, VENDOR & ID:    Intel(R) OpenCL Graphics, Intel(R) Corporation, ID=32902
   CANONICAL NAME:           intelropenclgraphicsintelririsrxegraphics
   DRIVER VERSION:           23.43.027642
   DEVICE VERSION:           OpenCL 3.0 NEO
   DEVICE_TYPE:              GPU, unified mem
   GLOBAL MEM SIZE:          29456 MB
   MAX MEM ALLOC:            4096 MB
   MAX IMAGE SIZE:           16384 x 16384
   MAX WORK GROUP SIZE:      512
   MAX WORK ITEM DIMENSIONS: 3
   MAX WORK ITEM SIZES:      [ 512 512 512 ]
   ASYNC PIXELPIPE:          NO
   PINNED MEMORY TRANSFER:   NO
   AVOID ATOMICS:            NO
   MICRO NAP:                250
   ROUNDUP WIDTH & HEIGHT    16x16
   CHECK EVENT HANDLES:      128
   TILING ADVANTAGE:         0.000
   DEFAULT DEVICE:           NO
   KERNEL BUILD DIRECTORY:   /tmp/.mount_DarktaUOrQI6/usr/share/darktable/kernels
   KERNEL DIRECTORY:         /home/aaa/.cache/darktable/cached_v5_kernels_for_IntelROpenCLGraphicsIntelRIrisRXeGraphics_2343027642
   CL COMPILER OPTION:
   CL COMPILER COMMAND:      -w  -DINTEL=1 -I"/tmp/.mount_DarktaUOrQI6/usr/share/darktable/kernels"
     0.9281 [opencl_build_program] could not build program: CL_BUILD_PROGRAM_FAILURE
     0.9281 [dt_opencl_device_init] failed to compile program `basic.cl'!
[opencl_init] no suitable devices found.
     0.9281 [opencl_init] FINALLY: opencl PREFERENCE=OFF is NOT AVAILABLE and NOT ENABLED.
/usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so: undefined symbol: g_task_set_static_name
Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgioremote-volume-monitor.so
/usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so: undefined symbol: g_task_set_static_name
Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so
/usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so: undefined symbol: g_task_set_static_name
Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgioremote-volume-monitor.so
/usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so: undefined symbol: g_assertion_message_cmpint
Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so

@pozix604
Copy link

Additional data point.

Just reinstalled Debian 12. Installed intel-opencl-icd. OpenCL does work. So, there is a difference in the Linux distribution that Darktable does not account for.

@joesid12
Copy link
Author
joesid12 commented Feb 21, 2025 via email

Copy link

This issue has been marked as stale due to inactivity for the last 60 days. It will be automatically closed in 300 days if no update occurs. Please check if the master branch has fixed it and report again or close the issue.

@WIltshireJon
Copy link

Same for me. Further details here: but essentially identical to the original post here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OpenCL Related to darktable OpenCL code reproduce: peculiar the bug seems to affect only a specific target and cannot be reproduced elsewhere
Projects
None yet
Development

No branches or pull requests

4 participants
0