Ver código fonte

- add configure option for openmp runtime support

Olivier Aumage 11 anos atrás
pai
commit
ecb54e5633
1 arquivos alterados com 19 adições e 0 exclusões
  1. 19 0
      configure.ac

+ 19 - 0
configure.ac

@@ -1992,6 +1992,24 @@ AM_CONDITIONAL([RUN_GCC_PLUGIN_TESTS],
 
 ###############################################################################
 #                                                                             #
+#                            OpenMP runtime support                           #
+#                                                                             #
+###############################################################################
+
+AC_ARG_ENABLE(openmp, [AS_HELP_STRING([--enable-openmp],
+			[build the OpenMP runtime support (experimental)])],
+			enable_openmp=$enableval, enable_openmp=no)
+
+AC_MSG_CHECKING(for OpenMP runtime support)
+
+if test x$enable_openmp = xyes; then
+	AC_DEFINE(STARPU_OPENMP, 1, [Define this to enable OpenMP runtime support])
+fi
+
+AC_MSG_RESULT($enable_openmp)
+
+###############################################################################
+#                                                                             #
 #                               SOCL interface                                #
 #                                                                             #
 ###############################################################################
@@ -2539,6 +2557,7 @@ AC_MSG_NOTICE([
 	       FFT Support:                                 $fft_support
 	       GCC plug-in:                                 $build_gcc_plugin
 	       GCC plug-in test suite (requires GNU Guile): $run_gcc_plugin_test_suite
+	       OpenMP runtime support enabled:              $enable_openmp
 	       SOCL enabled:                                $build_socl
                SOCL test suite:                             $run_socl_check
                Scheduler Hypervisor:                        $build_sc_hypervisor