SVN commit 861850 by cgilles:
libkdcraw from KDE3 branch : add a new .configure --enable-openmp option to compile libraw with parallelized code to speed-up RAW Demosaicing operations.
You need libgomp shared library installed.
CCMAIL:
[hidden email]
CCMAIL:
[hidden email]
CCMAIL:
[hidden email]
CCMAIL:
[hidden email]
CCMAIL:
[hidden email]
M +6 -0 configure.in.bot
M +23 -0 configure.in.in
--- branches/extragear/kde3/libs/libkdcraw/configure.in.bot #861849:861850
@@ -15,5 +15,11 @@
echo "-- lcms found..................... YES"
fi
+if test "x$USING_OPENMP" != "xyes"; then
+ echo "-- compile with OpenMP support.... NO"
+ all_tests=bad
+else
+ echo "-- compile with OpenMP support.... YES"
+fi
--- branches/extragear/kde3/libs/libkdcraw/configure.in.in #861849:861850
@@ -96,3 +96,26 @@
)
CPPFLAGS=$libkdcraw_kdemacros_cppflags
AC_LANG_POP(C++)
+
+# -----------------------------------------------------------------
+# enable OpenMP support to use parallelized code from LibRaw
+# (default: disabled). this mode speed-up demosaicing operations.
+# -----------------------------------------------------------------
+
+AC_MSG_CHECKING(whether to enable parallel demosaicing operation from LibRaw using openmp...)
+AC_ARG_ENABLE([openmp], [AC_HELP_STRING([--enable-openmp],
+ [enable openmp [default=disabled] ])],
+ if test $enableval = yes; then
+ [AC_MSG_RESULT(yes)]
+ [AC_DEFINE([USING_OPENMP], 1, [using openmp])]
+ USING_OPENMP=yes
+ [CXXFLAGS="$CXXFLAGS -fopenmp"]
+ [OPENMP_LDFLAGS=" -lgomp "]
+ fi
+ ,
+ [AC_MSG_RESULT(no)]
+ [AC_DEFINE([USING_OPENMP], 0, [using openmp])]
+ USING_OPENMP=no
+ [OPENMP_LDFLAGS=""]
+ )
+AC_SUBST(OPENMP_LDFLAGS)
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users