Re: [darktable-user] DT on iMac with Mojave: no openCL

2018-12-04 Thread Volker Lenhardt
Many thanks to all of you for your help. Nevertheless my performance 
problems persist. To set opencl_use_pinned_memory=TRUE yields no 
perceivable improvement.


Before I reinstall DT I'll try and install a mouse to see if there are 
some differences in behavior. If I need more help I'll open a new thread.


Volker

Am 03.12.18 um 18:48 schrieb Ulrich Pegelow:
I don't see anything specifically broken here. Let's take for example 
the snippet from the quote below.


Time spent in OpenCL kernels including memory I/O is 0.055 seconds. 
Total time in pixelpipe is 0.123 seconds. There is a bit of overhead 
here but that's not dramatical. You may try to set 
opencl_use_pinned_memory=TRUE which might improve this a bit.


Overall the time spent in this sections is between timestamps 130.658s 
and 130,781 which matches the figures above.


I'd say if you are losing performance it's probably not in the pixelpipe 
and likely not OpenCL related. That also fits to your observation that 
you don't see a difference with/without OpenCL.


Ulrich


Am 03.12.18 um 18:20 schrieb Volker Lenhardt:

130,658562 [pixelpipe_process] [full] using device 0
130,660026 [dev_pixelpipe] took 0,001 secs (0,002 CPU) initing base 
buffer [full]
130,680802 [dev_pixelpipe] took 0,021 secs (0,020 CPU) processed 
`Raw-Schwarz-/Weißpunkt' on GPU, blended on GPU [full]
130,682650 [dev_pixelpipe] took 0,002 secs (0,002 CPU) processed 
`Weißabgleich' on GPU, blended on GPU [full]
130,684399 [dev_pixelpipe] took 0,002 secs (0,001 CPU) processed 
`Spitzlicht-Rekonstruktion' on GPU, blended on GPU [full]
130,700017 [dev_pixelpipe] took 0,016 secs (0,013 CPU) processed 
`Entrastern' on GPU, blended on GPU [full]
130,704482 [dev_pixelpipe] took 0,004 secs (0,004 CPU) processed 
`Basiskurve' on GPU, blended on GPU [full]
130,708880 [dev_pixelpipe] took 0,004 secs (0,004 CPU) processed 
`Eingabefarbprofil' on GPU, blended on GPU [full]
130,717590 [dev_pixelpipe] took 0,009 secs (0,007 CPU) processed 
`Schärfen' on GPU, blended on GPU [full]
130,724571 [dev_pixelpipe] took 0,007 secs (0,006 CPU) processed 
`Ausgabefarbprofil' on GPU, blended on GPU [full]
130,781679 [dev_pixelpipe] took 0,057 secs (0,078 CPU) processed 
`Gamma' on CPU, blended on CPU [full]
130,781716 [opencl_profiling] profiling device 0 ('AMD Radeon Pro 570 
Compute Engine'):
130,781720 [opencl_profiling] spent  0,0005 seconds in [Write Image 
(from host to device)]

130,781723 [opencl_profiling] spent  0,0001 seconds in rawprepare_1f
130,781740 [opencl_profiling] spent  0,0002 seconds in whitebalance_1f
130,781742 [opencl_profiling] spent  0,0002 seconds in highlights_1f_clip
130,781744 [opencl_profiling] spent  0,0004 seconds in ppg_demosaic_green
130,781746 [opencl_profiling] spent  0,0005 seconds in 
ppg_demosaic_redblue

130,781749 [opencl_profiling] spent  0,0002 seconds in border_interpolate
130,781764 [opencl_profiling] spent  0,0120 seconds in 
interpolation_resample

130,781766 [opencl_profiling] spent  0,0022 seconds in basecurve_lut
130,781768 [opencl_profiling] spent  0,0017 seconds in colorin_unbound
130,781770 [opencl_profiling] spent  0,0019 seconds in sharpen_hblur
130,781772 [opencl_profiling] spent  0,0022 seconds in sharpen_vblur
130,781774 [opencl_profiling] spent  0,0025 seconds in sharpen_mix
130,781777 [opencl_profiling] spent  0,0036 seconds in colorout
130,781779 [opencl_profiling] spent  0,0270 seconds in [Read Image 
(from device to host)]
130,781781 [opencl_profiling] spent  0,0550 seconds totally in command 
queue (with 0 events missing)
130,781789 [dev_process_image] pixel pipeline processing took 0,123 
secs (0,137 CPU)


 


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




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



Re: [darktable-user] DT on iMac with Mojave: no openCL

2018-12-03 Thread Ulrich Pegelow
I don't see anything specifically broken here. Let's take for example 
the snippet from the quote below.


Time spent in OpenCL kernels including memory I/O is 0.055 seconds. 
Total time in pixelpipe is 0.123 seconds. There is a bit of overhead 
here but that's not dramatical. You may try to set 
opencl_use_pinned_memory=TRUE which might improve this a bit.


Overall the time spent in this sections is between timestamps 130.658s 
and 130,781 which matches the figures above.


I'd say if you are losing performance it's probably not in the pixelpipe 
and likely not OpenCL related. That also fits to your observation that 
you don't see a difference with/without OpenCL.


Ulrich


Am 03.12.18 um 18:20 schrieb Volker Lenhardt:

130,658562 [pixelpipe_process] [full] using device 0
130,660026 [dev_pixelpipe] took 0,001 secs (0,002 CPU) initing base 
buffer [full]
130,680802 [dev_pixelpipe] took 0,021 secs (0,020 CPU) processed 
`Raw-Schwarz-/Weißpunkt' on GPU, blended on GPU [full]
130,682650 [dev_pixelpipe] took 0,002 secs (0,002 CPU) processed 
`Weißabgleich' on GPU, blended on GPU [full]
130,684399 [dev_pixelpipe] took 0,002 secs (0,001 CPU) processed 
`Spitzlicht-Rekonstruktion' on GPU, blended on GPU [full]
130,700017 [dev_pixelpipe] took 0,016 secs (0,013 CPU) processed 
`Entrastern' on GPU, blended on GPU [full]
130,704482 [dev_pixelpipe] took 0,004 secs (0,004 CPU) processed 
`Basiskurve' on GPU, blended on GPU [full]
130,708880 [dev_pixelpipe] took 0,004 secs (0,004 CPU) processed 
`Eingabefarbprofil' on GPU, blended on GPU [full]
130,717590 [dev_pixelpipe] took 0,009 secs (0,007 CPU) processed 
`Schärfen' on GPU, blended on GPU [full]
130,724571 [dev_pixelpipe] took 0,007 secs (0,006 CPU) processed 
`Ausgabefarbprofil' on GPU, blended on GPU [full]
130,781679 [dev_pixelpipe] took 0,057 secs (0,078 CPU) processed `Gamma' 
on CPU, blended on CPU [full]
130,781716 [opencl_profiling] profiling device 0 ('AMD Radeon Pro 570 
Compute Engine'):
130,781720 [opencl_profiling] spent  0,0005 seconds in [Write Image 
(from host to device)]

130,781723 [opencl_profiling] spent  0,0001 seconds in rawprepare_1f
130,781740 [opencl_profiling] spent  0,0002 seconds in whitebalance_1f
130,781742 [opencl_profiling] spent  0,0002 seconds in highlights_1f_clip
130,781744 [opencl_profiling] spent  0,0004 seconds in ppg_demosaic_green
130,781746 [opencl_profiling] spent  0,0005 seconds in ppg_demosaic_redblue
130,781749 [opencl_profiling] spent  0,0002 seconds in border_interpolate
130,781764 [opencl_profiling] spent  0,0120 seconds in 
interpolation_resample

130,781766 [opencl_profiling] spent  0,0022 seconds in basecurve_lut
130,781768 [opencl_profiling] spent  0,0017 seconds in colorin_unbound
130,781770 [opencl_profiling] spent  0,0019 seconds in sharpen_hblur
130,781772 [opencl_profiling] spent  0,0022 seconds in sharpen_vblur
130,781774 [opencl_profiling] spent  0,0025 seconds in sharpen_mix
130,781777 [opencl_profiling] spent  0,0036 seconds in colorout
130,781779 [opencl_profiling] spent  0,0270 seconds in [Read Image (from 
device to host)]
130,781781 [opencl_profiling] spent  0,0550 seconds totally in command 
queue (with 0 events missing)
130,781789 [dev_process_image] pixel pipeline processing took 0,123 secs 
(0,137 CPU)



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



Re: [darktable-user] DT on iMac with Mojave: no openCL

2018-12-03 Thread Volker Lenhardt

Am 03.12.18 um 17:58 schrieb Ulrich Pegelow:

Two observations:

1) the total time that darktable reports per pixelpipe lies in the range 
of 0.15s. That's not particularly fast, given your very undemanding 
history stack, but it's also not extremely slow either. What wonders me 
is your observation that the time spent in pixelpipe does not sum up to 
your wall time with a discrepancy of a factor 10. There might be other 
elements eating up performance on your system...


