Skip to content

Commit e8dff89

Browse files
committed
UCP/TEST: fix flush
1 parent c7638b9 commit e8dff89

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

src/ucp/rma/flush.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ UCS_PROFILE_FUNC(ucs_status_ptr_t, ucp_ep_flush_nbx, (ep, param),
530530
return request;
531531
}
532532

533-
static ucs_status_t ucp_worker_flush_check(ucp_worker_h worker)
533+
ucs_status_t ucp_worker_flush_check(ucp_worker_h worker)
534534
{
535535
ucp_rsc_index_t iface_id;
536536
ucp_worker_iface_t *wiface;

src/ucp/rma/rma.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ extern ucp_amo_proto_t ucp_amo_sw_proto;
100100
extern const ucp_rma_proto_t *ucp_rma_proto_list[];
101101
extern const ucp_amo_proto_t *ucp_amo_proto_list[];
102102

103+
ucs_status_t ucp_worker_flush_check(ucp_worker_h worker);
103104

104105
ucs_status_t ucp_rma_request_advance(ucp_request_t *req, ssize_t frag_length,
105106
ucs_status_t status,

test/gtest/ucp/test_ucp_memheap.cc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
#include <common/mem_buffer.h>
1111
#include <common/test_helpers.h>
1212
#include <ucs/sys/sys.h>
13+
extern "C" {
14+
#include <ucp/rma/rma.h>
15+
}
16+
1317
#include <ucs/sys/ptr_arith.h>
1418

1519

@@ -95,6 +99,9 @@ void test_ucp_memheap::test_xfer(send_func_t send_func, size_t size,
9599
flush_ep(sender());
96100
} else {
97101
flush_worker(sender());
102+
while(ucp_worker_flush_check(sender().worker()) != UCS_OK) {
103+
progress();
104+
}
98105
}
99106

100107
/* Validate data */

0 commit comments

Comments
 (0)