[petsc-users] Search order for BLAS
F R Foust
frfoust at yahoo.com
Sat Feb 26 19:08:30 CST 2011
No, my copy of MKL is somewhere else, not in /usr/local/lib. I understand that /usr/local/lib should probably be searched automatically. Thanks for the link advisor reference -- that's enormously helpful.
Looks like Satish just went ahead and changed the search order, so I guess it's moot now. Thanks much, guys.
FR Foust
--- On Sat, 2/26/11, Jed Brown <jed at 59A2.org> wrote:
On Sun, Feb 27, 2011 at 01:56, F R Foust <frfoust at yahoo.com> wrote:
I was trying to build petsc using MKL blas/lapack and had a small issue. I tried to point configure at the mkl directory with --with-blas-lapack-dir, but it found an installation of ATLAS already in /usr/local/lib and used that instead.
Is that where your MKL is? If not, then this should be considered a bug, but it's probably hard to fix because /usr/local/lib must be a system path which is searched automatically.
I poked around and found a fixed search order in BuildSystem/config/packages/BlasLapack.py (it tries ATLAS, AMD ACML, then MKL).
Is there any way to force a specific flavor of BLAS in a flag passed to configure (I mean, so I don't have to modify BlasLapack.py, which is what I did). Or alternatively, is there a way to force the issue by using --with-blas-lapack-lib, --with-blas-lib? I wasn't able to figure out the correct incantation to include all of the stuff MKL needs to link against.
You can find what is necessary here, then put it in --with-blas-lapack-lib.
http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110226/4f1e50f6/attachment.htm>
More information about the petsc-users
mailing list