[openib-general] OpenIB gen2 support ibv_create_cq

Matt L. Leininger mlleini at ca.sandia.gov
Mon Oct 3 11:05:37 PDT 2005


The latest mvapich-gen2 does not compile with the latest OpenIB gen2
code base.  The number of function arguments to ibv_create_cq has
changed from 3 to 5.  This looks like a simple fix, but you may need to
support both the old and new API for ibv_create_cq.  The current OpenIB
gen2 backport to 2.6.9 (for RedHat) uses the older API.  



Woody, are there plans to update the 2.6.9 backports to svn version 3632
or more recent to fix this?




mvapich-gen2-1.0-102/mpid/ch_gen2/viainit.c ~line 118

static void create_cq(void)
{
    ibv_dev.cq_hndl = ibv_create_cq(ibv_dev.context,
        viadev_cq_size, NULL);

    if(!ibv_dev.cq_hndl) {
        error_abort_all(GEN_EXIT_ERR, "Error creating CQ\n");
    }
}



OpenIB verbs.h

extern struct ibv_cq *ibv_create_cq(struct ibv_context *context, int
cqe,
                                    void *cq_context,
                                    struct ibv_comp_channel *channel,
                                    int comp_vector);


 Thanks,

	- Matt





More information about the general mailing list