Examples A.4.1c and A.4.1f

Discuss the OpenMP 3.0 API Specifications with the OpenMP Arch. Review Board. (Read Only)
Forum rules
The OpenMP Forums are now closed to new posts. Please visit Stack Overflow if you are in need of help: https://stackoverflow.com/questions/tagged/openmp
Locked
nathanweeks
Posts: 41
Joined: Sun May 17, 2009 6:19 am
Location: Iowa State University
Contact:

Examples A.4.1c and A.4.1f

Post by nathanweeks »

It should probably be mentioned somewhere in or before examples A.4.1c and
A.4.1f that they assume the implementation supports nested parallelism.

In addition, there are two issues specific to A.4.1f:

1. An ampersand is needed at the ends of lines 17, 18, 26, and 27.
2. The use of parentheses in the print statements (lines 17 and 26) is an
extension to Fortran, and not supported by all compilers (e.g., gfortran
4.4.1).
--
Nathan Weeks
Iowa State University HPC Group
http://weeks.public.iastate.edu/

kusano

Re: Examples A.4.1c and A.4.1f

Post by kusano »

Dear Nathan,

Thank you very much for your suggestions.
We will make a note for the next version of the specification.

Regards,
Kazuhiro Kusano on behalf of ARB

kli
Posts: 9
Joined: Thu Jan 08, 2009 7:39 pm

Re: Examples A.4.1c and A.4.1f

Post by kli »

For adding ampersands, I think it is not necessary, the example can be compiled in fixed source form.

Kelvin

nathanweeks
Posts: 41
Joined: Sun May 17, 2009 6:19 am
Location: Iowa State University
Contact:

Re: Examples A.4.1c and A.4.1f

Post by nathanweeks »

To make it both fixed-form and free-form compatible, wherever an ampersand occurs in column 6,
you can add an ampersand in column 73 on the previous line.
--
Nathan Weeks
Iowa State University HPC Group
http://weeks.public.iastate.edu/

Locked