2) you don't report profiling info per OpenCL kernel. This is normally 
printed along the other information when running with '-d opencl -d 
perf'. Did you happen to set opencl_number_event_handles to zero? You 
should set this to a reasonable high value like 25.




As I found that opencl was running I wanted to keept the output shorter. 
I repeated the procedure this time with -d opencl and with the arrow 
keys kept pressed while scrolling. The total time was reduced to 35 
seconds.


This is the output:

macspinne:~ volker$ /Applications/darktable.app/Contents/MacOS/darktable 
-d opencl -d perf


(process:1223): GLib-GObject-CRITICAL **: 18:10:34.841: g_object_set: 
assertion 'G_IS_OBJECT (object)' failed

0.150148 [opencl_init] opencl related configuration options:
0.150168 [opencl_init]
0.150171 [opencl_init] opencl: 1
0.150174 [opencl_init] opencl_library: ''
0.150191 [opencl_init] opencl_memory_requirement: 768
0.150196 [opencl_init] opencl_memory_headroom: 500
0.150199 [opencl_init] opencl_device_priority: '*/!0,*/*/*'
0.150202 [opencl_init] opencl_mandatory_timeout: 200
0.150207 [opencl_init] opencl_size_roundup: 16
0.150209 [opencl_init] opencl_async_pixelpipe: 0
0.150211 [opencl_init] opencl_synch_cache: 0
0.150214 [opencl_init] opencl_number_event_handles: 25
0.150217 [opencl_init] opencl_micro_nap: 1000
0.150219 [opencl_init] opencl_use_pinned_memory: 0
0.150222 [opencl_init] opencl_use_cpu_devices: 0
0.150224 [opencl_init] opencl_avoid_atomics: 1
0.150226 [opencl_init]
0.150715 [opencl_init] found opencl runtime library 
'/System/Library/Frameworks/OpenCL.framework/Versions/Current/OpenCL'
0.150763 [opencl_init] opencl library 
'/System/Library/Frameworks/OpenCL.framework/Versions/Current/OpenCL' 
found on your system and loaded

0.150768 [opencl_init] found 1 platform
0.156224 [opencl_init] found 2 devices
0.156305 [opencl_init] discarding CPU device 0 `Intel(R) Core(TM) 
i5-7500 CPU @ 3.40GHz'.
0.156320 [opencl_init] device 1 `AMD Radeon Pro 570 Compute Engine' 
supports image sizes of 16384 x 16384
0.156323 [opencl_init] device 1 `AMD Radeon Pro 570 Compute Engine' 
allows GPU memory allocations of up to 1024MB

[opencl_init] device 1: AMD Radeon Pro 570 Compute Engine
 GLOBAL_MEM_SIZE:  4096MB
 MAX_WORK_GROUP_SIZE:  256
 MAX_WORK_ITEM_DIMENSIONS: 3
 MAX_WORK_ITEM_SIZES:  [ 256 256 256 ]
 DRIVER_VERSION:   1.2 (Oct 16 2018 21:18:14)
 DEVICE_VERSION:   OpenCL 1.2
0.157070 [opencl_init] options for OpenCL compiler: 
-cl-fast-relaxed-math  -DUNKNOWN=1 
-I/Applications/darktable.app/Contents/Resources/share/darktable/kernels

0.158483 [opencl_init] compiling program `demosaic_ppg.cl' ..
0.160661 [opencl_load_program] loaded cached binary program from file 
`/Users/volker/.cache/darktable/cached_kernels_for_AMDRadeonPro570ComputeEngine/demosaic_ppg.cl.bin'
0.160668 [opencl_load_program] successfully loaded program from 
`/Applications/darktable.app/Contents/Resources/share/darktable/kernels/demosaic_ppg.cl'

0.161009 [opencl_build_program] successfully built program
0.161017 [opencl_build_program] BUILD STATUS: 0
0.161020 BUILD LOG:
0.161022
0.161029 [opencl_init] compiling program `atrous.cl' ..
0.162101 [opencl_load_program] loaded cached binary program from file 
`/Users/volker/.cache/darktable/cached_kernels_for_AMDRadeonPro570ComputeEngine/atrous.cl.bin'
0.162108 [opencl_load_program] successfully loaded program from 
`/Applications/darktable.app/Contents/Resources/share/darktable/kernels/atrous.cl'

0.162206 [opencl_build_program] successfully built program
0.162213 [opencl_build_program] BUILD STATUS: 0
0.162216 BUILD LOG:
0.162218
0.162224 [opencl_init] compiling program `basic.cl' ..
0.165420 [opencl_load_program] loaded cached binary program from file 
`/Users/volker/.cache/darktable/cached_kernels_for_AMDRadeonPro570ComputeEngine/basic.cl.bin'
0.165428 [opencl_load_program] successfully loaded program from 
`/Applications/darktable.app/Contents/Resources/share/darktable/kernels/basic.cl'

0.165836 [opencl_build_program] successfully built program
0.165843 [opencl_build_program] BUILD STATUS: 0
0.165846 BUILD LOG:
0.165848
0.165855 [opencl_init] compiling program `blendop.cl' ..
0.168005 [opencl_load_program] loaded cached binary program from file 
`/Users/volker/.cache/darktable/cached_kernels_for_AMDRadeonPro570ComputeEngine/blendop.cl.bin'
0.168013 [opencl_load_program] successfully loaded program from 

