[openib-general] [PATCH] Update Open MPI for new libibverbs API
Roland Dreier
rolandd at cisco.com
Mon Sep 26 14:20:20 PDT 2005
[It's somewhat annoying to have to subscribe to devel at 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 <rolandd at 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",
More information about the general
mailing list