← Back to team overview

dorsal team mailing list archive

Re: OSX and Fortran

 

I have already tried out building dolfin with dorsal, petsc (including mumps, hypre etc., not petsccore) and openmpi from the macports
and it went through. The only principal obstacle I encountered was the fact that macports installs the compilerwrappers with an "open" prefix,
resulting into openmpic++, openmpif90 etc. So I did a dirty symlink trick, which we probably want to avoid. So is there a way telling the name of the
preferred compilerwrappers , via environment variables or such like to the new shiny cmake buildsystem?

--
Andre
 


Den 26. aug. 2010 kl. 10.45 skrev Harish Narayanan:

> On 8/26/10 2:11 PM, Harish Narayanan wrote:
>> On 8/26/10 2:01 PM, Garth N. Wells wrote:
>>> We should think again about using MacPorts MPI on OSX. If we use the
>>> MacPorts MPI, I expect that
>>> 
>>> - We can build PETSc with MUMPS (and any other Fortran packages)
>>> - We can use CMake FindFoo.cmake for BLAS and LAPACK
>>> - We won't have to worry about defects of older compilers
>> 
>> I thought about this after it came up the last time, then realised I am
>> not sure how to do this. MacPorts creates gfoo-mp-4.4 compilers for
>> various languages, but its OpenMPI points to the system compilers
>> (gfoo-4.2).
>> 
>> MacPorts has a 'variants' option while installing packages to fine tune
>> things,
>> 
>> openmpi has the variants:
>>   g95: build mpif77 and mpif90 using g95
>>     * conflicts with gcc42 gcc43 gcc44 gcc45
>>   gcc42: build mpif77 and mpif90 using gcc42
>>     * conflicts with g95 gcc43 gcc44 gcc45
>>   gcc43: build mpif77 and mpif90 using gcc43
>>     * conflicts with g95 gcc42 gcc44 gcc45
>> [+]gcc44: build mpif77 and mpif90 using gcc44
>>     * conflicts with g95 gcc42 gcc43 gcc45
>>   gcc45: build mpif77 and mpif90 using gcc45
>>     * conflicts with g95 gcc42 gcc43 gcc44
>>   progressthreads: enable threads asynchronous communication progress
>>   threads: enable threads for MPI applications
>> 
>> though I am not sure how to read its output for OpenMPI to make it do
>> what you're asking for (i.e. point to a more recent MacPorts gfoo).
> 
> Forget what I said, I think I was doing something stupid and confusing
> MacPorts' mpifoo with the system mpifoo. I will try to make this change
> and report how it goes.
> 
> Harish
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~dorsal
> Post to     : dorsal@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dorsal
> More help   : https://help.launchpad.net/ListHelp

--
André Massing       				email: massing@xxxxxxxxx
Ph.D. student					mobile: +47 469 57 401
Simula Research Laboratory
NO-1367 Fornebu, Norway




Follow ups

References