Initialize dynamic load balancing
Creates a shared counter window on rank 0.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(comm_t), | intent(in) | :: | comm |
MPI communicator to use |
subroutine dlb_init(comm) type(comm_t), intent(in) :: comm dlb_comm = comm%duplicate() ! Allocate counter on all ranks (rank 0's is the master) call win_allocate(dlb_comm, 1_int32, counter_ptr, counter_win) counter_ptr(1) = 0_int64 call dlb_comm%barrier() dlb_initialized = .true. end subroutine dlb_init