I’ve just benchmarked darktable with and without opencl. Surprisingly I got a slowdown when opencl is activated.
What I did was the following. I took a sample RAW from here: Darktable Benchmark - OpenBenchmarking.org
Then I run following script:
[marco@marco-pc benchmar] cat benchmark.sh
rm -f test*.jpg
for d in (seq 1 3); do
echo -n "run $d: "
darktable-cli bench.SRW test-$d.jpg --core --configdir /tmp --disable-opencl -d perf -d opencl | grep “processing took”
done
After that I changed that script so that opencl is activated:
[marco@marco-pc benchmar] cat benchmark-mit-opencl.sh
rm -f test*.jpg
for d in (seq 1 3); do
echo -n "run $d: "
darktable-cli bench.SRW test-$d.jpg --core --configdir /tmp -d perf -d opencl | grep “processing took”
done
See my results, dt is quicker when opencl is not activated:
benchmark-orig.txt (1.2 KB)
Did I do something wrong? I thought my system is properly configured. Maybe not?!
I’m on Manjaro 5.4.31, AMD Ryzen 9 3900X & Radeon RX 570 using dt 3.0.1
[marco@marco-pc benchmar] clinfo |grep Image
Image support Yes
Image support No
[marco@marco-pc benchmar] darktable-cltest |grep -i finally
0.280783 [opencl_init] FINALLY: opencl is AVAILABLE on this system.
The output of clinfo and darktable-cltest here:
clinfo.txt (13.8 KB) darktable-cltest.txt (41.0 KB)
I thought opencl improves generally the performance?