From a00f96670a36accdc5f073b4298efb7803278279 Mon Sep 17 00:00:00 2001 From: Sergey Lebedev Date: Sun, 10 Dec 2023 15:02:39 +0000 Subject: [PATCH] TEST: progress ucc context during skip reduce --- test/mpi/test_case.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/mpi/test_case.cc b/test/mpi/test_case.cc index 43ad770e6e..7a37c2ec9c 100644 --- a/test/mpi/test_case.cc +++ b/test/mpi/test_case.cc @@ -149,7 +149,14 @@ test_skip_cause_t TestCase::skip_reduce(int skip_cond, test_skip_cause_t cause, { test_skip_cause_t test_skip; test_skip_cause_t skip = skip_cond ? cause : TestCase::test_skip; - MPI_Allreduce((void*)&skip, (void*)&test_skip, 1, MPI_INT, MPI_MAX, comm); + MPI_Request req; + int completed; + + MPI_Iallreduce((void*)&skip, (void*)&test_skip, 1, MPI_INT, MPI_MAX, comm, &req); + do { + MPI_Test(&req, &completed, MPI_STATUS_IGNORE); + tc_progress_ctx(); + } while(!completed); TestCase::test_skip = test_skip; return test_skip; }