|
@@ -151,8 +151,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"
|
|
@@ -161,20 +171,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)
|
|
@@ -232,9 +228,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>
|
|
@@ -771,7 +767,10 @@ if test x"$enable_native_winthreads" = xyes ; then
|
|
|
AC_DEFINE(STARPU_NATIVE_WINTHREADS,[1],[Using native windows threads]),
|
|
|
AC_MSG_ERROR([pthread_create unavailable]))
|
|
|
else
|
|
|
- AC_CHECK_LIB([pthread], [pthread_create])
|
|
|
+ AC_CHECK_LIB([pthread], [pthread_create], [
|
|
|
+ LIBS="$LIBS -lpthread"
|
|
|
+ STARPU_EXPORTED_LIBS="$STARPU_EXPORTED_LIBS -lpthread"
|
|
|
+ ])
|
|
|
fi
|
|
|
|
|
|
AC_SEARCH_LIBS([sqrt],[m],,AC_MSG_ERROR([math library unavailable]))
|
|
@@ -1332,9 +1331,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([[
|
|
@@ -1357,7 +1356,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
|
|
@@ -2739,7 +2738,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
|
|
|
|
|
@@ -3031,15 +3030,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)
|
|
@@ -3053,11 +3046,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)
|
|
@@ -3074,10 +3067,6 @@ if test x$enable_mlr = xyes -a "$starpu_windows" != "yes" ; then
|
|
|
install_min_dgels=no
|
|
|
support_mlr=no
|
|
|
else
|
|
|
- if test ! -d $PWD/min-dgels; then
|
|
|
- cp -r $srcdir/min-dgels $PWD/
|
|
|
- chmod +rwX -R $PWD/min-dgels
|
|
|
- fi
|
|
|
AC_MSG_RESULT(yes)
|
|
|
DGELS_LIBS="-Wl,--start-group $STARPU_BUILD_DIR/min-dgels/build/minlibblas.a $STARPU_BUILD_DIR/min-dgels/build/minlibdgels.a $STARPU_BUILD_DIR/min-dgels/build/minlibf2c.a -Wl,--end-group"
|
|
|
AC_DEFINE(STARPU_MLR_MODEL, [1], [use user defined library])
|
|
@@ -3315,9 +3304,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
|
|
@@ -3338,18 +3327,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}
|
|
@@ -3366,7 +3355,7 @@ then
|
|
|
unset ac_cv_lib_dlb_DLB_Init
|
|
|
fi
|
|
|
done
|
|
|
-
|
|
|
+
|
|
|
SAVED_CPPFLAGS="${CPPFLAGS}"
|
|
|
SAVED_CFLAGS="${CFLAGS}"
|
|
|
SAVED_LDFLAGS="${LDFLAGS}"
|
|
@@ -3378,7 +3367,7 @@ then
|
|
|
CPPFLAGS="$SAVED_CPPFLAGS"
|
|
|
CFLAGS="$SAVED_CFLAGS"
|
|
|
LIBS="$SAVED_LIBS"
|
|
|
-
|
|
|
+
|
|
|
SAVED_CPPFLAGS="${CPPFLAGS}"
|
|
|
SAVED_CFLAGS="${CFLAGS}"
|
|
|
SAVED_LDFLAGS="${LDFLAGS}"
|
|
@@ -3394,13 +3383,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"
|
|
@@ -3430,8 +3419,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 #
|
|
|
##########################################
|
|
@@ -3523,7 +3510,7 @@ if test "x$enable_shared" = xno; then
|
|
|
# No .so, so application will unexpected have to know which -l to
|
|
|
# use. Give them in .pc file.
|
|
|
AC_DEFINE(STARPU_STATIC_ONLY, [1], [Only static compilation was made])
|
|
|
- STARPU_EXPORTED_LIBS="$LDFLAGS $LIBS $LIBSTARPU_LDFLAGS"
|
|
|
+ STARPU_EXPORTED_LIBS="$STARPU_EXPORTED_LIBS $LDFLAGS $LIBS $LIBSTARPU_LDFLAGS"
|
|
|
fi
|
|
|
AC_SUBST(STARPU_EXPORTED_LIBS)
|
|
|
|
|
@@ -3732,7 +3719,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
|