========================= MPC scopes disambiguation ========================= +---------------+------------------+-------------------------------------------------------------------------------+---------------------------------------+----------------------------------------+ | Ranks | Scopes | Description | Indexes | Sizes | +===============+==================+===============================================================================+=======================================+========================================+ | Node | Global | The number of nodes. | ``mpc_common_get_node_rank`` | ``mpc_common_get_node_count`` | +---------------+------------------+-------------------------------------------------------------------------------+---------------------------------------+----------------------------------------+ | Process | Global | The total number of process. | ``mpc_common_get_process_rank`` | ``mpc_common_get_process_count`` | +---------------+------------------+-------------------------------------------------------------------------------+---------------------------------------+----------------------------------------+ | Local Process | Node | The number of process on the current node. | ``mpc_common_get_local_process_rank`` | ``mpc_common_get_local_process_count`` | +---------------+------------------+-------------------------------------------------------------------------------+---------------------------------------+----------------------------------------+ | MPI Task | Global | The total number of tasks. (As define by MPI) | ``mpc_common_get_task_rank`` | ``mpc_common_get_task_count`` | +---------------+------------------+-------------------------------------------------------------------------------+---------------------------------------+----------------------------------------+ | Local Task | Process | The number of tasks in the current process. | ``mpc_common_get_local_task_rank`` | ``mpc_common_get_local_task_count`` | +---------------+------------------+-------------------------------------------------------------------------------+---------------------------------------+----------------------------------------+ | OMP Rank | MPI Task | The number of Omp threads in the current MPI tasks. (As expected by the user) | | | +---------------+------------------+-------------------------------------------------------------------------------+---------------------------------------+----------------------------------------+ | Thread | Process | The number of thead on the current process. | | | +---------------+------------------+-------------------------------------------------------------------------------+---------------------------------------+----------------------------------------+ Example of index and sizes: +--------------------------------------------------------------------------------------------------+-------------------+ | Node 1/2 | Node 2/2 | +==============================================================================+===================+===================+ | Process 1/3 | Process 2/3 | Process 3/3 | +------------------------------------------------------------------------------+-------------------+-------------------+ | Local Process 1/2 | Local Process 2/2 | Local Process 1/2 | +----------------------------------------------------------+-------------------+-------------------+-------------------+ | MPI Task 1/4 | MPI Task 2/4 | MPI Task 3/4 | MPI Task 4/4 | +----------------------------------------------------------+-------------------+-------------------+-------------------+ | Local Task 1/2 | Local Task 2/2 | Local Task 1/1 | Local Task 1/1 | +--------------------------------------+-------------------+-------------------+-------------------+-------------------+ | OMP Rank 1/2 | OMP Rank 2/2 | OMP Rank 1/1 | OMP Rank 1/1 | OMP Rank 1/1 | +------------------+-------------------+-------------------+-------------------+-------------------+-------------------+ | Thread 1/4 | Thread 4/4 | Thread 2/4 | Thread 3/4 | Thread 1/1 | Thread 1/1 | +------------------+-------------------+-------------------+-------------------+-------------------+-------------------+ .. note:: Thread should be names 'Local Thread' to be consistent with process naming