Skip to content

Commit 1d314f6

Browse files
reorder
1 parent b8bb17f commit 1d314f6

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

include/osp/bsp/scheduler/GreedySchedulers/GrowLocalAutoCoresParallel.hpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -388,14 +388,7 @@ class GrowLocalAutoCoresParallel : public Scheduler<GraphT> {
388388
}
389389
}
390390

391-
VertexType succIndex;
392-
if constexpr (hasVerticesInTopOrderV<GraphT>) {
393-
succIndex = succ - startNode;
394-
} else {
395-
succIndex = posInTopOrder[succ] - startNode;
396-
}
397-
398-
++predec[succIndex];
391+
schedule.SetAssignedProcessor(succ, UINT_MAX);
399392
}
400393
}
401394
}
@@ -419,7 +412,14 @@ class GrowLocalAutoCoresParallel : public Scheduler<GraphT> {
419412
}
420413
}
421414

422-
schedule.SetAssignedProcessor(succ, UINT_MAX);
415+
VertexType succIndex;
416+
if constexpr (hasVerticesInTopOrderV<GraphT>) {
417+
succIndex = succ - startNode;
418+
} else {
419+
succIndex = posInTopOrder[succ] - startNode;
420+
}
421+
422+
++predec[succIndex];
423423
}
424424
}
425425
}

0 commit comments

Comments
 (0)