43
43
44
44
#include " vt/config.h"
45
45
#include " vt/configs/arguments/app_config.h"
46
+ #include " vt/configs/types/types_type.h"
46
47
#include " vt/context/context.h"
47
48
#include " vt/phase/phase_hook_enum.h"
48
49
#include " vt/vrt/collection/balance/baselb/baselb.h"
@@ -499,31 +500,31 @@ void LBManager::statsHandler(std::vector<balance::LoadData> const& in_stat_vec)
499
500
auto skew = st.skew ();
500
501
auto krte = st.krte ();
501
502
502
- stats[stat][lb::StatisticQuantity::max] = max. seconds () ;
503
- stats[stat][lb::StatisticQuantity::min] = min. seconds () ;
504
- stats[stat][lb::StatisticQuantity::avg] = avg. seconds () ;
505
- stats[stat][lb::StatisticQuantity::sum] = sum. seconds () ;
503
+ stats[stat][lb::StatisticQuantity::max] = max;
504
+ stats[stat][lb::StatisticQuantity::min] = min;
505
+ stats[stat][lb::StatisticQuantity::avg] = avg;
506
+ stats[stat][lb::StatisticQuantity::sum] = sum;
506
507
stats[stat][lb::StatisticQuantity::npr] = npr;
507
508
stats[stat][lb::StatisticQuantity::car] = car;
508
- stats[stat][lb::StatisticQuantity::var] = var. seconds () ;
509
+ stats[stat][lb::StatisticQuantity::var] = var;
509
510
stats[stat][lb::StatisticQuantity::npr] = npr;
510
- stats[stat][lb::StatisticQuantity::imb] = imb. seconds () ;
511
- stats[stat][lb::StatisticQuantity::std] = stdv. seconds () ;
512
- stats[stat][lb::StatisticQuantity::skw] = skew. seconds () ;
513
- stats[stat][lb::StatisticQuantity::kur] = krte. seconds () ;
511
+ stats[stat][lb::StatisticQuantity::imb] = imb;
512
+ stats[stat][lb::StatisticQuantity::std] = stdv;
513
+ stats[stat][lb::StatisticQuantity::skw] = skew;
514
+ stats[stat][lb::StatisticQuantity::kur] = krte;
514
515
515
516
if (stat == rank_statistic) {
516
517
if (before_lb_stats_) {
517
- last_phase_info_->max_load = max. seconds () ;
518
- last_phase_info_->avg_load = avg. seconds () ;
519
- last_phase_info_->imb_load = imb. seconds () ;
518
+ last_phase_info_->max_load = max;
519
+ last_phase_info_->avg_load = avg;
520
+ last_phase_info_->imb_load = imb;
520
521
} else {
521
- last_phase_info_->max_load_post_lb = max. seconds () ;
522
- last_phase_info_->avg_load_post_lb = avg. seconds () ;
523
- last_phase_info_->imb_load_post_lb = imb. seconds () ;
522
+ last_phase_info_->max_load_post_lb = max;
523
+ last_phase_info_->avg_load_post_lb = avg;
524
+ last_phase_info_->imb_load_post_lb = imb;
524
525
}
525
526
} else if (stat == obj_statistic and before_lb_stats_) {
526
- last_phase_info_->max_obj = max. seconds () ;
527
+ last_phase_info_->max_obj = max;
527
528
}
528
529
529
530
if (theContext ()->getNode () == 0 ) {
@@ -607,7 +608,7 @@ void LBManager::commitPhaseStatistics(PhaseType phase) {
607
608
balance::LoadData reduceVec (
608
609
lb::Statistic stat, std::vector<balance::LoadData>&& vec
609
610
) {
610
- balance::LoadData reduce_ld (stat, TimeType{ 0.0 } );
611
+ balance::LoadData reduce_ld (stat, 0.0 );
611
612
if (vec.size () == 0 ) {
612
613
return reduce_ld;
613
614
} else {
@@ -631,7 +632,7 @@ void LBManager::computeStatistics(
631
632
balance::PhaseOffset::NEXT_PHASE, balance::PhaseOffset::WHOLE_PHASE
632
633
};
633
634
634
- total_load_from_model = TimeType{ 0 .} ;
635
+ total_load_from_model = 0 . ;
635
636
std::vector<balance::LoadData> obj_load_model;
636
637
for (auto elm : *model) {
637
638
auto work = model->getModeledLoad (elm, when);
@@ -669,7 +670,7 @@ void LBManager::computeStatistics(
669
670
));
670
671
671
672
if (strategy_specific_model_) {
672
- TimeType rank_strat_specific_load = TimeType{ 0 .} ;
673
+ LoadType rank_strat_specific_load = 0 . ;
673
674
std::vector<balance::LoadData> obj_strat_specific_load;
674
675
for (auto elm : *strategy_specific_model_) {
675
676
auto work = strategy_specific_model_->getModeledLoad (elm, when);
@@ -703,7 +704,7 @@ void LBManager::computeStatistics(
703
704
for (auto && elm : *comm_data) {
704
705
// Only count object-to-object direct edges in the Object_comm statistics
705
706
if (elm.first .cat_ == elm::CommCategory::SendRecv and not elm.first .selfEdge ()) {
706
- obj_comm.emplace_back (LoadData{lb::Statistic::Object_comm, TimeType{ elm.second .bytes } });
707
+ obj_comm.emplace_back (LoadData{lb::Statistic::Object_comm, elm.second .bytes });
707
708
}
708
709
709
710
if (not comm_collectives and isCollectiveComm (elm.first .cat_ )) {
@@ -716,7 +717,7 @@ void LBManager::computeStatistics(
716
717
comm_load += elm.second .bytes ;
717
718
}
718
719
719
- lstats.emplace_back (LoadData{lb::Statistic::Rank_comm, TimeType{ comm_load} });
720
+ lstats.emplace_back (LoadData{lb::Statistic::Rank_comm, comm_load});
720
721
lstats.emplace_back (reduceVec (
721
722
lb::Statistic::Object_comm, std::move (obj_comm)
722
723
));
0 commit comments