diff --git a/include/dlaf/sender/transform_mpi.h b/include/dlaf/sender/transform_mpi.h index 9cee28a4ec..17d1f1896c 100644 --- a/include/dlaf/sender/transform_mpi.h +++ b/include/dlaf/sender/transform_mpi.h @@ -122,7 +122,7 @@ template = static_cast(mpid::handler_mode::unspecified)) { + if (mpi::get_completion_mode() >= static_cast(mpid::handler_method::unspecified)) { auto snd1 = ex::transfer(std::forward(sender), dlaf::internal::getMPIScheduler()) | ex::then(dlaf::common::internal::ConsumeRvalues{MPIYieldWhileCallHelper{std::forward(f)}});