Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Darktable and Nvidia OpenCL
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
altrent
n00b
n00b


Joined: 03 Mar 2004
Posts: 55

PostPosted: Sun Jun 18, 2017 12:35 am    Post subject: Darktable and Nvidia OpenCL Reply with quote

Hi,

Is anyone able to use Darkatable with Nvidia OpenCL?

Every time I try to edit a RAW file, OpenCL gets disabled.

These are the logs:
Code:

[opencl_init] opencl: 1
[opencl_init] opencl_library: ''
[opencl_init] opencl_memory_requirement: 1024
[opencl_init] opencl_memory_headroom: 300
[opencl_init] opencl_device_priority: '*/!0,*/*/*'
[opencl_init] opencl_size_roundup: 16
[opencl_init] opencl_async_pixelpipe: 0
[opencl_init] opencl_synch_cache: 0
[opencl_init] opencl_number_event_handles: 25
[opencl_init] opencl_micro_nap: 1000
[opencl_init] opencl_use_pinned_memory: 0
[opencl_init] opencl_use_cpu_devices: 0
[opencl_init] opencl_avoid_atomics: 0
[opencl_init] opencl_enable_markesteijn: 1
[opencl_init]
[opencl_init] found opencl runtime library 'libOpenCL'
[opencl_init] opencl library 'libOpenCL' found on your system and loaded
[opencl_init] found 1 platform
[opencl_init] found 1 device
[opencl_init] device 0 `GeForce GTX 1060 6GB' has sm_20 support.
[opencl_init] device 0 `GeForce GTX 1060 6GB' supports image sizes of 16384 x 32768
[opencl_init] device 0 `GeForce GTX 1060 6GB' allows GPU memory allocations of up to 1516MB
[opencl_init] device 0: GeForce GTX 1060 6GB
     GLOBAL_MEM_SIZE:          6068MB
     MAX_WORK_GROUP_SIZE:      1024
     MAX_WORK_ITEM_DIMENSIONS: 3
     MAX_WORK_ITEM_SIZES:      [ 1024 1024 64 ]
     DRIVER_VERSION:           381.22
     DEVICE_VERSION:           OpenCL 1.2 CUDA
...
[opencl_init] OpenCL successfully initialized.
[opencl_init] here are the internal numbers and names of OpenCL devices available to darktable:
[opencl_init]           0       'GeForce GTX 1060 6GB'
[opencl_init] these are your device priorities:
[opencl_init]           image   preview export  thumbnail
[opencl_init]           0       -1      0       0
[opencl_init] FINALLY: opencl is AVAILABLE on this system.
[opencl_init] initial status of opencl enabled flag is ON.
...
[pixelpipe_process] [full] using device 0
[opencl_events_flush] could not get event info for '[Write Image (from host to device)]': -9999
[opencl_events_flush] could not get event info for 'rawprepare_1f': -9999
[opencl_pixelpipe] failed to run module 'rawprepare'. fall back to cpu path
[opencl_pixelpipe (b)] late opencl error detected while copying back to cpu buffer: -5
[pixelpipe_process] [full] falling back to cpu path
[pixelpipe_process] [preview] using device -1



<-- dmesg
[11610.573197] nvidia-uvm: Loaded the UVM driver in 8 mode, major device number 246
[11657.954183] NVRM: GPU at PCI:0000:01:00: GPU-bd64060d-007b-85ea-51c9-167552cb345a
[11657.954185] NVRM: GPU Board Serial Number:
[11657.954186] NVRM: Xid (PCI:0000:01:00): 13, Graphics SM Warp Exception on (GPC 0, TPC 3): Out Of Range Address
[11657.954190] NVRM: Xid (PCI:0000:01:00): 13, Graphics SM Global Exception on (GPC 0, TPC 3): Physical Multiple Warp Errors
[11657.954192] NVRM: Xid (PCI:0000:01:00): 13, Graphics Exception: ESR 0x505e48=0x4000e 0x505e50=0x24 0x505e44=0xd3eff2 0x505e4c=0x17f
[11657.956556] NVRM: Xid (PCI:0000:01:00): 43, Ch 00000058, engmask 00000101

[13071.218431] NVRM: Xid (PCI:0000:01:00): 13, Graphics SM Warp Exception on (GPC 0, TPC 3): Out Of Range Address
[13071.218434] NVRM: Xid (PCI:0000:01:00): 13, Graphics SM Global Exception on (GPC 0, TPC 3): Physical Multiple Warp Errors
[13071.218437] NVRM: Xid (PCI:0000:01:00): 13, Graphics Exception: ESR 0x505e48=0x8000e 0x505e50=0x24 0x505e44=0xd3eff2 0x505e4c=0x17f
[13071.220893] NVRM: Xid (PCI:0000:01:00): 43, Ch 00000068, engmask 00000101
[13111.681721] darktable (9815) used greatest stack depth: 11800 bytes left


I have:
media-gfx/darktable-2.2.5
x11-drivers/nvidia-drivers-381.22-r1
dev-util/nvidia-cuda-toolkit-8.0.61



Thanks,
Back to top
View user's profile Send private message
mubai
n00b
n00b


Joined: 10 Jul 2004
Posts: 32
Location: Sweden

PostPosted: Mon Jun 19, 2017 7:20 am    Post subject: Reply with quote

Hi Altrent, I use darktable with nvidia opencl and I don't have the same problem as you. Mind you, I use an older card than you; a gtx 660, but anyway..
I use the same version of nvidia-drivers and darktable with the following use flags:

Code:
[ebuild   R    ] x11-drivers/nvidia-drivers-381.22:0/381::gentoo  USE="X acpi driver gtk3 kms multilib static-libs tools uvm -compat -pax_kernel -wayland" ABI_X86="32 (64) (-x32)" 0 KiB
[ebuild   R   ~] media-gfx/darktable-2.2.5::gentoo  USE="colord geo nls opencl openexr openmp -cups -doc -flickr -gphoto2 -graphicsmagick -jpeg2k -kwallet -libsecret -pax_kernel -webp" CPU_FLAGS_X86="sse3" L10N="sv uk -ca -cs -da -de -es -fr -he -hu -it -ja -nl -pl -ru -sk -sl" 0 KiB


I'm not sure what the root cause of your problem is, but if you want to compare I'd be glad to help!

BR,
Back to top
View user's profile Send private message
altrent
n00b
n00b


Joined: 03 Mar 2004
Posts: 55

PostPosted: Mon Jun 19, 2017 3:37 pm    Post subject: Reply with quote

Thanks Mubai! At least someone else got it working, so there's hope! :)

I don't know what's wrong with my setup. Phoronix did several benchmark with this card and OpenCL, and it all seems to work fine:
http://www.phoronix.com/scan.php?page=news_item&px=Darktable-2.2-OpenCL-NVIDIA
http://www.phoronix.com/scan.php?page=article&item=ethminer-linux-gpus&num=1

It just irks me to have to install Ubuntu to validate that it can actually work with my card.

If you don't mind, would you mind pm'ing me a copy of your kernel .config file?

Thanks again,
Back to top
View user's profile Send private message
mubai
n00b
n00b


Joined: 10 Jul 2004
Posts: 32
Location: Sweden

PostPosted: Wed Jun 21, 2017 4:30 am    Post subject: Reply with quote

altrent,
I tried to pm you the kernel config file, have you gotten it? I can't seem to find my own message to you in the sent-folder so I'm a bit uncertain of the success rate... :)
Back to top
View user's profile Send private message
altrent
n00b
n00b


Joined: 03 Mar 2004
Posts: 55

PostPosted: Wed Jun 21, 2017 1:02 pm    Post subject: Reply with quote

Hi Mubai,

I just got it - thank you!
Let me go through it and compare it with mine to see if there's anything I can spot.
I also tried with a genkernel as well but to no avail.

Thanks again,
Back to top
View user's profile Send private message
altrent
n00b
n00b


Joined: 03 Mar 2004
Posts: 55

PostPosted: Thu Jun 22, 2017 8:16 pm    Post subject: Reply with quote

Thanks again Mubai for the .config. I wasn't able to find significant differences with mine regarding the graphics stack.
I also tried Ubuntu and Windows 10, and both are unable to run OpenCL workload (folding@home, Luxmark).
I then opened a ticket with MSI, and without much troubleshooting they are advising an RMA now.
So I am just going to return the card to Amazon and pick up a new one once it back in stock.

Thanks,
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum