[ HPF Home | Versions | Compilers | Projects | Publications | Applications | Benchmarks | Events | Contact ] |
Next: AlignmentDistribution, and
Up: Data Alignment and
Previous: TEMPLATE Directive
The INHERIT directive specifies that a dummy argument should be aligned to a copy of the template of the corresponding actual argument in the same way that the actual argument is aligned.
XBNF
inherit-directive -to -rule
to to is INHERIT dummy-argument-name-list
XBNF
The INHERIT directive causes the named subprogram dummy arguments to have the INHERIT attribute. Only dummy arguments may have the INHERIT attribute. An object may not have both the INHERIT attribute and the ALIGN attribute. The INHERIT directive may only appear in a specification-part of a scoping unit.
The INHERIT attribute specifies that the template for a dummy
argument should be inherited, by making a copy of the template of the
actual argument. Moreover, the INHERIT attribute implies a
default distribution of DISTRIBUTE * ONTO *. Note that this
default distribution is not part of Subset HPF; if a program uses INHERIT, it must override the default distribution with an explicit
mapping directive in order to conform to Subset HPF. See Section
for further exposition. If an explicit mapping
directive appears for the dummy argument, thereby overriding the
default distribution, then the actual argument must be a whole array or
a regular array section; it may not be an expression of any other form
Consider the following example:
©2000-2006 Rice University | [ Contact Us | HiPerSoft | Computer Science ] |