The LAPACK forum has moved to https://github.com/Reference-LAPACK/lapack/discussions.

Unable to build Optimized Lapack on Windows with cmake

Post here if you want to report a bug to the LAPACK team

Unable to build Optimized Lapack on Windows with cmake

Postby gaturne » Fri Feb 27, 2015 1:18 am

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
gaturne
 
Posts: 2
Joined: Wed Feb 25, 2015 11:45 am

Re: Unable to build Optimized Lapack on Windows with cmake

Postby admin » Fri Feb 27, 2015 1:41 am

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.
admin
Site Admin
 
Posts: 616
Joined: Wed Dec 08, 2004 7:07 pm

Re: Unable to build Optimized Lapack on Windows with cmake

Postby gaturne » Fri Feb 27, 2015 2:47 pm

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
gaturne
 
Posts: 2
Joined: Wed Feb 25, 2015 11:45 am


Return to Bug report

Who is online

Users browsing this forum: No registered users and 1 guest