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

Dieter an Mey anmey at rz.rwth-aachen.de
Thu Dec 9 08:13:46 PST 2004


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
--------------------------------------------------------------------





More information about the Omp mailing list