Skip to content

Commit e63cbc2

Browse files
inline
1 parent 3afca84 commit e63cbc2

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ class GrowLocalSSP : public MaxBspScheduler<GraphT> {
5050
static constexpr unsigned staleness{2U};
5151
GrowLocalSSPParams<VertexIdxT<GraphT>, VWorkwT<GraphT>> params_;
5252

53-
typename std::deque<VertexType>::difference_type maxAllReadyUsage(const std::deque<VertexType> &currentlyReady,
54-
const std::deque<VertexType> &nextSuperstepReady) const;
53+
inline typename std::deque<VertexType>::difference_type maxAllReadyUsage(const std::deque<VertexType> &currentlyReady,
54+
const std::deque<VertexType> &nextSuperstepReady) const;
5555

5656
public:
5757
ReturnStatus ComputeSchedule(BspSchedule<GraphT> &schedule) override;
@@ -61,7 +61,7 @@ class GrowLocalSSP : public MaxBspScheduler<GraphT> {
6161
};
6262

6363
template <typename GraphT>
64-
typename std::deque<VertexIdxT<GraphT>>::difference_type GrowLocalSSP<GraphT>::maxAllReadyUsage(
64+
inline typename std::deque<VertexIdxT<GraphT>>::difference_type GrowLocalSSP<GraphT>::maxAllReadyUsage(
6565
const std::deque<VertexIdxT<GraphT>> &currentlyReady, const std::deque<VertexIdxT<GraphT>> &nextSuperstepReady) const {
6666
if constexpr (staleness == 1U) {
6767
return std::distance(currentlyReady.cbegin(), currentlyReady.cend());
@@ -145,7 +145,8 @@ ReturnStatus GrowLocalSSP<GraphT>::ComputeSchedule(MaxBspSchedule<GraphT> &sched
145145
const typename std::deque<VertexType>::difference_type lengthCurrentlyReady
146146
= std::distance(currentlyReady.begin(), currentlyReady.end());
147147
currentlyReady.insert(currentlyReady.end(), stepFutureReady.begin(), stepFutureReady.end());
148-
std::inplace_merge(currentlyReady.begin(), std::next(currentlyReady.begin(), lengthCurrentlyReady), currentlyReady.end(), std::less<>{});
148+
std::inplace_merge(
149+
currentlyReady.begin(), std::next(currentlyReady.begin(), lengthCurrentlyReady), currentlyReady.end(), std::less<>{});
149150

150151
const typename std::deque<VertexType>::difference_type maxCurrentlyReadyUsage
151152
= std::max(static_cast<typename std::deque<VertexType>::difference_type>(

0 commit comments

Comments
 (0)