[Omp] Need help interpreting section 2.1.3.1 of the Fortran spec

Hoeflinger, Jay P jay.p.hoeflinger at intel.com
Thu Dec 9 09:57:55 PST 2004


I think this is correct, but I think the thing we should consider
changing,  is the wording about the line being treated as a comment and
being ignored.  It may actually be some other kind of non-OpenMP
directive, in which case we would want it to not be ignored, but rather
processed appropriately by something else.

We should probably say that it is "ignored by OpenMP", or something
similar.

Jay

-----Original Message-----
From: Omp-bounces at openmp.org [mailto:Omp-bounces at openmp.org] On Behalf
Of Marina Kraeva
Sent: Thursday, December 09, 2004 11:48 AM
To: B.Mohr at fz-juelich.de
Cc: omp at openmp.org; helenhyw at ca.ibm.com
Subject: Re: [Omp] Need help interpreting section 2.1.3.1 of the Fortran
spec

Bernd and others,

In my opinion the criteria for the conditional compilation are not met, 
so the line should be treated as a comment and ignored according to API
2.0.

Best wishes,
Marina.

Bernd Mohr wrote:
> Dieter,
> what does your last "false" (after =>) mean?
> a) the "If these ..." sentence is false and the C$ ABC line is not a
comment
> b) the C$ABC line is not a conditional compilation line and therefore
a comment
> ?? ;-)
> 
> Bernd
> 
> On Thu, Dec 09, 2004 at 05:13:46PM +0100, Dieter an Mey wrote:
> 
>>C$ABC  garbage
>>
>>"The sentinel must start in column 1 and appear as a single word with
no 
>>intervening white space."
>>true
>>
>>"Fortran fixed form line length, white space, continuation, and column

>>rules apply to the line."
>>true
>>
>>"After the sentinel is replaced with two spaces, initial lines must
have 
>>a space or zero in column 6 and only white space and numbers in
columns 
>>1 through 5."
>>false
>>
>>"After the sentinel is replaced with two spaces, continuation lines
must 
>>have a character other than a space or zero in column 6 and only white

>>space in columns 1 through 5."
>>false
>>
>>=>
>>"If these criteria are not met, the line is treated as a comment and 
>>ignored."
>>false
>>
>>This is my understanding from the wording in the 2.5 Draft of the
spec.
>>
>>best regards
>>Dieter
>>
>>Shah, Sanjiv wrote:
>>
>>
>>>Hi Bernd,
>>>I don't want to get in the middle of an argument but I believe you
are
>>>correct.  This line should be ignored.
>>>Sanjiv 
>>>
>>>
>>>--
>>>Sanjiv, 217-403-4244
>>>
>>>-----Original Message-----
>>>From: Omp-bounces at openmp.org [mailto:Omp-bounces at openmp.org] On
Behalf
>>>Of Bernd Mohr
>>>Sent: Thursday, December 09, 2004 2:30 AM
>>>To: omp at openmp.org
>>>Cc: helenhyw at ca.ibm.com
>>>Subject: [Omp] Need help interpreting section 2.1.3.1 of the Fortran
>>>spec
>>>
>>>Hi all,
>>>
>>>I am currently in discussion with the IBM compiler folks about the
>>>correct
>>>compilation of the following Fortran fixed source OpenMP program:
>>>
>>>-------------------------------------------------------- 
>>>       program iii 
>>>C$ABC  garbage 
>>>       end 
>>>-------------------------------------------------------- 
>>>
>>>When I read section 2.1.3.1 of the Fortran V2.0 spec (especially the
>>>last
>>>sentence which states "If these criteria are not met, the line is
>>>treated
>>>as a comment and ignored.") I come to the conclusion, that if I
compile
>>>this simple program above in OpenMP compilation mode, the second line
is
>>>a
>>>comment (as it does not fullfils the criteria listed for an initial
line
>>>and then, because of the last sentence, it is a comment and ignored).
>>>
>>>The IBM compiler treats the second line as an OpenMP conditional
>>>compilation line (and then I get of course compilation errors),
because
>>>they claim (if I understand their arguments right) that the last
>>>sentence
>>>"If these criteria are not met, the line is treated as a comment and
>>>ignored."
>>>only applies to continuation lines.
>>>
>>>Who is right? ;-)
>>>
>>>Thanks
>>>Bernd
>>>
>>
>>
>>-- 
>>--------------------------------------------------------------------
>>Dieter an Mey
>>High Performance Computing               Hochleistungsrechnen
>>RWTH Aachen University                   Rechen- und Kommunikations-
>>Center for Computing and Communication   zentrum der RWTH Aachen
>>phone: ++49-(0)241-80-24377              Seffenter Weg 23
>>fax:   ++49-(0)241-80-22134              52074 Aachen, Germany
>>email: anmey at rz.rwth-aachen.de
>>--------------------------------------------------------------------
>>
> 
> 

_______________________________________________
Omp mailing list
Omp at openmp.org
http://openmp.org/mailman/listinfo/omp_openmp.org




More information about the Omp mailing list