Re: [darktable-user] DT on iMac with Mojave: no openCL

2018-12-03 Thread Ulrich Pegelow

Two observations:

1) the total time that darktable reports per pixelpipe lies in the range 
of 0.15s. That's not particularly fast, given your very undemanding 
history stack, but it's also not extremely slow either. What wonders me 
is your observation that the time spent in pixelpipe does not sum up to 
your wall time with a discrepancy of a factor 10. There might be other 
elements eating up performance on your system...


2) you don't report profiling info per OpenCL kernel. This is normally 
printed along the other information when running with '-d opencl -d 
perf'. Did you happen to set opencl_number_event_handles to zero? You 
should set this to a reasonable high value like 25.


Ulrich

Am 03.12.18 um 14:40 schrieb Volker Lenhardt:

Am 03.12.18 um 12:11 schrieb Volker Lenhardt:

Am 02.12.18 um 17:12 schrieb Volker Lenhardt:


There's still the problem of too slow response with shifting a zoomed 
in image to have e.g. a quick look at the corners to detect chromatic 
aberration. And cropping an image is slow, too. All of this rating is 
compared to what I was used to under Linux with less confined equipment.




I made another test using the command+arrow_keys to scroll once around a 
zoomed in image. It is a good deal faster than using the trackpad.


I scrolled from the middle to the upper border, then to the left border, 
down to the bottom, then to the right and up again and back to the 
middle (i.e. once around the outer part of the image). Counted by the 
output of "darktable -d perf" it took about 5 (6 CPU) seconds. In real 
time I measured 50 seconds.


That's no fun.



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



Re: [darktable-user] DT on iMac with Mojave: no openCL

2018-12-03 Thread Volker Lenhardt

Am 03.12.18 um 12:11 schrieb Volker Lenhardt:

Am 02.12.18 um 17:12 schrieb Volker Lenhardt:


There's still the problem of too slow response with shifting a zoomed 
in image to have e.g. a quick look at the corners to detect chromatic 
aberration. And cropping an image is slow, too. All of this rating is 
compared to what I was used to under Linux with less confined equipment.




I made another test using the command+arrow_keys to scroll once around a 
zoomed in image. It is a good deal faster than using the trackpad.


I scrolled from the middle to the upper border, then to the left border, 
down to the bottom, then to the right and up again and back to the 
middle (i.e. once around the outer part of the image). Counted by the 
output of "darktable -d perf" it took about 5 (6 CPU) seconds. In real 
time I measured 50 seconds.


That's no fun.

Volker

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



Re: [darktable-user] DT on iMac with Mojave: no openCL

2018-12-03 Thread Volker Lenhardt

Am 02.12.18 um 17:12 schrieb Volker Lenhardt:


There's still the problem of too slow response with shifting a zoomed in 
image to have e.g. a quick look at the corners to detect chromatic 
aberration. And cropping an image is slow, too. All of this rating is 
compared to what I was used to under Linux with less confined equipment.




Below is the output of "darktable -d perf", while I

1. Start DT and open the selected image in darkroom:

(process:697): GLib-GObject-CRITICAL **: 10:20:10.648: g_object_set: 
assertion 'G_IS_OBJECT (object)' failed


(darktable-bin:697): GLib-GObject-WARNING **: 10:20:10.855: invalid cast 
from 'GtkMenuBar' to 'GtkWindow'


(darktable-bin:697): Gtk-CRITICAL **: 10:20:10.855: 
gtk_window_add_accel_group: assertion 'GTK_IS_WINDOW (window)' failed

wait time 0,141157s
26,167340 [dev] took 0,119 secs (0,107 CPU) to load the image.
27,202603 [dev] took 0,000 secs (0,000 CPU) to load the image.
27,253541 [dev_pixelpipe] took 0,008 secs (0,019 CPU) initing base 
buffer [full]
27,271309 [dev_pixelpipe] took 0,018 secs (0,015 CPU) processed 
`Raw-Schwarz-/Weißpunkt' on GPU, blended on GPU [full]
27,277290 [dev_pixelpipe] took 0,006 secs (0,005 CPU) processed 
`Weißabgleich' on GPU, blended on GPU [full]
27,280500 [dev_pixelpipe] took 0,003 secs (0,003 CPU) processed 
`Spitzlicht-Rekonstruktion' on GPU, blended on GPU [full]
27,322458 [dev_pixelpipe] took 0,042 secs (0,039 CPU) processed 
`Entrastern' on GPU, blended on GPU [full]
27,345844 [dev_pixelpipe] took 0,022 secs (0,054 CPU) processed 
`Basiskurve' on GPU, blended on GPU [full]
27,352620 [dev_pixelpipe] took 0,005 secs (0,005 CPU) processed 
`Eingabefarbprofil' on GPU, blended on GPU [full]
27,364456 [dev_pixelpipe] took 0,012 secs (0,012 CPU) processed 
`Schärfen' on GPU, blended on GPU [full]
27,375174 [dev_pixelpipe] took 0,011 secs (0,010 CPU) processed 
`Ausgabefarbprofil' on GPU, blended on GPU [full]
27,484298 [dev_pixelpipe] took 0,109 secs (0,207 CPU) processed `Gamma' 
on CPU, blended on CPU [full]
27,484362 [dev_process_image] pixel pipeline processing took 0,239 secs 
(0,371 CPU)
28,359220 [dev_pixelpipe] took 0,000 secs (0,000 CPU) initing base 
buffer [preview]
28,361283 [dev_pixelpipe] took 0,002 secs (0,004 CPU) processed 
`Raw-Schwarz-/Weißpunkt' on CPU, blended on CPU [preview]
28,363002 [dev_pixelpipe] took 0,002 secs (0,003 CPU) processed 
`Weißabgleich' on CPU, blended on CPU [preview]
28,364711 [dev_pixelpipe] took 0,002 secs (0,003 CPU) processed 
`Spitzlicht-Rekonstruktion' on CPU, blended on CPU [preview]
28,381042 [dev_pixelpipe] took 0,016 secs (0,043 CPU) processed 
`Entrastern' on CPU, blended on CPU [preview]
28,387261 [dev_pixelpipe] took 0,006 secs (0,015 CPU) processed 
`Basiskurve' on CPU, blended on CPU [preview]
28,416517 [dev_pixelpipe] took 0,029 secs (0,089 CPU) processed 
`Eingabefarbprofil' on CPU, blended on CPU [preview]
28,431370 [dev_pixelpipe] took 0,015 secs (0,035 CPU) processed 
`Schärfen' on CPU, blended on CPU [preview]
28,50 [dev_pixelpipe] took 0,013 secs (0,028 CPU) processed 
`Ausgabefarbprofil' on CPU, blended on CPU [preview]
28,447031 [dev_pixelpipe] took 0,003 secs (0,014 CPU) processed `Gamma' 
on CPU, blended on CPU [preview]
28,47 [dev_process_preview] pixel pipeline processing took 0,129 
secs (0,338 CPU)


2. Zoom in with option_key+1 (I cannot zoom with two fingers spreading 
on the trackpad!)


