|
@@ -249,8 +249,18 @@ AC_ARG_WITH(simgrid-lib-dir,
|
|
|
], [simgrid_lib_dir=no])
|
|
|
|
|
|
if test x$enable_simgrid = xyes ; then
|
|
|
- PKG_CHECK_MODULES([SIMGRID], [simgrid])
|
|
|
+ PKG_CHECK_MODULES([SIMGRID], [simgrid], [], [:])
|
|
|
|
|
|
+ if test "$simgrid_include_dir" != "no" ; then
|
|
|
+ SIMGRID_CFLAGS="$SIMGRID_CFLAGS -I$simgrid_include_dir"
|
|
|
+ fi
|
|
|
+ if test "$simgrid_lib_dir" != "no" ; then
|
|
|
+ SIMGRID_LIBS="$SIMGRID_LIBS -L$simgrid_lib_dir"
|
|
|
+ fi
|
|
|
+ if test "$simgrid_dir" != "no" ; then
|
|
|
+ SIMGRID_CFLAGS="$SIMGRID_CFLAGS -I$simgrid_dir/include"
|
|
|
+ SIMGRID_LIBS="$SIMGRID_LIBS -L$simgrid_dir/lib"
|
|
|
+ fi
|
|
|
if test -n "$SIMGRID_CFLAGS" ; then
|
|
|
CFLAGS="$SIMGRID_CFLAGS $CFLAGS"
|
|
|
CXXFLAGS="$SIMGRID_CFLAGS $CXXFLAGS"
|
|
@@ -259,20 +269,6 @@ if test x$enable_simgrid = xyes ; then
|
|
|
if test -n "$SIMGRID_LIBS" ; then
|
|
|
LDFLAGS="$SIMGRID_LIBS $LDFLAGS"
|
|
|
fi
|
|
|
- if test "$simgrid_dir" != "no" ; then
|
|
|
- CFLAGS="-I$simgrid_dir/include $CFLAGS"
|
|
|
- CXXFLAGS="-I$simgrid_dir/include $CXXFLAGS"
|
|
|
- NVCCFLAGS="-I$simgrid_dir/include $NVCCFLAGS"
|
|
|
- LDFLAGS="-L$simgrid_dir/lib $LDFLAGS"
|
|
|
- fi
|
|
|
- if test "$simgrid_include_dir" != "no" ; then
|
|
|
- CFLAGS="-I$simgrid_include_dir $CFLAGS"
|
|
|
- CXXFLAGS="-I$simgrid_include_dir $CXXFLAGS"
|
|
|
- NVCCFLAGS="-I$simgrid_include_dir $NVCCFLAGS"
|
|
|
- fi
|
|
|
- if test "$simgrid_lib_dir" != "no" ; then
|
|
|
- LDFLAGS="-L$simgrid_lib_dir $LDFLAGS"
|
|
|
- fi
|
|
|
AC_HAVE_LIBRARY([simgrid], [],
|
|
|
[
|
|
|
AC_MSG_ERROR(Simgrid support needs simgrid installed)
|
|
@@ -330,9 +326,9 @@ if test x$enable_simgrid = xyes ; then
|
|
|
LIBS="$LIBS -lstdc++"
|
|
|
fi
|
|
|
|
|
|
- case \ $CXXFLAGS\ in
|
|
|
+ case \ $CXXFLAGS\ in
|
|
|
*\ -std=*\ *) ;;
|
|
|
- *)
|
|
|
+ *)
|
|
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
|
|
#ifdef STARPU_HAVE_SIMGRID_MSG_H
|
|
|
#include <simgrid/msg.h>
|
|
@@ -1402,9 +1398,9 @@ if test x$enable_cuda = xyes; then
|
|
|
STARPU_CUFFT_LDFLAGS="-lcufft"
|
|
|
|
|
|
AC_LANG_PUSH([C++])
|
|
|
- case \ $NVCCFLAGS\ in
|
|
|
+ case \ $NVCCFLAGS\ in
|
|
|
*\ -std=*\ *) ;;
|
|
|
- *)
|
|
|
+ *)
|
|
|
SAVED_CXX="$CXX"
|
|
|
CXX="$NVCC"
|
|
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
|
@@ -1427,7 +1423,7 @@ if test x$enable_cuda = xyes; then
|
|
|
|
|
|
#in case this is a 64bit setup, we tell nvcc to use a -m64 flag, if missing from existing flags
|
|
|
if test x$SIZEOF_VOID_P = x8; then
|
|
|
- case \ $NVCCFLAGS\ in
|
|
|
+ case \ $NVCCFLAGS\ in
|
|
|
*\ -m64\ *) ;;
|
|
|
*) NVCCFLAGS="${NVCCFLAGS} -m64" ;;
|
|
|
esac
|
|
@@ -2818,7 +2814,7 @@ if test "x$use_mpi_master_slave" = "xyes" ; then
|
|
|
AC_MSG_ERROR([MPI Master-Slave and SOCL can not be used at the same time !])
|
|
|
fi
|
|
|
if test "x$enable_socl" = "xmaybe" ; then
|
|
|
- enable_socl=no
|
|
|
+ enable_socl=no
|
|
|
fi
|
|
|
fi
|
|
|
|
|
@@ -3110,15 +3106,9 @@ AC_SUBST(BLAS_LIB,$blas_lib)
|
|
|
# Multiple linear regression #
|
|
|
# #
|
|
|
###############################################################################
|
|
|
-if test x$enable_simgrid = xyes ; then
|
|
|
- # There is no need for building mlr models in simgrid mode
|
|
|
- default_enable_mlr=no
|
|
|
-else
|
|
|
- default_enable_mlr=yes
|
|
|
-fi
|
|
|
-AC_ARG_ENABLE(mlr, [AS_HELP_STRING([--disable-mlr],
|
|
|
- [Disable multiple linear regression models])],
|
|
|
- enable_mlr=$enableval, enable_mlr=$default_enable_mlr)
|
|
|
+AC_ARG_ENABLE(mlr, [AS_HELP_STRING([--enable-mlr],
|
|
|
+ [Enable multiple linear regression models])],
|
|
|
+ enable_mlr=$enableval, enable_mlr=no)
|
|
|
AC_ARG_ENABLE(mlr-system-blas, [AS_HELP_STRING([--enable-mlr-system-blas],
|
|
|
[Make the multiple linear regression models use the system BLAS instead of min-dgels])],
|
|
|
enable_mlr_blas=$enableval, enable_mlr_blas=no)
|
|
@@ -3132,11 +3122,11 @@ if test x$enable_mlr = xyes -a "$starpu_windows" != "yes" ; then
|
|
|
if test x$blas_lib = xnone ; then
|
|
|
use_system_lapack=no
|
|
|
fi
|
|
|
- if test x$enable_mlr_blas = xyes -a test x$use_system_lapack = xyes; then
|
|
|
+ if test x$enable_mlr_blas = xyes -a x$use_system_lapack = xyes; then
|
|
|
AC_DEFINE(STARPU_MLR_MODEL, [1], [use reflapack library])
|
|
|
LDFLAGS="-llapack $LDFLAGS"
|
|
|
else
|
|
|
- if test x$enable_mlr_blas=xyes -a test x$blas_lib = xmkl; then
|
|
|
+ if test x$enable_mlr_blas=xyes -a x$blas_lib = xmkl; then
|
|
|
AC_DEFINE(STARPU_MLR_MODEL, [1], [use mkl library])
|
|
|
else
|
|
|
AC_MSG_CHECKING(whether min-dgels is linked)
|
|
@@ -3390,9 +3380,9 @@ then
|
|
|
[AS_HELP_STRING([--with-dlb-include-dir=<path>],
|
|
|
[specify where DLB headers are installed])],
|
|
|
[dlb_inc_dirs="$withval"], [dlb_inc_dirs=""])
|
|
|
-
|
|
|
+
|
|
|
dlb_inc_dirs="${dlb_inc_dirs} /usr/include/dlb"
|
|
|
-
|
|
|
+
|
|
|
dlb_incdir_found=no
|
|
|
for dlb_incdir in $dlb_inc_dirs
|
|
|
do
|
|
@@ -3413,18 +3403,18 @@ then
|
|
|
unset ac_cv_header_dlb_h
|
|
|
fi
|
|
|
done
|
|
|
-
|
|
|
+
|
|
|
AC_ARG_WITH(dlb-lib-dir,
|
|
|
[AS_HELP_STRING([--with-dlb-lib-dir=<path>],
|
|
|
[specify where DLB libraries are installed])],
|
|
|
[dlb_lib_dirs="$withval"], [dlb_lib_dirs=""])
|
|
|
-
|
|
|
+
|
|
|
dlb_lib_dirs="${dlb_lib_dirs} /usr/lib/dlb"
|
|
|
-
|
|
|
+
|
|
|
dlb_libdir_found=no
|
|
|
for dlb_libdir in $dlb_lib_dirs
|
|
|
do
|
|
|
- if test -n "$dlb_libdir"
|
|
|
+ if test -n "$dlb_libdir"
|
|
|
then
|
|
|
SAVED_LDFLAGS="${LDFLAGS}"
|
|
|
LDFLAGS=-L${dlb_libdir}
|
|
@@ -3441,7 +3431,7 @@ then
|
|
|
unset ac_cv_lib_dlb_DLB_Init
|
|
|
fi
|
|
|
done
|
|
|
-
|
|
|
+
|
|
|
SAVED_CPPFLAGS="${CPPFLAGS}"
|
|
|
SAVED_CFLAGS="${CFLAGS}"
|
|
|
SAVED_LDFLAGS="${LDFLAGS}"
|
|
@@ -3453,7 +3443,7 @@ then
|
|
|
CPPFLAGS="$SAVED_CPPFLAGS"
|
|
|
CFLAGS="$SAVED_CFLAGS"
|
|
|
LIBS="$SAVED_LIBS"
|
|
|
-
|
|
|
+
|
|
|
SAVED_CPPFLAGS="${CPPFLAGS}"
|
|
|
SAVED_CFLAGS="${CFLAGS}"
|
|
|
SAVED_LDFLAGS="${LDFLAGS}"
|
|
@@ -3469,13 +3459,13 @@ then
|
|
|
CPPFLAGS="$SAVED_CPPFLAGS"
|
|
|
CFLAGS="$SAVED_CFLAGS"
|
|
|
LIBS="$SAVED_LIBS"
|
|
|
-
|
|
|
+
|
|
|
if test "x$dlb_incdir_found" != "xyes" -o "x$dlb_libdir_found" != "xyes"
|
|
|
then
|
|
|
enable_dlb=no
|
|
|
fi
|
|
|
fi
|
|
|
-
|
|
|
+
|
|
|
AC_MSG_CHECKING(whether DLB support should be enabled)
|
|
|
AC_MSG_RESULT($enable_dlb)
|
|
|
if test "x$enable_dlb" != "xno"
|
|
@@ -3505,8 +3495,6 @@ AC_ARG_ENABLE(starpurm-examples, [AS_HELP_STRING([--enable-starpurm-examples],
|
|
|
enable_starpurm_examples=$enableval, enable_starpurm_examples=no)
|
|
|
AM_CONDITIONAL(STARPU_BUILD_STARPURM_EXAMPLES, [test x$enable_starpurm_examples = xyes])
|
|
|
|
|
|
-
|
|
|
-
|
|
|
##########################################
|
|
|
# Documentation #
|
|
|
##########################################
|
|
@@ -3807,7 +3795,7 @@ AC_MSG_NOTICE([
|
|
|
MPI test suite: $running_mpi_check
|
|
|
Master-Slave MPI enabled: $use_mpi_master_slave
|
|
|
FFT Support: $fft_support
|
|
|
- Resource Management enable: $starpurm_support
|
|
|
+ Resource Management enabled: $starpurm_support
|
|
|
OpenMP runtime support enabled: $enable_openmp
|
|
|
Cluster support enabled: $enable_cluster
|
|
|
SOCL enabled: $build_socl
|