From 68a258fce5a5b669d6a9f142b5a07a01e2fb79fe Mon Sep 17 00:00:00 2001 From: Binyang Li Date: Fri, 24 Mar 2023 05:31:10 +0000 Subject: [PATCH] Fix postSend bug --- src/ib.cc | 4 ++++ 1 file changed, 4 insertions(+) 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) {