Skip to content

Commit

Permalink
Revert resetting the next array
Browse files Browse the repository at this point in the history
  • Loading branch information
Dtenwolde committed Dec 18, 2024
1 parent 7c85657 commit b7b4754
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/core/operator/task/shortest_path_task.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ TaskExecutionResult ShortestPathTask::ExecuteTask(TaskExecutionMode mode) {
}
barrier->Wait();
do {
if (worker_id == 0) {
for (auto & i : state->iter & 1 ? state->visit2 : state->visit1) {
i.reset();
}
}
IterativePath();

// Synchronize after IterativePath
Expand Down Expand Up @@ -84,7 +79,12 @@ void ShortestPathTask::IterativePath() {

// Attempt to get a task range
bool has_tasks = SetTaskRange();
for (auto i = left; i < right; i++) {
next[i] = 0;
}

// Synchronize after clearing
barrier->Wait();
// Main processing loop
while (has_tasks) {

Expand Down

0 comments on commit b7b4754

Please sign in to comment.