587,281321 [dev] took 0,000 secs (0,000 CPU) to load the image.
587,284834 [dev_pixelpipe] took 0,003 secs (0,003 CPU) initing base 
buffer [full]
587,290492 [dev_pixelpipe] took 0,006 secs (0,009 CPU) processed 
`Raw-Schwarz-/Weißpunkt' on GPU, blended on GPU [full]
587,293384 [dev_pixelpipe] took 0,003 secs (0,003 CPU) processed 
`Weißabgleich' on GPU, blended on GPU [full]
587,295763 [dev_pixelpipe] took 0,002 secs (0,002 CPU) processed 
`Spitzlicht-Rekonstruktion' on GPU, blended on GPU [full]
587,323806 [dev_pixelpipe] took 0,028 secs (0,027 CPU) processed 
`Entrastern' on GPU, blended on GPU [full]
587,334101 [dev_pixelpipe] took 0,010 secs (0,008 CPU) processed 
`Basiskurve' on GPU, blended on GPU [full]
587,338850 [dev_pixelpipe] took 0,005 secs (0,004 CPU) processed 
`Eingabefarbprofil' on GPU, blended on GPU [full]
587,364415 [dev_pixelpipe] took 0,013 secs (0,011 CPU) processed 
`Schärfen' on GPU, blended on GPU [full]
587,370479 [dev_pixelpipe] took 0,006 secs (0,005 CPU) processed 
`Ausgabefarbprofil' on GPU, blended on GPU [full]
587,485152 [dev_pixelpipe] took 0,112 secs (0,206 CPU) processed `Gamma' 
on CPU, blended on CPU [full]
587,485224 [dev_process_image] pixel pipeline processing took 0,204 secs 
(0,291 CPU)


3. Move image down completely (The action depends on how fast I can move 
the mouse pointer, but it is always done in multiple moves. Sometimes I 
have to stop and start all over again from the point at which the part 
move ends).


The whole process took about 5.3 (6.5 CPU) seconds in 39 single steps. 
And this was only half way 

Re: [darktable-user] DT on iMac with Mojave: no openCL

2018-12-02 Thread Volker Lenhardt

Am 02.12.18 um 16:42 schrieb Michael Rasmussen:

On Sun, 2 Dec 2018 15:52:02 +0100
Volker Lenhardt  wrote:


See also 'opencl_avoid_atomics' here:
https://www.darktable.org/usermanual/en/darktable_and_opencl_amd.html

Did you see above?



Sorry for not having told you. Changing made no difference.


Am 02.12.18 um 15:59 schrieb Ulrich Pegelow:
>
> For this case I would like to see the full output of 'darktable -d
> opencl -d perf' with activated OpenCL from program start to where you
> process the image with profiled denoise.
>

I've found a wrong option setting: I had the central option (in German) 
"OpenCL-Scheduler-Profil" set to "mehrere GPUs". I don't know why. Now 
it is set to "Standard". The processing time decreased to less than a 
fourth.


Profiled denoise:
144,177185 [dev_process_image] pixel pipeline processing took 4,058 secs 
(1,591 CPU)


Is this to be tolerated? Do you still need the long output? Then please 
wait until tomorrow, I'm on the run at the moment.


There's still the problem of too slow response with shifting a zoomed in 
image to have e.g. a quick look at the corners to detect chromatic 
aberration. And cropping an image is slow, too. All of this rating is 
compared to what I was used to under Linux with less confined equipment.


Volker

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



Re: [darktable-user] DT on iMac with Mojave: no openCL

2018-12-02 Thread Volker Lenhardt

Am 02.12.18 um 16:41 schrieb Michael Rasmussen:

On Sun, 2 Dec 2018 16:10:00 +0100
Michael Kefeder  wrote:


There's an off chance your dedicated GPU is device 1 and your cpu is
0. By default the config only does consider one GPU in the system =
0, you can try (make sure the scheduler is default) to force use of
device 1: opencl_device_priority=1,!0/!0,!1/1,!0/1,!0


Default setting is not to use CPU for opencl:
opencl_use_cpu_devices=false



This is set and not changed.

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



Re: [darktable-user] DT on iMac with Mojave: no openCL

2018-12-02 Thread Michael Rasmussen
On Sun, 2 Dec 2018 15:52:02 +0100
Volker Lenhardt  wrote:

> > See also 'opencl_avoid_atomics' here:
> > https://www.darktable.org/usermanual/en/darktable_and_opencl_amd.html
Did you see above?

-- 
Hilsen/Regards
Michael Rasmussen

Get my public GnuPG keys:
michael  rasmussen  cc
http://pgp.mit.edu:11371/pks/lookup?op=get=0xD3C9A00E
mir  datanom  net
http://pgp.mit.edu:11371/pks/lookup?op=get=0xE501F51C
mir  miras  org
http://pgp.mit.edu:11371/pks/lookup?op=get=0xE3E80917
--
/usr/games/fortune -es says:
I want to see people using Perl to glue things together creatively, not
just technically but also socially.
-- Larry Wall in <199702111730.jaa28...@wall.org>


pgpvXbGvxED4O.pgp
Description: OpenPGP digital signature


Re: [darktable-user] DT on iMac with Mojave: no openCL

2018-12-02 Thread Michael Rasmussen
On Sun, 2 Dec 2018 16:10:00 +0100
Michael Kefeder  wrote:

> There's an off chance your dedicated GPU is device 1 and your cpu is
> 0. By default the config only does consider one GPU in the system =
> 0, you can try (make sure the scheduler is default) to force use of
> device 1: opencl_device_priority=1,!0/!0,!1/1,!0/1,!0
> 
Default setting is not to use CPU for opencl:
opencl_use_cpu_devices=false

-- 
Hilsen/Regards
Michael Rasmussen

Get my public GnuPG keys:
michael  rasmussen  cc
http://pgp.mit.edu:11371/pks/lookup?op=get=0xD3C9A00E
mir  datanom  net
http://pgp.mit.edu:11371/pks/lookup?op=get=0xE501F51C
mir  miras  org
http://pgp.mit.edu:11371/pks/lookup?op=get=0xE3E80917
--
/usr/games/fortune -es says:
I want to see people using Perl to glue things together creatively, not
just technically but also socially.
-- Larry Wall in <199702111730.jaa28...@wall.org>


pgpxa1h3n24XM.pgp
Description: OpenPGP digital signature


Re: [darktable-user] DT on iMac with Mojave: no openCL

2018-12-02 Thread Michael Kefeder
There's an off chance your dedicated GPU is device 1 and your cpu is 0. By
default the config only does consider one GPU in the system = 0, you can
try (make sure the scheduler is default) to force use of device 1:
opencl_device_priority=1,!0/!0,!1/1,!0/1,!0


Am So., 2. Dez. 2018, 15:58 hat Volker Lenhardt 
geschrieben:

> Am 02.12.18 um 14:05 schrieb Michael Rasmussen:
> > On Sun, 2 Dec 2018 13:43:06 +0100
> > Volker Lenhardt  wrote:
> >
> >>
> >> I think I should either reinstall DT or start a new subject request.
> >> Or do you have an idea?
> >>
> > In your darktablerc file you could try change default setting for these
> > options:
> > opencl_memory_headroom=550
> > opencl_memory_requirement=768
> >
> > See also 'opencl_avoid_atomics' here:
> > https://www.darktable.org/usermanual/en/darktable_and_opencl_amd.html
> >
> > The opencl_memory_headroom is of special concern since this setting
> > controls how much memory darktable will reserve for other programs and
> > device drivers requiring GPU memory. As can be seen above I have
> > slightly increased the setting.
> >
>
> Changing opencl_memory_headroom doesn't make any difference.
> Nevertheless thanks for the idea.
>
>
> Am 02.12.18 um 14:02 schrieb Ulrich Pegelow:> Looks like OpenCL is
> properly loaded. To better analyse the slow
> > response time of your system run with 'darktable -d opencl -d perf'.
> > After each processing step you get profiling output. For the start only
> > look at lines like
> >
> > 17,607291 [dev_process_image] pixel pipeline processing took 0,212 secs
> > (1,374 CPU)
> >
> > You will see the same output if you switch off OpenCL so this should
> > give you a first estimate on how strong the GPU is able to boost
> > performance on your system. Note that you need to activate some of the
> > more demanding modules to really see a difference. Try for example
> > profiled (denoise).
>
> Deactivated openCL:
> Next image in darkroom:
> 885,336719 [dev_process_image] pixel pipeline processing took 0,512 secs
> (1,761 CPU)
> Profiled denoise:
> 1033,212575 [dev_process_image] pixel pipeline processing took 18,907
> secs (73,211 CPU)
>
> Activated openCL
> Next image:
> 1118,913519 [dev_process_image] pixel pipeline processing took 0,434
> secs (1,555 CPU)
> Profiled denoise:
> 1219,319104 [dev_process_image] pixel pipeline processing took 18,669
> secs (72,306 CPU)
>
> There's practically no difference. BTW: the images are cr2 files with
> sizes of about 23 MB.
>
> What next?
>
> Volker
>
> 
> darktable user mailing list
> to unsubscribe send a mail to
> darktable-user+unsubscr...@lists.darktable.org
>
>


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

Re: [darktable-user] DT on iMac with Mojave: no openCL

2018-12-02 Thread Ulrich Pegelow

Am 02.12.18 um 15:52 schrieb Volker Lenhardt:


Activated openCL
Next image:
1118,913519 [dev_process_image] pixel pipeline processing took 0,434 
secs (1,555 CPU)

Profiled denoise:
1219,319104 [dev_process_image] pixel pipeline processing took 18,669 
secs (72,306 CPU)


There's practically no difference. BTW: the images are cr2 files with 
sizes of about 23 MB.


What next?


For this case I would like to see the full output of 'darktable -d 
opencl -d perf' with activated OpenCL from program start to where you 
process the image with profiled denoise.



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



Re: [darktable-user] DT on iMac with Mojave: no openCL

2018-12-02 Thread Volker Lenhardt

Am 02.12.18 um 14:05 schrieb Michael Rasmussen:

On Sun, 2 Dec 2018 13:43:06 +0100
Volker Lenhardt  wrote:



I think I should either reinstall DT or start a new subject request.
Or do you have an idea?


In your darktablerc file you could try change default setting for these
options:
opencl_memory_headroom=550
opencl_memory_requirement=768

See also 'opencl_avoid_atomics' here:
https://www.darktable.org/usermanual/en/darktable_and_opencl_amd.html

The opencl_memory_headroom is of special concern since this setting
controls how much memory darktable will reserve for other programs and
device drivers requiring GPU memory. As can be seen above I have
slightly increased the setting.



Changing opencl_memory_headroom doesn't make any difference. 
Nevertheless thanks for the idea.



Am 02.12.18 um 14:02 schrieb Ulrich Pegelow:> Looks like OpenCL is 
properly loaded. To better analyse the slow
response time of your system run with 'darktable -d opencl -d perf'. 
After each processing step you get profiling output. For the start only 
look at lines like


17,607291 [dev_process_image] pixel pipeline processing took 0,212 secs 
(1,374 CPU)


You will see the same output if you switch off OpenCL so this should 
give you a first estimate on how strong the GPU is able to boost 
performance on your system. Note that you need to activate some of the 
more demanding modules to really see a difference. Try for example 
profiled (denoise).


Deactivated openCL:
Next image in darkroom:
885,336719 [dev_process_image] pixel pipeline processing took 0,512 secs 
(1,761 CPU)

Profiled denoise:
1033,212575 [dev_process_image] pixel pipeline processing took 18,907 
secs (73,211 CPU)


Activated openCL
Next image:
1118,913519 [dev_process_image] pixel pipeline processing took 0,434 
secs (1,555 CPU)

Profiled denoise:
1219,319104 [dev_process_image] pixel pipeline processing took 18,669 
secs (72,306 CPU)


There's practically no difference. BTW: the images are cr2 files with 
sizes of about 23 MB.


What next?

Volker

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



Re: [darktable-user] DT on iMac with Mojave: no openCL

2018-12-02 Thread Michael Rasmussen
On Sun, 2 Dec 2018 13:43:06 +0100
Volker Lenhardt  wrote:

> 
> I think I should either reinstall DT or start a new subject request.
> Or do you have an idea?
> 
In your darktablerc file you could try change default setting for these
options:
opencl_memory_headroom=550
opencl_memory_requirement=768

See also 'opencl_avoid_atomics' here:
https://www.darktable.org/usermanual/en/darktable_and_opencl_amd.html

The opencl_memory_headroom is of special concern since this setting
controls how much memory darktable will reserve for other programs and
device drivers requiring GPU memory. As can be seen above I have
slightly increased the setting.


-- 
Hilsen/Regards
Michael Rasmussen

Get my public GnuPG keys:
michael  rasmussen  cc
http://pgp.mit.edu:11371/pks/lookup?op=get=0xD3C9A00E
mir  datanom  net
http://pgp.mit.edu:11371/pks/lookup?op=get=0xE501F51C
mir  miras  org
http://pgp.mit.edu:11371/pks/lookup?op=get=0xE3E80917
--
/usr/games/fortune -es says:
Avoid the Gates of Hell.  Use Linux
(Unknown source)


pgpobm6CST4yt.pgp
Description: OpenPGP digital signature


Re: [darktable-user] DT on iMac with Mojave: no openCL

2018-12-02 Thread Ulrich Pegelow
Looks like OpenCL is properly loaded. To better analyse the slow 
response time of your system run with 'darktable -d opencl -d perf'. 
After each processing step you get profiling output. For the start only 
look at lines like


17,607291 [dev_process_image] pixel pipeline processing took 0,212 secs 
(1,374 CPU)


You will see the same output if you switch off OpenCL so this should 
give you a first estimate on how strong the GPU is able to boost 
performance on your system. Note that you need to activate some of the 
more demanding modules to really see a difference. Try for example 
profiled (denoise).


Ulrich

Am 02.12.18 um 13:43 schrieb Volker Lenhardt:
My output looks much the same as yours and Michael's. So I am now 
convinced that I was wrong putting the blame for my DT's shortcomings to 
openCL.


There seems to be some flaw in the graphics. But the output concerning 
the graphics card looks ok:


0.069794 [opencl_init] found opencl runtime library 
'/System/Library/Frameworks/OpenCL.framework/Versions/Current/OpenCL'
0.069829 [opencl_init] opencl library 
'/System/Library/Frameworks/OpenCL.framework/Versions/Current/OpenCL' 
found on your system and loaded

0.069832 [opencl_init] found 1 platform
0.077176 [opencl_init] found 2 devices
0.077218 [opencl_init] discarding CPU device 0 `Intel(R) Core(TM) 
i5-7500 CPU @ 3.40GHz'.
0.077246 [opencl_init] device 1 `AMD Radeon Pro 570 Compute Engine' 
supports image sizes of 16384 x 16384
0.077250 [opencl_init] device 1 `AMD Radeon Pro 570 Compute Engine' 
allows GPU memory allocations of up to 1024MB

