Cashmere: Global Variables and Constants
The following constants are always valid and available for
- Maximum number of nodes in any Cashmere cluster.
- Maximum number of processors in any node.
- Maximum number of processors in any cluster.
Global variables are guaranteed to have valid values only after
csm_init_start has been called.
- Number of compute processes executing.
- Number of nodes executing compute processes.
- Number of CPUs executing compute processes on the process' node.
- Process' process identifier. Values of csm_pid are contiguous
running from 0 to csm_num_pid-1. The only exception is that protocol
processors have csm_pid ranging from CSM_MAX_PROCS to
- Process' node identifier. Ranges from 0 to csm_num_nid-1.
- Process' CPU identifier. Ranges from 0 to
csm_num_cid-1. Protocol processors have a csm_cid of csm_num_cid.
- Number of locks available to the application. Lock identifiers range from 0 to csm_num_locks-1.
- Number of barriers available to the application.
- Number of flags available to the application.
- Number of bytes of shared memory available to the application.
- Number of pages of shared memory available to the application.