Skip to content

Commit e64ee69

Browse files
authored
Merge pull request #9328 from yosefe/topic/spml-ucx-pass-ucp-op-attr-flag
spml_ucx: pass UCP_OP_ATTR_FLAG_FAST_CMPL flag to blocking routines
2 parents d2b57e8 + 0f20b66 commit e64ee69

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

oshmem/mca/spml/ucx/spml_ucx.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ mca_spml_ucx_ctx_t mca_spml_ucx_ctx_default = {
9090

9191
#ifdef HAVE_UCP_REQUEST_PARAM_T
9292
static ucp_request_param_t mca_spml_ucx_request_param = {0};
93+
static ucp_request_param_t mca_spml_ucx_request_param_b = {
94+
.op_attr_mask = UCP_OP_ATTR_FLAG_FAST_CMPL
95+
};
9396
#endif
9497

9598
int mca_spml_ucx_enable(bool enable)
@@ -971,7 +974,7 @@ int mca_spml_ucx_get(shmem_ctx_t ctx, void *src_addr, size_t size, void *dst_add
971974

972975
#if HAVE_DECL_UCP_GET_NBX
973976
request = ucp_get_nbx(ucx_ctx->ucp_peers[src].ucp_conn, dst_addr, size,
974-
(uint64_t)rva, ucx_mkey->rkey, &mca_spml_ucx_request_param);
977+
(uint64_t)rva, ucx_mkey->rkey, &mca_spml_ucx_request_param_b);
975978
return opal_common_ucx_wait_request(request, ucx_ctx->ucp_worker[0], "ucp_get_nbx");
976979
#elif HAVE_DECL_UCP_GET_NB
977980
request = ucp_get_nb(ucx_ctx->ucp_peers[src].ucp_conn, dst_addr, size,
@@ -1065,7 +1068,7 @@ int mca_spml_ucx_put(shmem_ctx_t ctx, void* dst_addr, size_t size, void* src_add
10651068

10661069
#if HAVE_DECL_UCP_PUT_NBX
10671070
request = ucp_put_nbx(ucx_ctx->ucp_peers[dst].ucp_conn, src_addr, size,
1068-
(uint64_t)rva, ucx_mkey->rkey, &mca_spml_ucx_request_param);
1071+
(uint64_t)rva, ucx_mkey->rkey, &mca_spml_ucx_request_param_b);
10691072
res = opal_common_ucx_wait_request(request, ucx_ctx->ucp_worker[0], "ucp_put_nbx");
10701073
#elif HAVE_DECL_UCP_PUT_NB
10711074
request = ucp_put_nb(ucx_ctx->ucp_peers[dst].ucp_conn, src_addr, size,

0 commit comments

Comments
 (0)