[Nek5000-users] makenek, sun complier & mpi

nek5000-users at lists.mcs.anl.gov nek5000-users at lists.mcs.anl.gov
Thu Apr 22 08:05:54 CDT 2010


Frank,

it seems like my first hunch was correct.

[stefan at tetra ~]# mpif77 -showme ; echo $?
sunf95: Warning: Option -showme passed to ld, if ld is invoked, ignored otherwise
Usage: sunf95 [ options ] files.  Use 'sunf95 -flags' for details
0

The SUN compiler returns a ZERO exit code even if you use unknown compiler flags. That's really stupid! Let me think about a fix for that.

Stefan 


> 
> On Apr 21, 2010, at 4:36 PM, nek5000-users at lists.mcs.anl.gov wrote:
> 
>> On Wed, 2010-04-21 at 14:25 +0200, nek5000-users at lists.mcs.anl.gov
>> wrote:
>>> Ok I think what happens is the following:
>>> 
>>> We need to detect which compilers are used by the MPI-wrappers. Depending on the MPI implementation there are some flags (e.g. -showme / -show) you can use to figure that out.
>>> 
>>> MPICH doesn't know the flag -showme hence it is passed to the compiler (in your case sunf95).
>>> The sun compiler says this is an unknown flag and returns a ZERO exit code. 
>>> This is weird if not to say wrong because you would assume that the right exit code should be NON-ZERO in this case!
>>> 
>>> It looks like only the SUN compiler behaves wrong in this situation.
>>> Unfortunately I don't have access to machine with MPICH/SUN so I cannot test my hypothesis.
>> 
>> 
>>> 
>>> Stefan
>>> 
>>> 
>>> On Apr 21, 2010, at 2:00 PM, nek5000-users at lists.mcs.anl.gov wrote:
>>> 
>>>> What MPI implementation are you using?
>>>> 
>>>> Stefan
>>>> 
>>>> 
>>>> On Apr 21, 2010, at 1:58 PM, nek5000-users at lists.mcs.anl.gov wrote:
>>>> 
>>>>> Hello all,
>>>>> 
>>>>> I am seeing the following error message when I use an mpif77 and mpicc
>>>>> that use the Sun compilers.  Everything is fine if in makenek F77=sunf95
>>>>> and CC=suncc (and IFMPI="false"), or if using mpif77 and mpicc that use
>>>>> the Intel compilers.
>>>>> 
>>>>> Cheers,
>>>>> Frank
>>>>> 
>>>>> 
>>>>> sunf95: Warning: Option -showme passed to ld, if ld is invoked, ignored
>>>>> otherwise
>>>>> Usage: sunf95 [ options ] files.  Use 'sunf95 -flags' for details
>>>>> WARNING: Cannot detect compiler specfic flags
>>>>>   echo  - to promote REAL to 8 bytes
>>>>>   echo  - to invoke preprocessor first
>>>>> Please edit the makefile and specify the requested compiler flags in the
>>>>> P variable!
>>>>> 
>>>>> -- 
>>>>> Frank Herbert Muldoon, Ph.D. Mechanical Engineering
>>>>> Technische Universität Wien (Technical University of Vienna)
>>>>> Inst. f. Strömungsmechanik und Wärmeübertragung (Institute of Fluid
>>>>> Mechanics and Heat Transfer)
>>>>> Resselgasse 3
>>>>> 1040 Wien
>>>>> Tel: +4315880132232
>>>>> Fax: +4315880132299 
>>>>> Cell:+436765203470
>>>>> fmuldoo (skype)
>>>>> http://tetra.fluid.tuwien.ac.at/fmuldoo/public_html/webpage/frank-muldoon.html
>>>>> 
>>>>> _______________________________________________
>>>>> Nek5000-users mailing list
>>>>> Nek5000-users at lists.mcs.anl.gov
>>>>> https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users
>>>> 
>>>> _______________________________________________
>>>> Nek5000-users mailing list
>>>> Nek5000-users at lists.mcs.anl.gov
>>>> https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users
>>> 
>>> _______________________________________________
>>> Nek5000-users mailing list
>>> Nek5000-users at lists.mcs.anl.gov
>>> https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users
>> -- 
>> Frank Herbert Muldoon, Ph.D. Mechanical Engineering
>> Technische Universität Wien (Technical University of Vienna)
>> Inst. f. Strömungsmechanik und Wärmeübertragung (Institute of Fluid
>> Mechanics and Heat Transfer)
>> Resselgasse 3
>> 1040 Wien
>> Tel: +4315880132232
>> Fax: +4315880132299 
>> Cell:+436765203470
>> fmuldoo (skype)
>> http://tetra.fluid.tuwien.ac.at/fmuldoo/public_html/webpage/frank-muldoon.html
>> 
>> _______________________________________________
>> Nek5000-users mailing list
>> Nek5000-users at lists.mcs.anl.gov
>> https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users
> 
> _______________________________________________
> Nek5000-users mailing list
> Nek5000-users at lists.mcs.anl.gov
> https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/nek5000-users/attachments/20100422/1ea3a44a/attachment.html>


More information about the Nek5000-users mailing list