diff --git a/include/osp/bsp/scheduler/LocalSearch/KernighanLin_v2/kl_improver.hpp b/include/osp/bsp/scheduler/LocalSearch/KernighanLin_v2/kl_improver.hpp index 86d8ad5e..cf9cb507 100644 --- a/include/osp/bsp/scheduler/LocalSearch/KernighanLin_v2/kl_improver.hpp +++ b/include/osp/bsp/scheduler/LocalSearch/KernighanLin_v2/kl_improver.hpp @@ -201,7 +201,7 @@ class kl_improver : public ImprovementScheduler { inline void process_other_steps_best_move(const unsigned idx, const unsigned node_step, const VertexType& node, const cost_t affinity_current_proc_step, cost_t& max_gain, unsigned& max_proc, unsigned& max_step, const std::vector> &affinity_table_node) const { for (const unsigned p : proc_range.compatible_processors_vertex(node)) { - if constexpr (active_schedule.use_memory_constraint) { + if constexpr (active_schedule_t::use_memory_constraint) { if( not active_schedule.memory_constraint.can_move(node, p, node_step + idx - window_size)) continue; } @@ -236,7 +236,7 @@ class kl_improver : public ImprovementScheduler { if (proc == node_proc) continue; - if constexpr (active_schedule.use_memory_constraint) { + if constexpr (active_schedule_t::use_memory_constraint) { if( not active_schedule.memory_constraint.can_move(node, proc, node_step + idx - window_size)) continue; } @@ -610,7 +610,7 @@ class kl_improver : public ImprovementScheduler { std::cout << "computed cost: " << comm_cost_f.compute_schedule_cost_test() << ", current cost: " << thread_data.active_schedule_data.cost << std::endl; std::cout << ">>>>>>>>>>>>>>>>>>>>>> compute cost not equal to new cost <<<<<<<<<<<<<<<<<<<<" << std::endl; } - if constexpr (active_schedule.use_memory_constraint) { + if constexpr (active_schedule_t::use_memory_constraint) { if ( not active_schedule.memory_constraint.satisfied_memory_constraint()) std::cout << "memory constraint not satisfied" << std::endl; } @@ -647,7 +647,7 @@ class kl_improver : public ImprovementScheduler { std::cout << "computed cost: " << comm_cost_f.compute_schedule_cost_test() << ", current cost: " << thread_data.active_schedule_data.cost << std::endl; std::cout << ">>>>>>>>>>>>>>>>>>>>>> compute cost not equal to new cost <<<<<<<<<<<<<<<<<<<<" << std::endl; } - if constexpr (active_schedule.use_memory_constraint) { + if constexpr (active_schedule_t::use_memory_constraint) { if ( not active_schedule.memory_constraint.satisfied_memory_constraint()) std::cout << "memory constraint not satisfied" << std::endl; } @@ -661,7 +661,7 @@ class kl_improver : public ImprovementScheduler { std::cout << "computed cost: " << comm_cost_f.compute_schedule_cost_test() << ", current cost: " << thread_data.active_schedule_data.cost << std::endl; std::cout << ">>>>>>>>>>>>>>>>>>>>>> compute cost not equal to new cost <<<<<<<<<<<<<<<<<<<<" << std::endl; } - if constexpr (active_schedule.use_memory_constraint) { + if constexpr (active_schedule_t::use_memory_constraint) { if ( not active_schedule.memory_constraint.satisfied_memory_constraint()) std::cout << "memory constraint not satisfied" << std::endl; } @@ -736,7 +736,7 @@ class kl_improver : public ImprovementScheduler { std::cout << "computed cost: " << comm_cost_f.compute_schedule_cost_test() << ", current cost: " << thread_data.active_schedule_data.cost << std::endl; std::cout << ">>>>>>>>>>>>>>>>>>>>>> compute cost not equal to new cost <<<<<<<<<<<<<<<<<<<<" << std::endl; } - if constexpr (active_schedule.use_memory_constraint) { + if constexpr (active_schedule_t::use_memory_constraint) { if ( not active_schedule.memory_constraint.satisfied_memory_constraint()) std::cout << "memory constraint not satisfied" << std::endl; } @@ -774,7 +774,7 @@ class kl_improver : public ImprovementScheduler { std::cout << "computed cost: " << comm_cost_f.compute_schedule_cost_test() << ", current cost: " << thread_data.active_schedule_data.cost << std::endl; std::cout << ">>>>>>>>>>>>>>>>>>>>>> compute cost not equal to new cost <<<<<<<<<<<<<<<<<<<<" << std::endl; } - if constexpr (active_schedule.use_memory_constraint) { + if constexpr (active_schedule_t::use_memory_constraint) { if ( not active_schedule.memory_constraint.satisfied_memory_constraint()) std::cout << "memory constraint not satisfied" << std::endl; } @@ -973,7 +973,7 @@ class kl_improver : public ImprovementScheduler { std::cout << "computed cost: " << comm_cost_f.compute_schedule_cost_test() << ", current cost: " << thread_data.active_schedule_data.cost << std::endl; std::cout << ">>>>>>>>>>>>>>>>>>>>>> compute cost not equal to new cost <<<<<<<<<<<<<<<<<<<<" << std::endl; } - if constexpr (active_schedule.use_memory_constraint) { + if constexpr (active_schedule_t::use_memory_constraint) { if ( not active_schedule.memory_constraint.satisfied_memory_constraint()) std::cout << "memory constraint not satisfied" << std::endl; } @@ -1442,7 +1442,7 @@ void kl_improver