We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33a6e4f commit e08e54eCopy full SHA for e08e54e
tensorflow/contrib/verbs/rdma.cc
@@ -476,7 +476,11 @@ void RdmaChannel::Connect(const RdmaAddress& remoteAddr) {
476
struct ibv_qp_attr attr;
477
memset(&attr, 0, sizeof(ibv_qp_attr));
478
attr.qp_state = IBV_QPS_RTR;
479
- attr.path_mtu = IBV_MTU_4096;
+ struct ibv_port_attr port_attr;
480
+ CHECK(!ibv_query_port(adapter_->context_, (uint8_t)1, &port_attr))
481
+ << "Query port failed";
482
+ // This assumes both QP's ports are configured with the same MTU
483
+ attr.path_mtu = port_attr.active_mtu;
484
attr.dest_qp_num = remoteAddr.qpn;
485
attr.rq_psn = remoteAddr.psn;
486
attr.max_dest_rd_atomic = 1;
0 commit comments