Page 1 of 1

Unable to build Optimized Lapack on Windows with cmake

PostPosted: Fri Feb 27, 2015 1:18 am
by gaturne
I am trying to build lapacke and lapack using Cmake. It builds without optimization but not with. I am not familiar enough with cmake to trace the problem. The error message is:
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: cannot find -lFALSE
collect2.exe: error: ld returned 1 exit status
SRC\CMakeFiles\lapack.dir\build.make:14341: recipe for target 'bin/liblapack.dll' failed
mingw32-make.exe[2]: *** [bin/liblapack.dll] Error 1
CMakeFiles\Makefile2:140: recipe for target 'SRC/CMakeFiles/lapack.dir/all' failed
mingw32-make.exe[1]: *** [SRC/CMakeFiles/lapack.dir/all] Error 2

I have turned off BUILD_COMPLEX, BUILD_COMPLEX16, BUILD_TESTING, USE_XBLAS. The rest are turned on. I have tried various combinations but it fails when USE_OPTIMIZED_LAPACK is turned on. Is this a known problem or am I doing something dumb?

Glenn Turner

Re: Unable to build Optimized Lapack on Windows with cmake

PostPosted: Fri Feb 27, 2015 1:41 am
by admin
You need to have an optimized LAPACK library installed on your machine (Intel MKL, ACML, atlas, goto BLAS or such).
When you build with the CMAKE is looking for an optimized LAPACK and if it cannot find it, it returns "False"
The LAPACK library is the Reference LAPACK. It is shipped with the reference BLAS.
Most of the LAPACK performance comes form the BLAS library. I would suggest to get an Optimized BLAS library. That should be enough.

Re: Unable to build Optimized Lapack on Windows with cmake

PostPosted: Fri Feb 27, 2015 2:47 pm
by gaturne
Thank you.
I was really trying to build optimized versions of BLAS, LaPack, and LaPacke libraries on Windows. I will try ATLAS. Those I downloaded from University of Tennessee have abysmal performance on my machine. (Compared to hand written gaussian elimination, not so on the university CentOS server, LaPack is much faster.)
I will see what I can get from ATLAS.

Just as a comment: the CMAKE seems very fragile. Some changes cause build fails where they should be unrealated. I am hoping to find a better method to build on Windows.

Thanks again,
Glenn Turner