[openib-general] MVAPICH viadev_post_recv issue

Ira Weiny weiny2 at llnl.gov
Fri Mar 10 11:23:02 PST 2006


With the new 1.0 branch of stuff.  (Pulled from svn about a week ago.)  I have been getting the following error from mvapich.


[0] Abort: Error posting recv 22 (0x735f88 ?= 0x735804)
 at line 176 in file viapriv.c
[1] Abort: Error posting recv 22 (0x735f88 ?= 0x735804)
 at line 176 in file viapriv.c

The number there is the return code from ibv_post_recv.  I don't understand where that value is comming from.  ibv_rc_pingpong is working just fine.

What am I doing wrong?
Ira


I changed the print this way:

16:42:58 > svn diff
Index: mvapich-gen2/mpid/ch_gen2/viapriv.c
===================================================================
--- mvapich-gen2/mpid/ch_gen2/viapriv.c (revision 51)
+++ mvapich-gen2/mpid/ch_gen2/viapriv.c (working copy)
@@ -166,11 +166,14 @@
 void viadev_post_recv(ibv_connection_t * c, vbuf * v)
 {   
     struct ibv_recv_wr *bad_wr;
+    int    rc = 0;

     v->grank = c->global_rank;
-    if(ibv_post_recv(c->qp_hndl, &(v->desc.u.rr), &bad_wr)) {
+    if((rc = ibv_post_recv(c->qp_hndl, &(v->desc.u.rr), &bad_wr)) != 0) {
         error_abort_all(IBV_RETURN_ERR,
-                "Error posting recv\n");
+                "Error posting recv %d (%p ?= %p)\n",
+                rc,
+                &(v->desc.u.rr), bad_wr);
     }
 }




More information about the general mailing list