[opencl_init] device 1: AMD Radeon Pro 570 Compute Engine
  GLOBAL_MEM_SIZE:  4096MB
  MAX_WORK_GROUP_SIZE:  256
  MAX_WORK_ITEM_DIMENSIONS: 3
  MAX_WORK_ITEM_SIZES:  [ 256 256 256 ]
  DRIVER_VERSION:   1.2 (Oct 16 2018 21:18:14)
  DEVICE_VERSION:   OpenCL 1.2
0.077944 [opencl_init] options for OpenCL compiler: 
-cl-fast-relaxed-math  -DUNKNOWN=1 
-I/Applications/darktable.app/Contents/Resources/share/darktable/kernels

...
0.085891 [opencl_init] kernel loading time: 0.0078
0.085897 [opencl_init] OpenCL successfully initialized.
0.085899 [opencl_init] here are the internal numbers and names of OpenCL 
devices available to darktable:

0.085901 [opencl_init]    0    'AMD Radeon Pro 570 Compute Engine'
0.085904 [opencl_init] FINALLY: opencl is AVAILABLE on this system.
0.085906 [opencl_init] initial status of opencl enabled flag is ON.

I think I should either reinstall DT or start a new subject request. Or 
do you have an idea?


Volker
 



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



Re: [darktable-user] DT on iMac with Mojave: no openCL

