[Dune] BLAS on Mac OS X
patrick.henning at uni-muenster.de
patrick.henning at uni-muenster.de
Wed Nov 10 14:47:18 CET 2010
Hi Steffen,
thank you very much!!!!
I'm so stupid. Now I found the error. It was not that I did not install
fortran (I already used it a lot of times), the problem was in my
config.opts, where I tried to use the command
F77=gfrortran-4.2
That is possible under Linux, where this binary is created, but it is not
possible under Mac where is only the binary 'gfrortran'. That is why the
fortran compiler was found for the external libs such as ALBERTA, but not
found for the dune modules.
I really hope BLAS works now. :)
Best regards,
Patrick
> Hi Patrick,
>
> the options you should set in your opts file are --with-blas=blas and
> --with-lapack=lapack (actually,
> it should even work without them).
>
> But the real problem is that you don't have Fortran installed. configure
> tries to figure out
> the Fortran name-mangling scheme for function names by compiling a number
> of test programs.
> But without a Fortran compiler, all compilations will fail, causing the
> name-mangling of the BLAS
> functions to fail in turn (the resulting BLAS test tries to find a symbol
> called "unknown" in the BLAS
> library).
>
> To cut a long story short, you need Fortran. But judging from you
> environment, you already have MacPorts
> installed (in /opt/local), which can build gfortran for you as part of gcc
> - you just have to pick your version
> (anything between gcc 4.2 and gcc 4.5 should work, the packages are called
> gcc43 etc., the resulting
> binaries gcc-mp-4.x) - and bring some coffee.
>
> Steffen
>
> Am 10.11.2010 um 13:54 schrieb Patrick Henning:
>
>> Hello Steffen,
>>
>> I attached the config.log to this mail (its from an own module but the
>> problem is identical for other modules).
>>
>> Patrick
>>
>> <config.log>
>> Am 10.11.2010 um 13:36 schrieb Steffen Müthing:
>>
>>> Hello Patrick,
>>>
>>> BLAS really should work out of the box on OS X 10.6. Could you perhaps
>>> post
>>> your config.log file?
>>>
>>> Steffen
>>>
>>> Am 10.11.2010 um 12:25 schrieb patrick.henning at uni-muenster.de:
>>>
>>>> Hello all!
>>>>
>>>> Is there someone who managed to configure DUNE with BLAS on Mac OS X
>>>> 10.6?
>>>> I have real trouble with this. There is already a BLAS installation on
>>>> Mac
>>>> OS X, but it seems that I can not access it with standard options in
>>>> my
>>>> config.opts. I tried the preinstalled frameworks 'vecLib'
>>>> (--with-blas='-framework vecLib') and Accelerate
>>>> (--with-blas=Accelerate).
>>>> It did not work so I additionally installed 'atlas'
>>>> (--with-blas=atlas)
>>>> but again no effect.
>>>> Strange thing: when I installed ALBERTA (which requires BLAS) the
>>>> option
>>>> '--with-blas=Accelerate' worked out fine... So this is really
>>>> confusing
>>>> and I wonder if anyone managed to succesfully use BLAS on a Mac.
>>>>
>>>> Best regards,
>>>> Patrick
>>>>
>>>>
>>>> _______________________________________________
>>>> Dune mailing list
>>>> Dune at dune-project.org
>>>> http://lists.dune-project.org/mailman/listinfo/dune
>>>
>>> Steffen Müthing
>>> Universität Stuttgart
>>> Institut für Parallele und Verteilte Systeme
>>> Universitätsstr. 38
>>> 70569 Stuttgart
>>> Tel: +49 711 7816 429
>>> Fax: +49 711 7816 340
>>> Email: steffen.muething at ipvs.uni-stuttgart.de
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Dune mailing list
>>> Dune at dune-project.org
>>> http://lists.dune-project.org/mailman/listinfo/dune
>>
>
> Steffen Müthing
> Universität Stuttgart
> Institut für Parallele und Verteilte Systeme
> Universitätsstr. 38
> 70569 Stuttgart
> Tel: +49 711 7816 429
> Fax: +49 711 7816 340
> Email: steffen.muething at ipvs.uni-stuttgart.de
>
>
>
>
>
More information about the Dune
mailing list