tem_calc_imbalance Function

public function tem_calc_imbalance(myCost, comm, nProcs, isRoot) result(imbalance)

Evaluate the imbalance of all the processes by each rank.

Arguments

TypeIntentOptionalAttributesName
real(kind=rk), intent(in) :: myCost

each process cpu cost. Basis to evaluate the imbalance

integer, intent(in) :: comm

MPI Communicator

integer, intent(in) :: nProcs

MPI Communicator

logical, intent(in) :: isRoot

Whether this rank is the root

Return Value real(kind=rk)

in percentage


Calls

proc~~tem_calc_imbalance~~CallsGraph proc~tem_calc_imbalance tem_calc_imbalance mpi_reduce mpi_reduce proc~tem_calc_imbalance->mpi_reduce proc~tem_horizontalspacer tem_horizontalSpacer proc~tem_calc_imbalance->proc~tem_horizontalspacer

Contents


Variables

TypeVisibilityAttributesNameInitial
real(kind=rk), private :: totalCost
real(kind=rk), private :: maxCost
integer, private :: iErr