Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

From: Roland Dreier (rolandd_at_[hidden])
Date: 2005-09-26 16:20:20


[It's somewhat annoying to have to subscribe to devel_at_[hidden]
just to be able to send patches, but oh well...]

This patch updates Open MPI for the new ibv_create_cq() API.

Signed-off-by: Roland Dreier <rolandd_at_[hidden]>

--- ompi/mca/btl/openib/btl_openib.c (revision 7507)
+++ ompi/mca/btl/openib/btl_openib.c (working copy)
@@ -656,7 +656,8 @@ int mca_btl_openib_module_init(mca_btl_o
     }
 
     /* Create the low and high priority queue pairs */
- openib_btl->ib_cq_low = ibv_create_cq(ctx, mca_btl_openib_component.ib_cq_size, NULL);
+ openib_btl->ib_cq_low = ibv_create_cq(ctx, mca_btl_openib_component.ib_cq_size,
+ NULL, NULL, 0);
     
     if(NULL == openib_btl->ib_cq_low) {
         BTL_ERROR(("error creating low priority cq for %s errno says %s\n",
@@ -665,7 +666,8 @@ int mca_btl_openib_module_init(mca_btl_o
         return OMPI_ERROR;
     }
 
- openib_btl->ib_cq_high = ibv_create_cq(ctx, mca_btl_openib_component.ib_cq_size, NULL);
+ openib_btl->ib_cq_high = ibv_create_cq(ctx, mca_btl_openib_component.ib_cq_size,
+ NULL, NULL, 0);
     
     if(NULL == openib_btl->ib_cq_high) {
         BTL_ERROR(("error creating high priority cq for %s errno says %s\n",