[openib-general] Re: OpenIB gen2 support ibv_create_cq
Dhabaleswar Panda
panda at cse.ohio-state.edu
Mon Oct 3 15:47:54 PDT 2005
Matt,
> 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.
The patch has been included in the latest MVAPICH-Gen2 version checked
into the SVN a few hours ago. MVAPICH-Gen2 now compiles against the
latest Gen2 stack. If an older Gen2 stack is being used against the
latest MVAPICH-Gen2, we have added a new flag (-DGEN2_OLD_CQ_VERB) for
the code to be compiled with. More information on this has been added
to mvapich.user_guide.pdf (Version 1.1).
Hope this helps.
Thanks,
DK
> 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