Examples A.4.1c and A.4.1f

Discuss the OpenMP 3.0 API Specifications with the OpenMP Arch. Review Board. (Read Only)

Examples A.4.1c and A.4.1f

Postby nathanweeks » Fri Sep 25, 2009 2:38 am

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/
nathanweeks
 
Posts: 41
Joined: Sun May 17, 2009 6:19 am
Location: Iowa State University

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

Postby kusano » Sun Sep 27, 2009 11:22 pm

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
kusano
 
Posts: 2
Joined: Sun Sep 27, 2009 7:53 pm

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

Postby kli » Thu Jan 21, 2010 3:26 pm

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

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

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

Postby nathanweeks » Sun Jan 31, 2010 8:53 pm

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/
nathanweeks
 
Posts: 41
Joined: Sun May 17, 2009 6:19 am
Location: Iowa State University


Return to OpenMP 3.0 API Specifications

Who is online

Users browsing this forum: No registered users and 2 guests