Revision | d63ed4276626f1e72644ee46d2999dbdee57554b (tree) |
---|---|
Time | 2013-08-24 11:00:42 |
Author | Katsuhiko Nishimra <ktns.87@gmai...> |
Commiter | Katsuhiko Nishimra |
Define MKL_ILP64 in config.h. #28588
git-svn-id: https://svn.sourceforge.jp/svnroot/molds/branches/automake@1507 1136aad2-a195-0410-b898-f5ea1d11b9d8
@@ -159,6 +159,9 @@ AC_DEFINE_UNQUOTED([SIZEOF_BLASINT], [($molds_cv_sizeof_blasint)], [The size of | ||
159 | 159 | |
160 | 160 | dnl Size of BLAS int |
161 | 161 | AC_DEFINE([SIZEOF_LAPACKINT], [SIZEOF_BLASINT], [The size of integer variables used by LAPACK library]) |
162 | +AS_IF([test x$molds_cv_sizeof_blasint = x64], | |
163 | + [AC_DEFINE([MKL_ILP64], [], | |
164 | + [Whether ILP64 version of Intel Math Kernel Library])]) | |
162 | 165 | |
163 | 166 | dnl Boost |
164 | 167 | AX_BOOST_BASE([1.46],,[AC_MSG_FAILURE([boost library is too old!])]) |
@@ -34,9 +34,6 @@ | ||
34 | 34 | #include"Blas.h" |
35 | 35 | |
36 | 36 | #ifdef HAVE_MKL_H |
37 | -#if SIZEOF_BLASINT == 64 | |
38 | -#define MKL_ILP64 | |
39 | -#endif | |
40 | 37 | #include"mkl.h" |
41 | 38 | #elif HAVE_CBLAS_H |
42 | 39 | #include"cblas.h" |
@@ -34,9 +34,6 @@ | ||
34 | 34 | #include"Lapack.h" |
35 | 35 | |
36 | 36 | #if defined(HAVE_MKL_H) |
37 | -#if SIZEOF_LAPACKINT == 64 | |
38 | -#define MKL_ILP64 | |
39 | -#endif | |
40 | 37 | #include"mkl.h" |
41 | 38 | #elif defined(HAVE_LAPACKE_H) |
42 | 39 | #if SIZEOF_LAPACKINT==64 |