accept_pdims_loadbalancing Function

private pure function accept_pdims_loadbalancing(pdims_avail, pdim, tdim, lb_ratio)

load balancing criterion whether to accept process grid dimension based on total number of cores and tensor dimension


Type IntentOptional Attributes Name
integer, intent(in) :: pdims_avail

available process grid dimensions (total number of cores)

integer, intent(in) :: pdim

process grid dimension to test

integer, intent(in) :: tdim

tensor dimension corresponding to pdim

real(kind=real_8), intent(in) :: lb_ratio

load imbalance acceptance factor

Return Value logical