[It's somewhat annoying to have to subscribe to de...@open-mpi.org
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 <rola...@cisco.com>

--- 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", 

Reply via email to