Multiple Type
Next: Share,
Previous: Const,
Index: Index
The multiple[] type will declare a variable to be allocated to multiple processes. Without any further type information supplied in its arguments (e.g. a communication group) then the variable will be allocated to those processes which are active in the current scope.
Examples
var x:Int::allocated[multiple[]];
var p;
par p from 1 to 3
{
var q:Int::allocated[multiple[]];
}
In this example x is allocated to all processes, whereas the variable q is only allocated to those processes within the communication group of the par loop (1,2 and 3.)
Last Modified: August 2008