Fix IB write issue

This commit is contained in:
Binyang Li
2023-05-04 11:03:45 +00:00
parent 9ecf1f9945
commit bb3239fd6b

View File

@@ -128,6 +128,7 @@ IbQp::IbQp(void* ctx, void* pd, int port)
throw std::runtime_error(err.str());
}
this->qp = _qp;
this->wrn = 0;
MSCCLPPTHROW(mscclppCalloc(reinterpret_cast<struct ibv_send_wr**>(&this->wrs), MSCCLPP_IB_MAX_SENDS));
MSCCLPPTHROW(mscclppCalloc(reinterpret_cast<struct ibv_sge**>(&this->sges), MSCCLPP_IB_MAX_SENDS));
MSCCLPPTHROW(mscclppCalloc(reinterpret_cast<struct ibv_wc**>(&this->wcs), MSCCLPP_IB_CQ_POLL_NUM));