Skip to content

Commit 83bc1c5

Browse files
committed
Merge pull request open-mpi#903 from francois-wellenreiter/osc_disable_portals4_evt_send
OSC portals4 : do not generate an EVENT_SEND to avoid to filter it
2 parents 0a5d3a5 + 38f4329 commit 83bc1c5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ompi/mca/osc/portals4/osc_portals4_component.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,6 @@ progress_callback(void)
218218
count++;
219219

220220
if (NULL != ev.user_ptr) {
221-
/* can't disable send events, but they don't count in ops */
222-
if (ev.type == PTL_EVENT_SEND) continue;
223221
req = (ompi_osc_portals4_request_t*) ev.user_ptr;
224222
opal_atomic_add_size_t(&req->super.req_status._ucount, ev.mlength);
225223
ops = opal_atomic_add_32(&req->ops_committed, 1);
@@ -458,7 +456,7 @@ component_select(struct ompi_win_t *win, void **base, size_t size, int disp_unit
458456

459457
md.start = 0;
460458
md.length = PTL_SIZE_MAX;
461-
md.options = PTL_MD_EVENT_CT_REPLY | PTL_MD_EVENT_CT_ACK;
459+
md.options = PTL_MD_EVENT_SEND_DISABLE | PTL_MD_EVENT_CT_REPLY | PTL_MD_EVENT_CT_ACK;
462460
md.eq_handle = mca_osc_portals4_component.matching_eq_h;
463461
md.ct_handle = module->ct_h;
464462
ret = PtlMDBind(module->ni_h, &md, &module->req_md_h);

0 commit comments

Comments
 (0)