next up previous contents
Next: Uses of Extrinsics Up: Extrinsic Procedures Previous: Extrinsic Example

 

Rules for Extrinsic Procedures

Extrinsic procedures have a number of constraints placed on them so they behave in the same way as `regular' HPF procedures. An EXTRINSIC must:

All these rules aim to make sure that the invocation of an EXTRINSIC is seamless. Guards are set against the extrinsic spawning processes which remain active after control has returned to HPF; if this was not enforced these processes could interact with execution in a destructive way.

The extrinsic should also leave the global state of the program in the same way as it found it. In other words, if any remapping takes place within the extrinsic, then it must be undone before control returns to HPF. The extrinsic must also ensure that scalar variables, which HPF goes to great lengths to ensure are equal across every processor, do not become corrupted.

Return to corresponding overview page gif


next up previous contents
Next: Uses of Extrinsics Up: Extrinsic Procedures Previous: Extrinsic Example

©University of Liverpool, 1997
Wed May 28 20:20:27 BST 1997
Not for commercial use.