diff --git a/src/ib.cc b/src/ib.cc index 1c7c0c71..db8e0325 100644 --- a/src/ib.cc +++ b/src/ib.cc @@ -383,6 +383,10 @@ int mscclppIbQp::stageSendWithImm(struct mscclppIbMr *ibMr, const mscclppIbMrInf int mscclppIbQp::postSend() { + if (this->wrn == 0) { + return 0; + } + struct ibv_send_wr *bad_wr; int ret = ibv_post_send(this->qp, this->wrs, &bad_wr); if (ret != 0) {