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