Re: [darktable-user] OpenCL not working, Nvidia driver - could not get platforms: -1001

2023-05-03 Thread Marco
On Tue, 02 May 2023 17:16:02 +0200
Remco Viëtor  wrote:

> No idea how that's arranged on Debian, but look for packages related
> to nvidia, opencl

I installed the package nvidia-opencl-icd and now it works. Thanks
for the quick help.

Marco

darktable user mailing list
to unsubscribe send a mail to darktable-user+unsubscr...@lists.darktable.org



Re: [darktable-user] OpenCL not working, Nvidia driver - could not get platforms: -1001

2023-05-03 Thread Marco
On Tue, 2 May 2023 10:52:20 -0400
Šarūnas  wrote:

> >0.123537 [opencl_init] could not find opencl runtime library
> >'libOpenCL' 0.124051 [opencl_init] could not find opencl runtime
> >library 'libOpenCL.so'   
> 
> libOpenCL.so is provided by ocl-icd-libopencl1 package.

This package is already installed on my system.

Marco

darktable user mailing list
to unsubscribe send a mail to darktable-user+unsubscr...@lists.darktable.org



Re: [darktable-user] OpenCL not working, Nvidia driver - could not get platforms: -1001

2023-05-02 Thread Remco Viëtor
On mardi 2 mai 2023 16:26:06 CEST Marco wrote:
> Hi,
> 
> I've recently acquired a new GPU and fail to get it to work with
> darktable. Here are some infos:
> 
> System: Debian stable 5.10.0-21-amd64
> GPU: NVIDIA GeForce GTX 1650
> 
> I installed the driver using
> 
>   apt install nvidia-driver
> 
> as suggested by nvidia-detect.
> 
> The modules are loaded:
(...)
> But darktable doesn't use the GPU:
(...)
> The manual states:
> 
>   “… There is a structure of files in /etc/OpenCL on your system
>   that libOpenCL.so consults to find these libraries. See if you can
>   find something fishy in there and try to fix it…”
> 
> I don't have the directory /etc/OpenCL on my system. What do do? Any
> pointers appreciated on how to get it working. If you need more
> infos, please let me know.

You have the graphics drivers installed to use openGL, i.e. graphics display.
On OpenSuse, I need an extra package to use openCL: "nvidia-compute...". This 
package sets up the /etc/OpenCL directory (with a bunch of other stuff).

No idea how that's arranged on Debian, but look for packages related to 
nvidia, opencl and CUDA (another system to use the GPU for calculations).

Remco



darktable user mailing list
to unsubscribe send a mail to darktable-user+unsubscr...@lists.darktable.org



Re: [darktable-user] OpenCL not working, Nvidia driver - could not get platforms: -1001

2023-05-02 Thread Šarūnas

On 5/2/23 10:26, Marco wrote:

Hi,

I've recently acquired a new GPU and fail to get it to work with
darktable. Here are some infos:

System: Debian stable 5.10.0-21-amd64
GPU: NVIDIA GeForce GTX 1650

I installed the driver using

   apt install nvidia-driver

as suggested by nvidia-detect.

The modules are loaded:

   lsmod | grep nvidia
   nvidia_drm 73728  4
   drm_kms_helper278528  1 nvidia_drm
   nvidia_modeset   1204224  8 nvidia_drm
   nvidia  35528704  367 nvidia_modeset
   drm   626688  8 drm_kms_helper,nvidia,nvidia_drm

But darktable doesn't use the GPU:

   darktable-cltest
   0.120796 [opencl_init] opencl related configuration options:
   0.120811 [opencl_init]
   0.120813 [opencl_init] opencl: 1
   0.120814 [opencl_init] opencl_scheduling_profile: 'default'
   0.120816 [opencl_init] opencl_library: ''
   0.120817 [opencl_init] opencl_memory_requirement: 768
   0.120819 [opencl_init] opencl_memory_headroom: 300
   0.120820 [opencl_init] opencl_device_priority: '*/!0,*/*/*'
   0.120822 [opencl_init] opencl_mandatory_timeout: 200
   0.120823 [opencl_init] opencl_size_roundup: 16
   0.120824 [opencl_init] opencl_async_pixelpipe: 0
   0.120825 [opencl_init] opencl_synch_cache: false
   0.120827 [opencl_init] opencl_number_event_handles: 25
   0.120828 [opencl_init] opencl_micro_nap: 1000
   0.120829 [opencl_init] opencl_use_pinned_memory: 0
   0.120830 [opencl_init] opencl_use_cpu_devices: 0
   0.120831 [opencl_init] opencl_avoid_atomics: 0
   0.120832 [opencl_init]
   0.123537 [opencl_init] could not find opencl runtime library
   'libOpenCL' 0.124051 [opencl_init] could not find opencl runtime
   library 'libOpenCL.so' 


