Skip to content

Commit

Permalink
Explicitly capture mode and priority in transform_mpi
Browse files Browse the repository at this point in the history
  • Loading branch information
msimberg committed Nov 25, 2024
1 parent 19439bf commit 3713f91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/pika/async_mpi/include/pika/async_mpi/transform_mpi.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ namespace pika::mpi::experimental {

if (completions_inline)
{
auto f_completion = [=, f = std::forward<F>(f)](auto&... args) mutable {
auto f_completion = [mode, p, f = std::forward<F>(f)](auto&... args) mutable {
return just(std::forward_as_tuple(args...)) | unpack() |
dispatch_mpi(std::move(f)) | trigger_mpi(mode);
};
Expand All @@ -82,7 +82,7 @@ namespace pika::mpi::experimental {
}
else
{
auto f_completion = [=, f = std::forward<F>(f)](auto&... args) mutable {
auto f_completion = [mode, p, f = std::forward<F>(f)](auto&... args) mutable {
return just(std::forward_as_tuple(args...)) | unpack() |
dispatch_mpi(std::move(f)) | trigger_mpi(mode) |
continues_on(default_pool_scheduler(p));
Expand Down

0 comments on commit 3713f91

Please sign in to comment.