Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

Subject: [OMPI devel] bug in MCA_PML_OB1_RECV_REQUEST_UNPACK()
From: Roberto Ammendola (roberto.ammendola_at_[hidden])
Date: 2009-05-27 11:55:35


Dear all,
i think i found a bug in the ob1 level, while using a multi-segment frag
on receive side. I found that the unpack function add the offset of the
mca_pml_ob1_frag_hdr_t header in every segment, while only the first one
should have. Is that correct?
That's the very simple correction:

--- ompi/mca/pml/ob1/pml_ob1_recvreq.h (revision 21297)
+++ ompi/mca/pml/ob1/pml_ob1_recvreq.h (working copy)
@@ -263,6 +263,7 @@
                 iov[iov_count].iov_base = (IOVBASE_TYPE*)
        \
                     ((unsigned char*)segment->seg_addr.pval + offset);
        \
                 iov_count++;
        \
+ offset = 0;
        \
             }
        \
         }
        \
         PERUSE_TRACE_COMM_OMPI_EVENT (PERUSE_COMM_REQ_XFER_CONTINUE,
        \

greetings
roberto

-- 
______________________________________________________________________
     Roberto Ammendola    INFN - Roma II - APE group
tel: +39-0672594504  email: roberto.ammendola_at_[hidden]   // \
     Via della Ricerca Scientifica 1 - 00133 Roma             \\_/ //
__________________________________________  ''-.._.-''-.._.. -(||)(')
                                                              '''