Parallel Programming Guide for HP-UX Systems

Memory classes
Porting multinode applications to single-node servers
Chapter 7 125
Porting multinode applications to single-node
servers
Programs developed to run on multinode servers, such as the legacy
X-Class server, can be run on K-Class or V-Class servers. The program
runs as it would on one node of a multinode machine.
When a multinode application is executed on a single-node server:
All PARALLEL, LOOP_PARALLEL, PREFER_PARALLEL, and BEGIN_TASKS
directives containing node attributes are ignored.
All variables, arrays and pointers that are declared to be
NEAR_SHARED, FAR_SHARED, or BLOCK_SHARED are assigned to the
NODE_PRIVATE class.
The THREAD_PRIVATE and NODE_PRIVATE classes remain unchanged
and function as usual.
See the Exemplar Programming Guide for HP-UX Systems for a complete
description of how to program multinode applications using HP parallel
directives.