2018-12-02 Thread Volker Lenhardt

Am 02.12.18 um 12:32 schrieb Michael Kefeder:
Normally you should restart "darktable -d opencl" many times until the 
output looks like this, no errors compiling the kernels:


...
2,535671 [opencl_create_kernel] successfully loaded kernel 
`denoiseprofile_accu' (175) for device 0
2,535708 [opencl_create_kernel] successfully loaded kernel 
`denoiseprofile_finish' (176) for device 0
2,535748 [opencl_create_kernel] successfully loaded kernel 
`denoiseprofile_backtransform' (177) for device 0
2,535783 [opencl_create_kernel] successfully loaded kernel 
`denoiseprofile_decompose' (178) for device 0
2,535820 [opencl_create_kernel] successfully loaded kernel 
`denoiseprofile_synthesize' (179) for device 0
2,535858 [opencl_create_kernel] successfully loaded kernel 
`denoiseprofile_reduce_first' (180) for device 0
2,535891 [opencl_create_kernel] successfully loaded kernel 
`denoiseprofile_reduce_second' (181) for device 0


after that you can enable OpenCL in the settings (otherwise this is not 
available)


I run Darktable on Mojave fine using opencl, even with the blackmagic 
eGPU. If you cannot enable opencl in the settings, redo the "multiple 
runs until all opencl kernels are compiled" stuff (can happen after 
darktable or macOS upgrades).


hth
  mike

Am So., 2. Dez. 2018 um 12:19 Uhr schrieb Volker Lenhardt 
mailto:volker.lenha...@uni-due.de>>:


Am 01.12.18 um 22:59 schrieb Volker Lenhardt:
 >
 > /Applications/darktable.app/Contents/MacOS/darktable -d opencl
 >
 > There's a lot of output. OpenCL seems to be enabled. But for all the
 > rest it's too late tonight. I'll come to that the next days and will
 > report. For the time being my thanks to Archie and Ulrich. So long.

First I started DL from the terminal without any option:

macspinne:~ volker$ /Applications/darktable.app/Contents/MacOS/darktable

The output:

(process:501): GLib-GObject-CRITICAL **: 11:25:06.904: g_object_set:
assertion 'G_IS_OBJECT (object)' failed

(darktable-bin:501): GLib-GObject-WARNING **: 11:25:07.665: invalid
cast
from 'GtkMenuBar' to 'GtkWindow'

(darktable-bin:501): Gtk-CRITICAL **: 11:25:07.665:
gtk_window_add_accel_group: assertion 'GTK_IS_WINDOW (window)' failed

After closing DT:

(darktable-bin:501): GLib-GObject-CRITICAL **: 11:26:44.700:
g_object_unref: assertion 'G_IS_OBJECT (object)' failed

Are these errors relevant within the Apple environment?

When I start DT with the "-d opencl" option these errors are still
there. But all output concerning openCL shows no errors. If requested I
can post the lines.



My output looks much the same as yours and Michael's. So I am now 
convinced that I was wrong putting the blame for my DT's shortcomings to 
openCL.


There seems to be some flaw in the graphics. But the output concerning 
the graphics card looks ok:


0.069794 [opencl_init] found opencl runtime library 
'/System/Library/Frameworks/OpenCL.framework/Versions/Current/OpenCL'
0.069829 [opencl_init] opencl library 
'/System/Library/Frameworks/OpenCL.framework/Versions/Current/OpenCL' 
found on your system and loaded

0.069832 [opencl_init] found 1 platform
0.077176 [opencl_init] found 2 devices
0.077218 [opencl_init] discarding CPU device 0 `Intel(R) Core(TM) 
i5-7500 CPU @ 3.40GHz'.
0.077246 [opencl_init] device 1 `AMD Radeon Pro 570 Compute Engine' 
supports image sizes of 16384 x 16384
0.077250 [opencl_init] device 1 `AMD Radeon Pro 570 Compute Engine' 
allows GPU memory allocations of up to 1024MB

[opencl_init] device 1: AMD Radeon Pro 570 Compute Engine
 GLOBAL_MEM_SIZE:  4096MB
 MAX_WORK_GROUP_SIZE:  256
 MAX_WORK_ITEM_DIMENSIONS: 3
 MAX_WORK_ITEM_SIZES:  [ 256 256 256 ]
 DRIVER_VERSION:   1.2 (Oct 16 2018 21:18:14)
 DEVICE_VERSION:   OpenCL 1.2
0.077944 [opencl_init] options for OpenCL compiler: 
-cl-fast-relaxed-math  -DUNKNOWN=1 
-I/Applications/darktable.app/Contents/Resources/share/darktable/kernels

...
0.085891 [opencl_init] kernel loading time: 0.0078
0.085897 [opencl_init] OpenCL successfully initialized.
0.085899 [opencl_init] here are the internal numbers and names of OpenCL 
devices available to darktable:

