← Back to team overview

dolfin team mailing list archive

Re: FindLAPACK

 

On Tue, Oct 23, 2012 at 9:14 AM, Johannes Ring <johannr@xxxxxxxxx> wrote:
> On Tue, Oct 23, 2012 at 9:00 AM, Anders Logg <logg@xxxxxxxxx> wrote:
>> On Tue, Oct 23, 2012 at 08:59:36AM +0200, Johannes Ring wrote:
>>> On Tue, Oct 23, 2012 at 8:27 AM, Anders Logg <logg@xxxxxxxxx> wrote:
>>> > On Mon, Oct 22, 2012 at 10:44:17PM -0700, Anders Logg wrote:
>>> >> I'm having trouble getting DOLFIN configure to recognize the LAPACK
>>> >> built as part of my ATLAS install. Exactly what is the CMake module
>>> >> FindLAPACK module looking for?
>>> >>
>>> >> Is the LAPACK installation by ATLAS (using --with-netlib-lapack-tarfile) not
>>> >> sufficient?
>>> >
>>> > The problem seems to be that CMAKE_LIBRARY_PATH is not used in
>>> > FindLAPACK.cmake. It's instead using the variable _libdir.
>>> >
>>> > I haven't been hacking CMake for quite some time. Can someone
>>> > enlighten me on whether anything is broken in FindLAPACK.cmake?
>>>
>>> I'm also having trouble with DOLFIN and my selfbuilt ATLAS/LAPACK. I
>>> will let you know if I found something out.
>>
>> Great, thanks.
>
> This worked for me:
>
>   -D BLA_VENDOR:STRING=ATLAS \
>   -D LAPACK_DIR:PATH=${ATLAS_DIR} \
>   -D LAPACK_LIBRARIES:FILEPATH=${ATLAS_DIR}/lib/liblapack.a \
>   -D BLAS_DIR:PATH=${ATLAS_DIR} \
>   -D BLAS_LIBRARIES:FILEPATH="${ATLAS_DIR})/lib/libf77blas.a;${ATLAS_DIR})/lib/libcblas.a;${ATLAS_DIR})/lib/libatlas.a"

There was a typo there, but this also works for me:

      -D LAPACK_LIBRARIES:FILEPATH=${ATLAS_DIR}/lib/liblapack.a \
      -D BLAS_LIBRARIES:FILEPATH=${ATLAS_DIR}/lib/libatlas.a

Johannes


Follow ups

References