1 |
A Template is an abstract space of indexed positions (an "array of nothings")
|
2 |
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
|
3 |
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
|
4 |
Examples:
-
CHPF$ TEMPLATE T(1000)
-
!HPF$ TEMPLATE FRED(N, 2*N)
-
*HPF$ TEMPLATE, DIMENSION(5,100,50) :: MINE, YOURS
|