'!$OMP' directive followed by several spaces
Daniel Franke
franke.daniel@gmail.com
Wed Feb 14 12:05:00 GMT 2007
2007/2/14, Philippe Schaffnit <P.Schaffnit@access.rwth-aachen.de>:
> 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...)
> PROGRAM Hello
> CHARACTER ( LEN = * ), PARAMETER :: String = "Hello world!"
> !$OMP PARALLEL DO
> WRITE ( 6, "(/A/)" ) TRIM(String)
> !$OMP END PARALLEL DO
> END PROGRAM Hello
Try again without the DO, there is no DO loop involved. See the
examples in Appendix A.1 and A.4 of the OpenMP API description.
Regards
Daniel
More information about the Fortran
mailing list