@@ -152,10 +152,10 @@ struct Endpoint {
152
152
153
153
void SetNodeID (int id) { node_id = id; }
154
154
155
- void InitWRContextHelper (struct ibv_pd *pd, WRContext *ctx,
156
- size_t num, WRContextType type ,
157
- struct ibv_mr **mr, unsigned int access,
158
- ThreadsafeQueue<WRContext *> *queue = nullptr ) {
155
+ void InitWRContextHelper (struct ibv_pd *pd, WRContext *ctx, size_t num,
156
+ WRContextType type, struct ibv_mr **mr ,
157
+ unsigned int access,
158
+ ThreadsafeQueue<WRContext *> *queue = nullptr ) {
159
159
char *buf;
160
160
aligned_malloc (reinterpret_cast <void **>(&buf), kMempoolChunkSize * num);
161
161
PS_CHECK (buf);
@@ -173,7 +173,8 @@ struct Endpoint {
173
173
}
174
174
}
175
175
176
- void Init (struct ibv_cq *cq, struct ibv_pd *pd, RDMAProvider *provider, rdma_cm_id *id = nullptr ) {
176
+ void Init (struct ibv_cq *cq, struct ibv_pd *pd, RDMAProvider *provider,
177
+ rdma_cm_id *id = nullptr ) {
177
178
struct ibv_qp_init_attr attr;
178
179
memset (&attr, 0 , sizeof (ibv_qp_init_attr));
179
180
attr.send_cq = cq;
@@ -191,7 +192,8 @@ struct Endpoint {
191
192
kMaxInlineSize = attr.cap .max_inline_data ;
192
193
193
194
PS_LOG (TRACE) << " qp created: pd=" << pd << " , cq=" << cq
194
- << " , qp=" << id->qp ->qp_num << " , maxInline=" << kMaxInlineSize ;
195
+ << " , qp=" << id->qp ->qp_num
196
+ << " , maxInline=" << kMaxInlineSize ;
195
197
if (inited == 0 ) {
196
198
rdma_provider = provider;
197
199
InitWRContextHelper (pd, start_ctx, kStartDepth , kRendezvousStartContext ,
@@ -386,8 +388,7 @@ class RDMATransport : public Transport {
386
388
WRContext *context = nullptr ;
387
389
endpoint_->free_start_ctx .WaitAndPop (&context);
388
390
389
- RendezvousStart *req =
390
- reinterpret_cast <RendezvousStart *>(context->buffer );
391
+ RendezvousStart *req = reinterpret_cast <RendezvousStart *>(context->buffer );
391
392
req->meta_len = msg_buf->inline_len ;
392
393
req->origin_addr = reinterpret_cast <uint64_t >(msg_buf);
393
394
req->data_num = msg_buf->data .size ();
@@ -466,8 +467,7 @@ class RDMATransport : public Transport {
466
467
467
468
WRContext *reply_ctx_ptr = nullptr ;
468
469
endpoint_->free_reply_ctx .WaitAndPop (&reply_ctx_ptr);
469
- auto *resp =
470
- reinterpret_cast <RendezvousReply *>(reply_ctx_ptr->buffer );
470
+ auto *resp = reinterpret_cast <RendezvousReply *>(reply_ctx_ptr->buffer );
471
471
472
472
// Populate reply with addresses and rkeys for both buffers
473
473
resp->meta_addr = reinterpret_cast <uint64_t >(buf_ctx->meta_buffer );
0 commit comments