libOpenCL.so is provided by ocl-icd-libopencl1 package.

--
Šarūnas Burdulis
math.dartmouth.edu/~sarunas

· https://useplaintext.email ·




OpenPGP_signature
Description: OpenPGP digital signature


[darktable-user] OpenCL not working, Nvidia driver - could not get platforms: -1001

2023-05-02 Thread Marco
Hi,

I've recently acquired a new GPU and fail to get it to work with
darktable. Here are some infos:

System: Debian stable 5.10.0-21-amd64
GPU: NVIDIA GeForce GTX 1650

I installed the driver using

  apt install nvidia-driver

as suggested by nvidia-detect.

The modules are loaded:

  lsmod | grep nvidia
  nvidia_drm 73728  4
  drm_kms_helper278528  1 nvidia_drm
  nvidia_modeset   1204224  8 nvidia_drm
  nvidia  35528704  367 nvidia_modeset
  drm   626688  8 drm_kms_helper,nvidia,nvidia_drm

But darktable doesn't use the GPU:

  darktable-cltest
  0.120796 [opencl_init] opencl related configuration options:
  0.120811 [opencl_init] 
  0.120813 [opencl_init] opencl: 1
  0.120814 [opencl_init] opencl_scheduling_profile: 'default'
  0.120816 [opencl_init] opencl_library: ''
  0.120817 [opencl_init] opencl_memory_requirement: 768
  0.120819 [opencl_init] opencl_memory_headroom: 300
  0.120820 [opencl_init] opencl_device_priority: '*/!0,*/*/*'
  0.120822 [opencl_init] opencl_mandatory_timeout: 200
  0.120823 [opencl_init] opencl_size_roundup: 16
  0.120824 [opencl_init] opencl_async_pixelpipe: 0
  0.120825 [opencl_init] opencl_synch_cache: false
  0.120827 [opencl_init] opencl_number_event_handles: 25
  0.120828 [opencl_init] opencl_micro_nap: 1000
  0.120829 [opencl_init] opencl_use_pinned_memory: 0
  0.120830 [opencl_init] opencl_use_cpu_devices: 0
  0.120831 [opencl_init] opencl_avoid_atomics: 0
  0.120832 [opencl_init] 
  0.123537 [opencl_init] could not find opencl runtime library
  'libOpenCL' 0.124051 [opencl_init] could not find opencl runtime
  library 'libOpenCL.so' 0.124963 [opencl_init] found opencl runtime
  library 'libOpenCL.so.1' 0.124978 [opencl_init] opencl library
  'libOpenCL.so.1' found on your system and loaded 0.125146
  [opencl_init] could not get platforms: -1001 0.125150 [opencl_init]
  FINALLY: opencl is NOT AVAILABLE on this system. 0.125151
  [opencl_init] initial status of opencl enabled flag is OFF.


  darktable --version
  this is darktable 3.4.1
  copyright (c) 2009-2021 johannes hanika
  darktable-...@lists.darktable.org

  compile options:
bit depth is 64 bit
normal build
SSE2 optimized codepath enabled
OpenMP support enabled
OpenCL support enabled
Lua support enabled, API version 6.1.0
Colord support enabled
gPhoto2 support enabled
GraphicsMagick support enabled
ImageMagick support disabled
OpenEXR support enabled

The manual states:

  “… There is a structure of files in /etc/OpenCL on your system
  that libOpenCL.so consults to find these libraries. See if you can
  find something fishy in there and try to fix it…”

I don't have the directory /etc/OpenCL on my system. What do do? Any
pointers appreciated on how to get it working. If you need more
infos, please let me know.

Marco

darktable user mailing list
to unsubscribe send a mail to darktable-user+unsubscr...@lists.darktable.org