Skip to content

Commit

Permalink
Destroy device coroutine once all sends have been issued
Browse files Browse the repository at this point in the history
Signed-off-by: Joseph Schuchart <[email protected]>
  • Loading branch information
devreal committed Nov 21, 2024
1 parent 4d06305 commit 36c453b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ttg/ttg/parsec/ttg.h
Original file line number Diff line number Diff line change
Expand Up @@ -3835,6 +3835,7 @@ namespace ttg_parsec {
task->tt->set_outputs_tls_ptr(old_output_tls_ptr);
detail::parsec_ttg_caller = nullptr;
}
dev_task.destroy(); // safe to destroy the coroutine now
}
#endif // TTG_HAVE_DEVICE
/* the coroutine should have completed and we cannot access the promise anymore */
Expand Down

0 comments on commit 36c453b

Please sign in to comment.