@@ -242,9 +242,7 @@ class PebblingSchedule {
242242 return nodesSentDown_[proc][supstep];
243243 }
244244
245- const std::vector<VertexIdx> &GetNodesSentUp (unsigned proc, unsigned supstep) const {
246- return nodesSentUp_[proc][supstep];
247- }
245+ const std::vector<VertexIdx> &GetNodesSentUp (unsigned proc, unsigned supstep) const { return nodesSentUp_[proc][supstep]; }
248246
249247 void SetNeedsBlueAtEnd (const std::set<VertexIdx> &nodes) { needsBlueAtEnd_ = nodes; }
250248
@@ -294,8 +292,8 @@ VWorkwT<GraphT> PebblingSchedule<GraphT>::ComputeCost() const {
294292 for (unsigned proc = 0 ; proc < instance_->GetArchitecture ().NumberOfProcessors (); ++proc) {
295293 CostType sendUp = 0 ;
296294 for (VertexIdx node : nodesSentUp_[proc][step]) {
297- sendUp
298- += instance_-> GetComputationalDag (). VertexCommWeight (node) * instance_->GetArchitecture ().CommunicationCosts ();
295+ sendUp += instance_-> GetComputationalDag (). VertexCommWeight (node)
296+ * instance_->GetArchitecture ().CommunicationCosts ();
299297 }
300298
301299 if (sendUp > maxSendUp) {
@@ -310,8 +308,8 @@ VWorkwT<GraphT> PebblingSchedule<GraphT>::ComputeCost() const {
310308 for (unsigned proc = 0 ; proc < instance_->GetArchitecture ().NumberOfProcessors (); ++proc) {
311309 CostType sendDown = 0 ;
312310 for (VertexIdx node : nodesSentDown_[proc][step]) {
313- sendDown
314- += instance_-> GetComputationalDag (). VertexCommWeight (node) * instance_->GetArchitecture ().CommunicationCosts ();
311+ sendDown += instance_-> GetComputationalDag (). VertexCommWeight (node)
312+ * instance_->GetArchitecture ().CommunicationCosts ();
315313 }
316314
317315 if (sendDown > maxSendDown) {
@@ -327,7 +325,8 @@ VWorkwT<GraphT> PebblingSchedule<GraphT>::ComputeCost() const {
327325template <typename GraphT>
328326VWorkwT<GraphT> PebblingSchedule<GraphT>::ComputeAsynchronousCost() const {
329327 std::vector<CostType> currentTimeAtProcessor (instance_->GetArchitecture ().NumberOfProcessors (), 0 );
330- std::vector<CostType> timeWhenNodeGetsBlue (instance_->GetComputationalDag ().NumVertices (), std::numeric_limits<CostType>::max ());
328+ std::vector<CostType> timeWhenNodeGetsBlue (instance_->GetComputationalDag ().NumVertices (),
329+ std::numeric_limits<CostType>::max ());
331330 if (needToLoadInputs_) {
332331 for (VertexIdx node = 0 ; node < instance_->NumberOfVertices (); ++node) {
333332 if (instance_->GetComputationalDag ().InDegree (node) == 0 ) {
@@ -1101,7 +1100,8 @@ void PebblingSchedule<GraphT>::SetMemoryMovement(CacheEvictionStrategy evictRule
11011100 memUsed[proc] -= instance_->GetComputationalDag ().VertexMemWeight (node);
11021101 inMem[proc].erase (node);
11031102 nodesEvictedInComm_[proc][superstep].push_back (node);
1104- if ((instance_->GetComputationalDag ().OutDegree (node) == 0 || needsBlueAtEnd_.find (node) != needsBlueAtEnd_.end ())
1103+ if ((instance_->GetComputationalDag ().OutDegree (node) == 0
1104+ || needsBlueAtEnd_.find (node) != needsBlueAtEnd_.end ())
11051105 && !inSlowMem[node]) {
11061106 inSlowMem[node] = true ;
11071107 nodesSentUp_[proc][superstep].push_back (node);
@@ -1778,15 +1778,15 @@ void PebblingSchedule<GraphT>::FixForceEvicts(const std::vector<std::tuple<Verte
17781778 for (auto itr = testSchedule.computeStepsForProcSuperstep_ [proc][where.first ].begin ();
17791779 itr != testSchedule.computeStepsForProcSuperstep_ [proc][where.first ].end ();
17801780 ++itr) {
1781- if (itr->node == node) {
1781+ if (itr->node_ == node) {
17821782 if (where.second > 0 ) {
17831783 auto previousStep = itr;
17841784 --previousStep;
1785- for (VertexIdx toEvict : itr->nodesEvictedAfter ) {
1786- previousStep->nodesEvictedAfter .push_back (toEvict);
1785+ for (VertexIdx toEvict : itr->nodesEvictedAfter_ ) {
1786+ previousStep->nodesEvictedAfter_ .push_back (toEvict);
17871787 }
17881788 } else {
1789- for (VertexIdx toEvict : itr->nodesEvictedAfter ) {
1789+ for (VertexIdx toEvict : itr->nodesEvictedAfter_ ) {
17901790 testSchedule.nodesEvictedInComm_ [proc][where.first - 1 ].push_back (toEvict);
17911791 }
17921792 }
@@ -1844,18 +1844,18 @@ void PebblingSchedule<GraphT>::TryToMergeSupersteps() {
18441844 testSchedule.computeStepsForProcSuperstep_ [proc][nextStep].clear ();
18451845
18461846 testSchedule.nodesSentUp_ [proc][step].insert (testSchedule.nodesSentUp_ [proc][step].end (),
1847- testSchedule.nodesSentUp_ [proc][nextStep].begin (),
1848- testSchedule.nodesSentUp_ [proc][nextStep].end ());
1847+ testSchedule.nodesSentUp_ [proc][nextStep].begin (),
1848+ testSchedule.nodesSentUp_ [proc][nextStep].end ());
18491849 testSchedule.nodesSentUp_ [proc][nextStep].clear ();
18501850
18511851 testSchedule.nodesSentDown_ [proc][prevStep].insert (testSchedule.nodesSentDown_ [proc][prevStep].end (),
1852- testSchedule.nodesSentDown_ [proc][step].begin (),
1853- testSchedule.nodesSentDown_ [proc][step].end ());
1852+ testSchedule.nodesSentDown_ [proc][step].begin (),
1853+ testSchedule.nodesSentDown_ [proc][step].end ());
18541854 testSchedule.nodesSentDown_ [proc][step].clear ();
18551855
18561856 testSchedule.nodesEvictedInComm_ [proc][step].insert (testSchedule.nodesEvictedInComm_ [proc][step].end (),
1857- testSchedule.nodesEvictedInComm_ [proc][nextStep].begin (),
1858- testSchedule.nodesEvictedInComm_ [proc][nextStep].end ());
1857+ testSchedule.nodesEvictedInComm_ [proc][nextStep].begin (),
1858+ testSchedule.nodesEvictedInComm_ [proc][nextStep].end ());
18591859 testSchedule.nodesEvictedInComm_ [proc][nextStep].clear ();
18601860 }
18611861
0 commit comments