2.1.4 Obtaining parallel processes information

Products: Abaqus/Standard  Abaqus/Explicit  

References

Overview

Utility routines GETNUMCPUS and GETRANK can be called from any Abaqus/Standard user subroutine. GETNUMCPUS returns the number of MPI processes, and GETRANK returns the rank of the MPI process from which the function is called. For example, in a hybrid MPI and thread parallel execution scheme, multiple threads may all return the rank of their parent MPI process (see Parallel execution in Abaqus/Standard, Section 11.10.2 of the Abaqus Analysis User's Manual).

Utility routines VGETNUMCPUS and VGETRANK can be called from any Abaqus/Explicit user subroutine in a domain-parallel run. VGETNUMCPUS provides the number of processes used for the parallel run, and VGETRANK provides the individual process rank (see Parallel execution in Abaqus/Explicit, Section 11.10.3 of the Abaqus Analysis User's Manual).


GETNUMCPUS and VGETNUMCPUS (obtain the number of processes)

Interface

         CALL GETNUMCPUS( NUMPROCESSES )
         CALL VGETNUMCPUS( NUMPROCESSES )
         ...

Variable returned from the utility routine

NUMPROCESSES

Number of processes specified for the analysis.


GETRANK and VGETRANK (obtain the process number)

Interface

            CALL GETRANK( KPROCESSNUM )
            CALL VGETRANK( KPROCESSNUM )
            ...

Variable returned from the utility routine

KPROCESSNUM

Process number or rank. A process number is either zero or a positive integer.