Syntax:
-
EXTRINSIC ( extrinsic-kind-keyword )
-
Goes in FUNCTION or SUBROUTINE header (like PURE)
|
An escape mechanism for allowing HPF to call other languages and paradigms
|
On the caller (HPF) side:
-
There must be an explicit interface with the EXTRINSIC directive
-
Remapping occurs (if needed) to meet distribution specifications
-
System synchronizes all processors before the call
-
System calls ³local² routine on every processor
|
On the callee (non-HPF) side:
-
INTENT(IN) and INTENT(OUT) must be obeyed
-
If variables are replicated, callee must make them consistent before return
-
Processors can access their own section of distributed arrays
|