0.085901 [opencl_init]  0   'AMD Radeon Pro 570 Compute Engine'
0.085904 [opencl_init] FINALLY: opencl is AVAILABLE on this system.
0.085906 [opencl_init] initial status of opencl enabled flag is ON.

I think I should either reinstall DT or start a new subject request. Or 
do you have an idea?


Volker

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



Re: [darktable-user] DT on iMac with Mojave: no openCL

2018-12-02 Thread Stéphane Gourichon

Le 02/12/2018 à 12.15, Volker Lenhardt a écrit :

macspinne:~ volker$ /Applications/darktable.app/Contents/MacOS/darktable

The output:

(process:501): GLib-GObject-CRITICAL **: 11:25:06.904: g_object_set: 
assertion 'G_IS_OBJECT (object)' failed


(darktable-bin:501): GLib-GObject-WARNING **: 11:25:07.665: invalid 
cast from 'GtkMenuBar' to 'GtkWindow'


(darktable-bin:501): Gtk-CRITICAL **: 11:25:07.665: 
gtk_window_add_accel_group: assertion 'GTK_IS_WINDOW (window)' failed


After closing DT:

(darktable-bin:501): GLib-GObject-CRITICAL **: 11:26:44.700: 
g_object_unref: assertion 'G_IS_OBJECT (object)' failed


Are these errors relevant within the Apple environment?



Probably not. I see similar errors when running other gtk apps from the 
command line on Ubuntu, even when they appear to work perfectly.





When I start DT with the "-d opencl" option these errors are still 
there. But all output concerning openCL shows no errors. If requested 
I can post the lines. 



Here is a sample from my "darktable -d opencl output:

0.301195 [opencl_init] kernel loading time: 0.0895
0.301202 [opencl_init] OpenCL successfully initialized.
0.301211 [opencl_init] here are the internal numbers and names of OpenCL 
devices available to darktable:
0.301215 [opencl_init]  0   'GeForce GTX 850M'
0.301221 [opencl_init] FINALLY: opencl is AVAILABLE on this system.
0.301225 [opencl_init] initial status of opencl enabled flag is ON.
0.301709 [opencl_create_kernel] successfully loaded kernel `blendop_mask_Lab' 
(0) for device 0
0.301720 [opencl_create_kernel] successfully loaded kernel `blendop_mask_RAW' 
(1) for device 0


Cheers!

--
Stéphane Gourichon



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

Re: [darktable-user] DT on iMac with Mojave: no openCL

2018-12-02 Thread Michael Kefeder
Normally you should restart "darktable -d opencl" many times until the
output looks like this, no errors compiling the kernels:

