'!$OMP' directive followed by several spaces
Philippe Schaffnit
P.Schaffnit@access.rwth-aachen.de
Wed Feb 14 11:46:00 GMT 2007
Hi!
I stumbled accross something which I find a bit surprising, but this
could very well be only due to poor understanding...
If an '!$OMP' directive is followed by several spaces, it causes a error
('Error: Unclassifiable OpenMP directive at...'): is this forbidden,
then why? (the Intel and Sun compilers do not even issue a warning...)
This happens under Linux with 4.3.0 20070214.
Thanks!
Philippe
PS: some sources which show that (for me)!
!
PROGRAM Hello
!
CHARACTER ( LEN = * ), PARAMETER :: String = "Hello world!"
!
!$OMP PARALLEL DO
WRITE ( 6, "(/A/)" ) TRIM(String)
!$OMP END PARALLEL DO
!
END PROGRAM Hello
!
PPS: what I get:
gfortran -fopenmp -c Hello.f90 -ffree-form
Hello.f90:6.6:
!$OMP PARALLEL DO
1
Error: Unclassifiable OpenMP directive at (1)
Hello.f90:8.21:
!$OMP END PARALLEL DO
1
Error: Unexpected !$OMP END PARALLEL DO statement at (1)
More information about the Fortran
mailing list