Single

From Mesham
Revision as of 17:55, 12 January 2013 by Polas (talk | contribs)
Jump to navigationJump to search

Syntax

single[type] single[on[process]]

where type is optional

Semantics

Will allocate a variable to a specific process. Most commonly combined with the on type which specifies the process to allocated to, but not required if this can be inferred. Additionally the programmer will place a distribution type within single if dealing with distributed arrays.

Example

var i:Int :: allocated[single[on[1]]];

In this example variable i is declared as an integer and allocated on process 1.