tem_balance_module Module

last iteration the dynamic load balancing was called



Derived Types

type, public ::  tem_balance_type

Load balancing information and control

Components

Type Visibility Attributes Name Initial
character(len=labelLen), public :: kind = 'none'

load balancing type

logical, public :: dynamic = .false.

is dynamic load balancing activated?

logical, public :: weight = .false.

whether dump weight file

type(tem_timeControl_type), public :: timeControl

control about when to do dynamic balancing


Functions

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

Evaluate the imbalance of all the processes by each rank.

Arguments

Type IntentOptional Attributes Name
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


Subroutines

public subroutine tem_balance_load(me, conf)

Read all the configuration options for load balancing from the configuration.

Read more…

Arguments

Type IntentOptional Attributes Name
type(tem_balance_type), intent(inout) :: me

The load balancing type

type(flu_State) :: conf

lua configuration handle