Error: Test image not found

Gilles Caulier caulier.gilles at gmail.com
Tue Oct 28 01:50:04 GMT 2025


Hi,

The error come from there in code :

https://invent.kde.org/graphics/digikam/-/blob/master/core/utilities/setup/misc/ocvocldnntestdlg.cpp?ref_type=heads#L296

The DNNModelManager class used here tries to provide a DNN model file
to run the opencl test, and fail.The error message is ambiguous. I
will fix it.

Anyway the model file must be downloaded by the application before
using it in the test. Did you do it at application startup ?

You can do it later in the setup dialog with the "Download Required Binary Data"

https://docs.digikam.org/en/setup_application/miscs_settings.html#system-settings

Gilles Caulier

Le mar. 28 oct. 2025 à 00:31, <digikam at sritch.com> a écrit :
>
> Test GPU AI Compatibility:
>
> and I'm missing the test image.
>
> Starting OpenCV OpenCL DNN test...
> Checking for OpenCL GPU acceleration compatibility with AI models...
> OpenCL is available on this system.
> OpenCL acceleration device is available.
> Using device: NVIDIA GeForce RTX 4060 Laptop GPU
> Loading test image...
> Error: Test image not found.
>
> Test failed. Your system may not be able to use GPU acceleration for
> the AI models.
>
> -----------------------------
>
> What is the test image?
>
> -----------------------------
>
> When I run ollama, I get:
>
> time=2025-10-27T16:26:16.470-07:00 level=INFO source=types.go:112
> msg="inference compute" id=GPU-602627c4-52c8-80b9-af33-fe2b9dd296bf
> library=CUDA compute=8.9 name=CUDA0 description="NVIDIA GeForce RTX
> 4060 Laptop GPU" libdirs=ollama,cuda_v13 driver=13.0 pci_id=01:00.0
> type=discrete total="8.0 GiB" available="7.4 GiB"
>
> I also run darktable and it works with opencl:
>
>  $ darktable-cltest
> darktable 5.2.1
> Copyright (C) 2012-2025 Johannes Hanika and other contributors.
>
> Compile options:
>   Bit depth              -> 64 bit
>   Exiv2                  -> 0.28.5
>   Lensfun                -> 0.3.4
>   Debug                  -> DISABLED
>   SSE2 optimizations     -> ENABLED
>   OpenMP                 -> ENABLED
>   OpenCL                 -> ENABLED
>   Lua                    -> ENABLED  - API version 9.5.0
>   Colord                 -> ENABLED
>   gPhoto2                -> ENABLED
>   OSMGpsMap              -> ENABLED  - map view is available
>   GMIC                   -> ENABLED  - Compressed LUTs are supported
>   GraphicsMagick         -> ENABLED
>   ImageMagick            -> DISABLED
>   libavif                -> ENABLED
>   libheif                -> ENABLED
>   libjxl                 -> ENABLED
>   LibRaw                 -> ENABLED  - Version 0.22.0-Devel202502
>   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.3874 [opencl_init] opencl library 'libOpenCL' found on your system and loaded, preference 'default path'
>      0.4092 [opencl_init] found 1 platform
> [opencl_init] found 1 device
>
> [dt_opencl_device_init]
>    DEVICE:                   0: 'NVIDIA GeForce RTX 4060 Laptop GPU'
>    CONF KEY:                 cldevice_v5_nvidiacudanvidiageforcertx4060laptopgpu
>    PLATFORM, VENDOR & ID:    NVIDIA CUDA, NVIDIA Corporation, ID=4318
>    CANONICAL NAME:           nvidiacudanvidiageforcertx4060laptopgpu
>    DRIVER VERSION:           580.82.09
>    DEVICE VERSION:           OpenCL 3.0 CUDA, SM_20 SUPPORT
>    DEVICE_TYPE:              GPU, dedicated mem
>    GLOBAL MEM SIZE:          7806 MB
>    MAX MEM ALLOC:            1951 MB
>    MAX IMAGE SIZE:           32768 x 32768
>    MAX WORK GROUP SIZE:      1024
>    MAX WORK ITEM DIMENSIONS: 3
>    MAX WORK ITEM SIZES:      [ 1024 1024 64 ]
>    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:   /usr/share/darktable/kernels
>    KERNEL DIRECTORY:         /home/froggy/.cache/darktable/cached_v5_kernels_for_NVIDIACUDANVIDIAGeForceRTX4060LaptopGPU_5808209
>    CL COMPILER OPTION:       -cl-fast-relaxed-math
>    CL COMPILER COMMAND:      -w -cl-fast-relaxed-math -DNVIDIA_SM_20=1 -DNVIDIA=1 -I"/usr/share/darktable/kernels"
>    CL EXCEPTION:             DT_OPENCL_ONLY_CUDA
>    KERNEL LOADING TIME:       0.0838 sec
> [opencl_init] OpenCL successfully initialized. internal numbers and names of available devices:
> [opencl_init]           0       'NVIDIA CUDA NVIDIA GeForce RTX 4060 Laptop GPU'
>      0.5756 [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: 1000
> [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
>
> Thanks
>
> --
> sknahT
>
> vyS


More information about the Digikam-users mailing list