From 16d03318727a8a73f38621740292a2e7e3bc02ca Mon Sep 17 00:00:00 2001 From: Arlin Davis Date: Wed, 22 May 2013 14:27:54 -0700 Subject: [PATCH] mpxyd: MPI IMB scatter on 12 ranks, 2 KNCs + 2 Hosts, fails multiple QP's processing multiple completions hit bug in mix_dto_event when copying multiple cq wc entries into a single dat_mix_dto_comp_t msg. Signed-off-by: Arlin Davis --- dapl/svc/mpxyd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dapl/svc/mpxyd.c b/dapl/svc/mpxyd.c index 375efad..754b4b7 100644 --- a/dapl/svc/mpxyd.c +++ b/dapl/svc/mpxyd.c @@ -2619,7 +2619,7 @@ static void mix_dto_event(struct mcm_cq *m_cq, struct ibv_wc *wc, int nc) msg.wc_cnt = nc; for (i=0; i < nc; i++) { - memcpy(&msg.wc, &wc[i], sizeof(*wc)); + memcpy(&msg.wc[i], &wc[i], sizeof(*wc)); if (msg.wc[i].status != IBV_WC_SUCCESS) { mlog(0, " ERROR (ep=%d): cq %p id %d ctx %p stat %d" -- 2.41.0