...
2,535671 [opencl_create_kernel] successfully loaded kernel
`denoiseprofile_accu' (175) for device 0
2,535708 [opencl_create_kernel] successfully loaded kernel
`denoiseprofile_finish' (176) for device 0
2,535748 [opencl_create_kernel] successfully loaded kernel
`denoiseprofile_backtransform' (177) for device 0
2,535783 [opencl_create_kernel] successfully loaded kernel
`denoiseprofile_decompose' (178) for device 0
2,535820 [opencl_create_kernel] successfully loaded kernel
`denoiseprofile_synthesize' (179) for device 0
2,535858 [opencl_create_kernel] successfully loaded kernel
`denoiseprofile_reduce_first' (180) for device 0
2,535891 [opencl_create_kernel] successfully loaded kernel
`denoiseprofile_reduce_second' (181) for device 0

after that you can enable OpenCL in the settings (otherwise this is not
available)

I run Darktable on Mojave fine using opencl, even with the blackmagic eGPU.
If you cannot enable opencl in the settings, redo the "multiple runs until
all opencl kernels are compiled" stuff (can happen after darktable or macOS
upgrades).

hth
 mike

Am So., 2. Dez. 2018 um 12:19 Uhr schrieb Volker Lenhardt <
volker.lenha...@uni-due.de>:

> Am 01.12.18 um 22:59 schrieb Volker Lenhardt:
> >
> > /Applications/darktable.app/Contents/MacOS/darktable -d opencl
> >
> > There's a lot of output. OpenCL seems to be enabled. But for all the
> > rest it's too late tonight. I'll come to that the next days and will
> > report. For the time being my thanks to Archie and Ulrich. So long.
>
> First I started DL from the terminal without any option:
>
> macspinne:~ volker$ /Applications/darktable.app/Contents/MacOS/darktable
>
> The output:
>
> (process:501): GLib-GObject-CRITICAL **: 11:25:06.904: g_object_set:
> assertion 'G_IS_OBJECT (object)' failed
>
> (darktable-bin:501): GLib-GObject-WARNING **: 11:25:07.665: invalid cast
> from 'GtkMenuBar' to 'GtkWindow'
>
> (darktable-bin:501): Gtk-CRITICAL **: 11:25:07.665:
> gtk_window_add_accel_group: assertion 'GTK_IS_WINDOW (window)' failed
>
> After closing DT:
>
> (darktable-bin:501): GLib-GObject-CRITICAL **: 11:26:44.700:
> g_object_unref: assertion 'G_IS_OBJECT (object)' failed
>
> Are these errors relevant within the Apple environment?
>
> When I start DT with the "-d opencl" option these errors are still
> there. But all output concerning openCL shows no errors. If requested I
> can post the lines.
>
> Volker
>
> 
> darktable user mailing list
> to unsubscribe send a mail to
> darktable-user+unsubscr...@lists.darktable.org
>
>


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

Re: [darktable-user] DT on iMac with Mojave: no openCL

2018-12-02 Thread Volker Lenhardt

Am 01.12.18 um 22:59 schrieb Volker Lenhardt:


/Applications/darktable.app/Contents/MacOS/darktable -d opencl

There's a lot of output. OpenCL seems to be enabled. But for all the 
rest it's too late tonight. I'll come to that the next days and will 
report. For the time being my thanks to Archie and Ulrich. So long.


First I started DL from the terminal without any option:

macspinne:~ volker$ /Applications/darktable.app/Contents/MacOS/darktable

The output:

(process:501): GLib-GObject-CRITICAL **: 11:25:06.904: g_object_set: 
assertion 'G_IS_OBJECT (object)' failed


(darktable-bin:501): GLib-GObject-WARNING **: 11:25:07.665: invalid cast 
from 'GtkMenuBar' to 'GtkWindow'


(darktable-bin:501): Gtk-CRITICAL **: 11:25:07.665: 
gtk_window_add_accel_group: assertion 'GTK_IS_WINDOW (window)' failed


After closing DT:

(darktable-bin:501): GLib-GObject-CRITICAL **: 11:26:44.700: 
g_object_unref: assertion 'G_IS_OBJECT (object)' failed


Are these errors relevant within the Apple environment?

When I start DT with the "-d opencl" option these errors are still 
there. But all output concerning openCL shows no errors. If requested I 
can post the lines.


Volker

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



Re: [darktable-user] DT on iMac with Mojave: no openCL

2018-12-01 Thread Volker Lenhardt

Am 01.12.18 um 21:01 schrieb Ulrich Pegelow:

Am 01.12.18 um 20:32 schrieb Volker Lenhardt:


This is one more riddle. I had tried so and have repeated it just now 
from the terminal. I get "-bash: darktable: command not found". It 
seems the best I can do is to reinstall Darktable. What do you think?


You probably need to give the full path of the darktable executable. I 
have no idea how to get the path on MacOS, maybe some MacOS user knows.


Eventually I found the path.

/Applications/darktable.app/Contents/MacOS/darktable -d opencl

There's a lot of output. OpenCL seems to be enabled. But for all the 
rest it's too late tonight. I'll come to that the next days and will 
report. For the time being my thanks to Archie and Ulrich. So long.


Volker

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



Re: [darktable-user] DT on iMac with Mojave: no openCL

2018-12-01 Thread Ulrich Pegelow

Am 01.12.18 um 20:32 schrieb Volker Lenhardt:


This is one more riddle. I had tried so and have repeated it just now 
from the terminal. I get "-bash: darktable: command not found". It seems 
the best I can do is to reinstall Darktable. What do you think?


You probably need to give the full path of the darktable executable. I 
have no idea how to get the path on MacOS, maybe some MacOS user knows.


Ulrich



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



Re: [darktable-user] DT on iMac with Mojave: no openCL

2018-12-01 Thread Volker Lenhardt




Am 01.12.18 um 20:07 schrieb Ulrich Pegelow:
You are probably aware that you can find out more about OpenCL problems 
by starting darktable from a shell with option 'darktable -d opencl'. 
Likewise you may try 'darktable -d perf' for more info on what (module) 
makes darktable feel sluggish.




This is one more riddle. I had tried so and have repeated it just now 
from the terminal. I get "-bash: darktable: command not found". It seems 
the best I can do is to reinstall Darktable. What do you think?


Thanks. Volker

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



Re: [darktable-user] DT on iMac with Mojave: no openCL

2018-12-01 Thread Ulrich Pegelow
You are probably aware that you can find out more about OpenCL problems 
by starting darktable from a shell with option 'darktable -d opencl'. 
Likewise you may try 'darktable -d perf' for more info on what (module) 
makes darktable feel sluggish.


Ulrich


Am 01.12.18 um 19:38 schrieb Volker Lenhardt:



Am 01.12.18 um 19:11 schrieb Archie Macintosh:
On Sat, 1 Dec 2018 at 17:45, Archie Macintosh  
wrote:

Sorry, I just realised I'm on a 2017 iMac. Is yours 2018?
See https://support.apple.com/en-gb/HT202823


Doh! Just remembered there aren't any 2018 iMacs yet. So you should
have OpenCL on yours.


I bought my iMac 4 weeks ago. It was shipped with macOS High Sierra. I 
updated to Mojave. Of course I had activated OpenCL in the DT options.


My trackpad troubles could be some hint to a different installation 
problem to be the cause for both.


The sluggishness is e.g. very prominent, when I try to find image faults 
in the corners with highly zoomed in image. To move the image around 
takes much too much time with many pauses between.


But nice to hear from you that it should work.


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



Re: [darktable-user] DT on iMac with Mojave: no openCL

2018-12-01 Thread Volker Lenhardt




Am 01.12.18 um 19:11 schrieb Archie Macintosh:

On Sat, 1 Dec 2018 at 17:45, Archie Macintosh  wrote:
Sorry, I just realised I'm on a 2017 iMac. Is yours 2018?
See https://support.apple.com/en-gb/HT202823


Doh! Just remembered there aren't any 2018 iMacs yet. So you should
have OpenCL on yours.


I bought my iMac 4 weeks ago. It was shipped with macOS High Sierra. I 
updated to Mojave. Of course I had activated OpenCL in the DT options.


My trackpad troubles could be some hint to a different installation 
problem to be the cause for both.


The sluggishness is e.g. very prominent, when I try to find image faults 
in the corners with highly zoomed in image. To move the image around 
takes much too much time with many pauses between.


But nice to hear from you that it should work.


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



Re: [darktable-user] DT on iMac with Mojave: no openCL

2018-12-01 Thread Archie Macintosh
> On Sat, 1 Dec 2018 at 17:45, Archie Macintosh  wrote:
> Sorry, I just realised I'm on a 2017 iMac. Is yours 2018?
> See https://support.apple.com/en-gb/HT202823

Doh! Just remembered there aren't any 2018 iMacs yet. So you should
have OpenCL on yours.

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



Re: [darktable-user] DT on iMac with Mojave: no openCL

2018-12-01 Thread Archie Macintosh
On Sat, 1 Dec 2018 at 17:45, Archie Macintosh  wrote:
> BTW, as I understand it, OpenGL and OpenCL support still exists in
> Mojave; Apple just won’t be updating them any more. Certainly, DT
> seems to detect OpenCL on my system.

Sorry, I just realised I'm on a 2017 iMac. Is yours 2018?
See https://support.apple.com/en-gb/HT202823

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



Re: [darktable-user] DT on iMac with Mojave: no openCL

2018-12-01 Thread Archie Macintosh
On Sat, 1 Dec 2018 at 17:36, Archie Macintosh  wrote:
> OpenCL doesn't seem to be enabled by Mojave any more...

BTW, as I understand it, OpenGL and OpenCL support still exists in
Mojave; Apple just won’t be updating them any more. Certainly, DT
seems to detect OpenCL on my system.

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



Re: [darktable-user] DT on iMac with Mojave: no openCL

2018-12-01 Thread Archie Macintosh
On Sat, 1 Dec 2018 at 15:49, Volker Lenhardt  wrote:
> I migrated from Linux (openSUSE) to a new iMac (27" 5K) with macOS Mojave...
> OpenCL doesn't seem to be enabled by Mojave any more...
> Is there some way or other to get openCL to work or to use
> Metal 2 instead.

I'm using DT 2.4.4 under Mojave on an iMac. I don't have a trackpad,
but I don't find DT sluggish. Forgive me if you've already checked
this, but I found that OpenCL support was not activated by default
(even though the manual suggests it's on by default), and I had to
check 'Activate OpenCL support' in the DT Preferences Core Options.

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



Re: [darktable-user] DT on iMac with Mojave: no openCL

2018-12-01 Thread Volker Lenhardt
Sorry, I forgot: DT 2.4.4


> Am 01.12.2018 um 16:49 schrieb Volker Lenhardt :
> 
> I migrated from Linux (openSUSE) to a new iMac (27" 5K) with macOS Mojave.
> 
> 3.4 GHz Quad-Core Intel Core i5, 8 GB DDR4, Radeon Pro 570 (4 GB VRAM), Magic 
> Trackpad 2.
> 
> 
> OpenCL doesn't seem to be enabled by Mojave any more. So DT is very very 
> sluggish, on the edge of being unusable. What's more, it doesn't respond to 
> some Trackpad gestures, e.g. zooming the picture with two fingers or 
> selecting from an option's choice list in the preferences dialog with a 
> simple click. Is there some way or other to get openCL to work or to use 
> Metal 2 instead.
> 
> 
> Can you confirm my experiences?
> 
> 
> darktable user mailing list
> to unsubscribe send a mail to darktable-user+unsubscr...@lists.darktable.org
> 


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