修訂 | e7077553e68b0421a20684f9565629ee54b95502 (tree) |
---|---|
時間 | 2014-01-17 17:19:38 |
作者 | Katsuhiko Nishimra <ktns.87@gmai...> |
Commiter | Katsuhiko Nishimra |
Generate files by autoreconf 2.69 with automake 1.11.6. #28588
git-svn-id: https://svn.sourceforge.jp/svnroot/molds/branches/automake@1656 1136aad2-a195-0410-b898-f5ea1d11b9d8
@@ -742,6 +742,7 @@ enable_release | ||
742 | 742 | enable_dependency_tracking |
743 | 743 | with_openblas |
744 | 744 | with_blas |
745 | +with_mkl | |
745 | 746 | with_lapack |
746 | 747 | with_boost |
747 | 748 | with_boost_libdir |
@@ -1392,6 +1393,9 @@ Optional Packages: | ||
1392 | 1393 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1393 | 1394 | --with-openblas=DIR Use OpenBLAS library. |
1394 | 1395 | --with-blas=<lib> use BLAS library <lib> |
1396 | + --with-mkl=<lib> use Intel MKL. you can specify | |
1397 | + --with-mkl=sequential/parallel to select | |
1398 | + parallelism. Default is sequential. | |
1395 | 1399 | --with-lapack=<lib> use LAPACK library <lib> |
1396 | 1400 | --with-boost[=ARG] use Boost library from a standard location |
1397 | 1401 | (ARG=yes), from the specified location (ARG=<path>), |
@@ -5964,6 +5968,20 @@ case $with_blas in | ||
5964 | 5968 | *) BLAS_LIBS="-l$with_blas" ;; |
5965 | 5969 | esac |
5966 | 5970 | |
5971 | + | |
5972 | +# Check whether --with-mkl was given. | |
5973 | +if test "${with_mkl+set}" = set; then : | |
5974 | + withval=$with_mkl; | |
5975 | +fi | |
5976 | + | |
5977 | +case $with_mkl_thread in | |
5978 | + yes | sequential | "") ax_blas_mkl=-lmkl_sequential ;; | |
5979 | + parallel | thread) ax_blas_mkl=-lmkl_intel_thread ;; | |
5980 | + no) ax_blas_mkl=no ;; | |
5981 | + -* | */* | *.a | *.so | *.so.* | *.o) ax_blas_mkl="$with_mkl_thread" ;; | |
5982 | + *) ax_blas_mkl="-l$with_blas" ;; | |
5983 | +esac | |
5984 | + | |
5967 | 5985 | # Get fortran linker names of BLAS functions to check for. |
5968 | 5986 | ac_ext=f |
5969 | 5987 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
@@ -6094,7 +6112,7 @@ $as_echo "$ax_blas_ok" >&6; } | ||
6094 | 6112 | fi |
6095 | 6113 | |
6096 | 6114 | # BLAS in Intel MKL library? |
6097 | -if test $ax_blas_ok = no; then | |
6115 | +if test $ax_blas_ok = no && test x$ax_blas_mkl != xno ; then | |
6098 | 6116 | # MKL for gfortran |
6099 | 6117 | if test x"$ac_cv_fc_compiler_gnu" = xyes; then |
6100 | 6118 | # 64 bit |
@@ -6106,7 +6124,7 @@ if eval \${$as_ac_Lib+:} false; then : | ||
6106 | 6124 | $as_echo_n "(cached) " >&6 |
6107 | 6125 | else |
6108 | 6126 | ac_check_lib_save_LIBS=$LIBS |
6109 | -LIBS="-lmkl_gf_ilp64 -lmkl_gf_ilp64 -lmkl_sequential -lmkl_core -lpthread $LIBS" | |
6127 | +LIBS="-lmkl_gf_ilp64 -lmkl_gf_ilp64 $ax_blas_mkl -lmkl_core -lpthread $LIBS" | |
6110 | 6128 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6111 | 6129 | /* end confdefs.h. */ |
6112 | 6130 |
@@ -6146,7 +6164,7 @@ eval ac_res=\$$as_ac_Lib | ||
6146 | 6164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
6147 | 6165 | $as_echo "$ac_res" >&6; } |
6148 | 6166 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : |
6149 | - ax_blas_ok=yes;BLAS_LIBS="-lmkl_gf_ilp64 -lmkl_sequential -lmkl_core -lpthread" | |
6167 | + ax_blas_ok=yes;BLAS_LIBS="-lmkl_gf_ilp64 $ax_blas_mkl -lmkl_core -lpthread" | |
6150 | 6168 | fi |
6151 | 6169 | |
6152 | 6170 | # 32 bit |
@@ -6158,7 +6176,7 @@ if eval \${$as_ac_Lib+:} false; then : | ||
6158 | 6176 | $as_echo_n "(cached) " >&6 |
6159 | 6177 | else |
6160 | 6178 | ac_check_lib_save_LIBS=$LIBS |
6161 | -LIBS="-lmkl_gf -lmkl_gf -lmkl_sequential -lmkl_core -lpthread $LIBS" | |
6179 | +LIBS="-lmkl_gf -lmkl_gf $ax_blas_mkl -lmkl_core -lpthread $LIBS" | |
6162 | 6180 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6163 | 6181 | /* end confdefs.h. */ |
6164 | 6182 |
@@ -6198,7 +6216,7 @@ eval ac_res=\$$as_ac_Lib | ||
6198 | 6216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
6199 | 6217 | $as_echo "$ac_res" >&6; } |
6200 | 6218 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : |
6201 | - ax_blas_ok=yes;BLAS_LIBS="-lmkl_gf -lmkl_sequential -lmkl_core -lpthread" | |
6219 | + ax_blas_ok=yes;BLAS_LIBS="-lmkl_gf $ax_blas_mkl -lmkl_core -lpthread" | |
6202 | 6220 | fi |
6203 | 6221 | |
6204 | 6222 | fi |
@@ -6213,7 +6231,7 @@ if eval \${$as_ac_Lib+:} false; then : | ||
6213 | 6231 | $as_echo_n "(cached) " >&6 |
6214 | 6232 | else |
6215 | 6233 | ac_check_lib_save_LIBS=$LIBS |
6216 | -LIBS="-lmkl_intel_ilp64 -lmkl_intel_ilp64 -lmkl_sequential -lmkl_core -lpthread $LIBS" | |
6234 | +LIBS="-lmkl_intel_ilp64 -lmkl_intel_ilp64 $ax_blas_mkl -lmkl_core -lpthread $LIBS" | |
6217 | 6235 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6218 | 6236 | /* end confdefs.h. */ |
6219 | 6237 |
@@ -6253,7 +6271,7 @@ eval ac_res=\$$as_ac_Lib | ||
6253 | 6271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
6254 | 6272 | $as_echo "$ac_res" >&6; } |
6255 | 6273 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : |
6256 | - ax_blas_ok=yes;BLAS_LIBS="-lmkl_intel_ilp64 -lmkl_sequential -lmkl_core -lpthread" | |
6274 | + ax_blas_ok=yes;BLAS_LIBS="-lmkl_intel_ilp64 $ax_blas_mkl -lmkl_core -lpthread" | |
6257 | 6275 | fi |
6258 | 6276 | |
6259 | 6277 | # 32-bit |
@@ -6265,7 +6283,7 @@ if eval \${$as_ac_Lib+:} false; then : | ||
6265 | 6283 | $as_echo_n "(cached) " >&6 |
6266 | 6284 | else |
6267 | 6285 | ac_check_lib_save_LIBS=$LIBS |
6268 | -LIBS="-lmkl_intel -lmkl_intel -lmkl_sequential -lmkl_core -lpthread $LIBS" | |
6286 | +LIBS="-lmkl_intel -lmkl_intel $ax_blas_mkl -lmkl_core -lpthread $LIBS" | |
6269 | 6287 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6270 | 6288 | /* end confdefs.h. */ |
6271 | 6289 |
@@ -6305,14 +6323,14 @@ eval ac_res=\$$as_ac_Lib | ||
6305 | 6323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
6306 | 6324 | $as_echo "$ac_res" >&6; } |
6307 | 6325 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : |
6308 | - ax_blas_ok=yes;BLAS_LIBS="-lmkl_intel -lmkl_sequential -lmkl_core -lpthread" | |
6326 | + ax_blas_ok=yes;BLAS_LIBS="-lmkl_intel $ax_blas_mkl -lmkl_core -lpthread" | |
6309 | 6327 | fi |
6310 | 6328 | |
6311 | 6329 | fi |
6312 | 6330 | fi |
6313 | 6331 | fi |
6314 | 6332 | # Old versions of MKL |
6315 | -if test $ax_blas_ok = no; then | |
6333 | +if test $ax_blas_ok = no && test x$ax_blas_mkl != xno ; then | |
6316 | 6334 | as_ac_Lib=`$as_echo "ac_cv_lib_mkl_$sgemm" | $as_tr_sh` |
6317 | 6335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lmkl" >&5 |
6318 | 6336 | $as_echo_n "checking for $sgemm in -lmkl... " >&6; } |