dorsal team mailing list archive
-
dorsal team
-
Mailing list archive
-
Message #00353
Re: PETSc found, but not found
-
To:
Anders Logg <logg@xxxxxxxxx>
-
From:
"Garth N. Wells" <gnw20@xxxxxxxxx>
-
Date:
Wed, 01 Sep 2010 13:03:03 +0100
-
Cc:
dorsal@xxxxxxxxxxxxxxxxxxx
-
In-reply-to:
<20100901115242.GP4047@olorin>
-
User-agent:
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6
On 01/09/10 12:52, Anders Logg wrote:
> On Wed, Sep 01, 2010 at 01:42:14PM +0200, Johannes Ring wrote:
>> On Wed, Sep 1, 2010 at 1:30 PM, Anders Logg <logg@xxxxxxxxx> wrote:
>>> On Wed, Sep 01, 2010 at 12:22:27PM +0100, Garth N. Wells wrote:
>>>>
>>>>
ound. This was changed a few
>>>>>>> days back.
>>>>>>
>>>>>> Did we have CXX=mpic++ or similar in the Dorsal platform file for Snow Leopard?
>>>>>
>>>>> We used to have this in dolfin.package:
>>>>>
>>>>> package_specific_setup () {
>>>>> export CC=mpicc
>>>>> export CXX=mpic++
>>>>> }
>>>>>
>>>>> Can we add it back? SLEPc works again for me on OS X when I add it.
>>>>>
>>>>
>>>> Best would be to get the MPI flags right in dolfin/CMakeLists.txt. There
>>>> are a few FIXME related the link flags.
>>>>
>>>> If we use the MPI wrappers, we should somehow test for this and then not
>>>> add the MPI compiler flags in dolfin/CMakeLists.txt.
>>>
>>> I don't understand. That seems like a secondary issue, that we would
>>> add flags we don't really need if we are using the MPI wrappers.
>>>
>>> Does anyone know which extra flag is needed to get things to run?
>>
>> I guess that these should do it: -lmpi -lopen-rte -lopen-pal
>
> Is there a simple way to find those flags?
>
>> The problem (in my case with PETSc) is that these are missing from
>> PETSC_LIBRARIES so the test program in FindPETSc.cmake fails.
>
> Why does PETSc test fail? The PETSc test is run before the SLEPc test
> so any flags added while running the SLEPc test shouldn't affect
> PETSc.
>
> Or we could add the flags to PETSC_LIBRARIES?
>
We should probably add the MPI flags before testing and configuring the
dependencies.
The Trilinos build system doesn't bother with adding MPI flags - it
relies the on the user to specify the MPI compiler wrappers. Makes the
build system straightforward, but not very user-friendly.
Garth
> --
> Anders
References
-
Re: PETSc found, but not found
From: Anders Logg, 2010-09-01
-
Re: PETSc found, but not found
From: Johannes Ring, 2010-09-01
-
Re: PETSc found, but not found
From: Anders Logg, 2010-09-01
-
Re: PETSc found, but not found
From: Anders Logg, 2010-09-01
-
Re: PETSc found, but not found
From: Johannes Ring, 2010-09-01
-
Re: PETSc found, but not found
From: Anders Logg, 2010-09-01
-
Re: PETSc found, but not found
From: Anders Logg, 2010-09-01
-
Re: PETSc found, but not found
From: Garth N. Wells, 2010-09-01
-
Re: PETSc found, but not found
From: Anders Logg, 2010-09-01
-
Re: PETSc found, but not found
From: Johannes Ring, 2010-09-01
-
Re: PETSc found, but not found
From: Anders Logg, 2010-09-01