dorsal team mailing list archive
-
dorsal team
-
Mailing list archive
-
Message #00311
Re: OSX and Fortran
On Thu, Aug 26, 2010 at 12:12 PM, Andre Massing <massing@xxxxxxxxx> wrote:
>
> 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?
You can try to set MPI_COMPILER before running cmake. From the
FindMPI.cmake file:
# If CMake initially finds a different MPI than was intended, and you
# want to use the MPI compiler auto-detection for a different MPI
# implementation, set MPI_COMPILER to the MPI compiler driver you want
# to use (e.g., mpicxx) and then set MPI_LIBRARY to the string
# MPI_LIBRARY-NOTFOUND. When you re-configure, auto-detection of MPI
# will run again with the newly-specified MPI_COMPILER.
Johannes
> --
> 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
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dorsal
> Post to : dorsal@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dorsal
> More help : https://help.launchpad.net/ListHelp
>
References