Am 13.09.18 um 07:38 schrieb Matthias Bodenbinder: > export CC=/usr/bin/clang > export CXX=/usr/bin/clang++ > INSTALL_PREFIX_DEFAULT="/opt/darktable-clang" >
This is working now. I had to remove the build directory after editing build.sh I have the following packages installed on Manjaro: clang 6.0.1-2 lib32-llvm-libs 6.0.1-1 llvm 6.0.1-4 llvm-libs 6.0.1-4 openmp 6.0.1-1 And the result is: The DT performance is the same! pixelpipe time differences are less than 3 %. 22# ./bench-script-clang-vs-gcc.sh 3 runs no opencl run clang 1: 16,704839 [dev_process_export] pixel pipeline processing took 16,401 secs (128,498 CPU) run gcc 1: 16,537099 [dev_process_export] pixel pipeline processing took 16,205 secs (124,564 CPU) run clang 2: 17,087163 [dev_process_export] pixel pipeline processing took 16,798 secs (130,706 CPU) run gcc 2: 16,566993 [dev_process_export] pixel pipeline processing took 16,240 secs (124,351 CPU) run clang 3: 16,728366 [dev_process_export] pixel pipeline processing took 16,440 secs (128,643 CPU) run gcc 3: 16,588298 [dev_process_export] pixel pipeline processing took 16,260 secs (124,372 CPU) #### 3 runs with opencl run clang 1: 7,668977 [dev_process_export] pixel pipeline processing took 7,298 secs (20,387 CPU) run gcc 1: 7,533379 [dev_process_export] pixel pipeline processing took 7,129 secs (17,671 CPU) run clang 2: 7,599311 [dev_process_export] pixel pipeline processing took 7,235 secs (20,150 CPU) run gcc 2: 7,516472 [dev_process_export] pixel pipeline processing took 7,115 secs (17,731 CPU) run clang 3: 7,639706 [dev_process_export] pixel pipeline processing took 7,275 secs (20,923 CPU) run gcc 3: 7,662320 [dev_process_export] pixel pipeline processing took 7,257 secs (17,884 CPU) But the binaries are a lot smaller: With clang: 13# ll /opt/darktable-clang/bin insgesamt 4,6M -rwxr-xr-x 1 matthias matthias 18K 15. Sep 09:29 darktable -rwxr-xr-x 1 matthias matthias 273K 15. Sep 09:29 darktable-chart -rwxr-xr-x 1 matthias matthias 44K 15. Sep 09:29 darktable-cli -rwxr-xr-x 1 matthias matthias 19K 15. Sep 09:29 darktable-cltest -rwxr-xr-x 1 matthias matthias 44K 15. Sep 09:29 darktable-cmstest -rwxr-xr-x 1 matthias matthias 38K 15. Sep 09:29 darktable-generate-cache -rwxr-xr-x 1 matthias matthias 11M 15. Sep 09:26 darktable-rs-identify with gcc: 14# ll /opt/darktable-gcc/bin insgesamt 9,8M -rwxr-xr-x 1 matthias matthias 32K 13. Sep 07:18 darktable -rwxr-xr-x 1 matthias matthias 381K 13. Sep 07:18 darktable-chart -rwxr-xr-x 1 matthias matthias 90K 13. Sep 07:18 darktable-cli -rwxr-xr-x 1 matthias matthias 43K 13. Sep 07:18 darktable-cltest -rwxr-xr-x 1 matthias matthias 59K 13. Sep 07:18 darktable-cmstest -rwxr-xr-x 1 matthias matthias 58K 13. Sep 07:18 darktable-generate-cache -rwxr-xr-x 1 matthias matthias 20M 13. Sep 07:17 darktable-rs-identify Kind Regards Matthias ___________________________________________________________________________ darktable developer mailing list to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org