|
|
@ -1166,12 +1166,12 @@ if test $pac_blas_ok = no; then
|
|
|
|
# 64 bit
|
|
|
|
# 64 bit
|
|
|
|
if test $host_cpu = x86_64; then
|
|
|
|
if test $host_cpu = x86_64; then
|
|
|
|
AC_CHECK_LIB(mkl_gf_lp64, $sgemm,
|
|
|
|
AC_CHECK_LIB(mkl_gf_lp64, $sgemm,
|
|
|
|
[pac_blas_ok=yes;BLAS_LIBS="-lmkl_gf_lp64 -lmkl_sequential -lmkl_core -lpthread"],,
|
|
|
|
[pac_blas_ok=yes;BLAS_LIBS="-lmkl_gf_lp64 -lmkl_sequential -lmkl_core -lpthread $BLAS_LIBDIR"],,
|
|
|
|
[-lmkl_gf_lp64 -lmkl_sequential -lmkl_core -lpthread])
|
|
|
|
[-lmkl_gf_lp64 -lmkl_sequential -lmkl_core -lpthread])
|
|
|
|
# 32 bit
|
|
|
|
# 32 bit
|
|
|
|
elif test $host_cpu = i686; then
|
|
|
|
elif test $host_cpu = i686; then
|
|
|
|
AC_CHECK_LIB(mkl_gf, $sgemm,
|
|
|
|
AC_CHECK_LIB(mkl_gf, $sgemm,
|
|
|
|
[pac_blas_ok=yes;BLAS_LIBS="-lmkl_gf -lmkl_sequential -lmkl_core -lpthread"],,
|
|
|
|
[pac_blas_ok=yes;BLAS_LIBS="-lmkl_gf -lmkl_sequential -lmkl_core -lpthread $BLAS_LIBDIR"],,
|
|
|
|
[-lmkl_gf -lmkl_sequential -lmkl_core -lpthread])
|
|
|
|
[-lmkl_gf -lmkl_sequential -lmkl_core -lpthread])
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
# MKL for other compilers (Intel, PGI, ...?)
|
|
|
|
# MKL for other compilers (Intel, PGI, ...?)
|
|
|
@ -1179,26 +1179,26 @@ if test $pac_blas_ok = no; then
|
|
|
|
# 64-bit
|
|
|
|
# 64-bit
|
|
|
|
if test $host_cpu = x86_64; then
|
|
|
|
if test $host_cpu = x86_64; then
|
|
|
|
AC_CHECK_LIB(mkl_intel_lp64, $sgemm,
|
|
|
|
AC_CHECK_LIB(mkl_intel_lp64, $sgemm,
|
|
|
|
[pac_blas_ok=yes;BLAS_LIBS="-lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lpthread"],,
|
|
|
|
[pac_blas_ok=yes;BLAS_LIBS="-lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lpthread $BLAS_LIBDIR"],,
|
|
|
|
[-lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lpthread])
|
|
|
|
[-lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lpthread])
|
|
|
|
# 32-bit
|
|
|
|
# 32-bit
|
|
|
|
elif test $host_cpu = i686; then
|
|
|
|
elif test $host_cpu = i686; then
|
|
|
|
AC_CHECK_LIB(mkl_intel, $sgemm,
|
|
|
|
AC_CHECK_LIB(mkl_intel, $sgemm,
|
|
|
|
[pac_blas_ok=yes;BLAS_LIBS="-lmkl_intel -lmkl_sequential -lmkl_core -lpthread"],,
|
|
|
|
[pac_blas_ok=yes;BLAS_LIBS="-lmkl_intel -lmkl_sequential -lmkl_core -lpthread $BLAS_LIBDIR"],,
|
|
|
|
[-lmkl_intel -lmkl_sequential -lmkl_core -lpthread])
|
|
|
|
[-lmkl_intel -lmkl_sequential -lmkl_core -lpthread])
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
# Old versions of MKL
|
|
|
|
# Old versions of MKL
|
|
|
|
if test $pac_blas_ok = no; then
|
|
|
|
if test $pac_blas_ok = no; then
|
|
|
|
AC_CHECK_LIB(mkl, $sgemm, [pac_blas_ok=yes;BLAS_LIBS="-lmkl -lguide -lpthread"],,[-lguide -lpthread])
|
|
|
|
AC_CHECK_LIB(mkl, $sgemm, [pac_blas_ok=yes;BLAS_LIBS="-lmkl -lguide -lpthread $BLAS_LIBDIR"],,[-lguide -lpthread])
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# BLAS in Apple vecLib library?
|
|
|
|
# BLAS in Apple vecLib library?
|
|
|
|
if test $pac_blas_ok = no; then
|
|
|
|
if test $pac_blas_ok = no; then
|
|
|
|
save_LIBS="$LIBS"; LIBS="-framework vecLib $LIBS"
|
|
|
|
save_LIBS="$LIBS"; LIBS="-framework vecLib $LIBS"
|
|
|
|
AC_MSG_CHECKING([for $sgemm in -framework vecLib])
|
|
|
|
AC_MSG_CHECKING([for $sgemm in -framework vecLib])
|
|
|
|
AC_TRY_LINK_FUNC($sgemm, [pac_blas_ok=yes;BLAS_LIBS="-framework vecLib"])
|
|
|
|
AC_TRY_LINK_FUNC($sgemm, [pac_blas_ok=yes;BLAS_LIBS="-framework vecLib $BLAS_LIBDIR"])
|
|
|
|
AC_MSG_RESULT($pac_blas_ok)
|
|
|
|
AC_MSG_RESULT($pac_blas_ok)
|
|
|
|
LIBS="$save_LIBS"
|
|
|
|
LIBS="$save_LIBS"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|