A Template is an abstract space of indexed positions (an "array of nothings")
|
In CMFortran terminology, Template is set of Virtual Processors -- one per data point
-
Template typically specifies precisely the full natural data parallelism that is natural for problem and HPF maps this problem parallelism onto particular machine
|
A template is declared by the TEMPLATE directive that specifies:
-
name of the template
-
the rank (i.e., number of dimensions)
-
the extent in each dimension
|
Examples:
-
CHPF$ TEMPLATE T(1000)
-
!HPF$ TEMPLATE FRED(N, 2*N)
-
*HPF$ TEMPLATE, DIMENSION(5,100,50) :: MINE, YOURS
|