Skip to content

Commit

Permalink
fixup test_runtime.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
evaleev committed Dec 28, 2023
1 parent 57a2093 commit 5c24fcc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/tutorial/test_runtime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ int main(int argc, char* argv[]) {
f = world.taskq.add(&task, 0);
for (auto t = 1; t != 1000; ++t) {
const auto proc = t % nproc;
f = world.taskq.add(
auto f_new = world.taskq.add(
proc, &task, f);
swap(f, f_new);
}
}
world.gop.fence();
Expand Down

0 comments on commit 5c24fcc

Please sign in to comment.