[mpich2-commits] r4099 - mpich2/trunk/src/mpid/ch3/src

jayesh at mcs.anl.gov jayesh at mcs.anl.gov
Tue Mar 17 11:47:18 CDT 2009


Author: jayesh
Date: 2009-03-17 11:47:18 -0500 (Tue, 17 Mar 2009)
New Revision: 4099

Modified:
   mpich2/trunk/src/mpid/ch3/src/ch3u_request.c
Log:
Unpack to the *right* iov buffers. The original code ignored iov offsets. - refer ticket #462 for details - No reviewer

Modified: mpich2/trunk/src/mpid/ch3/src/ch3u_request.c
===================================================================
--- mpich2/trunk/src/mpid/ch3/src/ch3u_request.c	2009-03-17 16:42:55 UTC (rev 4098)
+++ mpich2/trunk/src/mpid/ch3/src/ch3u_request.c	2009-03-17 16:47:18 UTC (rev 4099)
@@ -358,10 +358,10 @@
 	MPIU_Assert(last > 0);
 	MPID_Segment_unpack_vector(rreq->dev.segment_ptr, 
 				   rreq->dev.segment_first,
-				   &last, rreq->dev.iov, &rreq->dev.iov_count);
+				   &last, &rreq->dev.iov[rreq->dev.iov_offset], &rreq->dev.iov_count);
 	MPIU_DBG_MSG_FMT(CH3_CHANNEL,VERBOSE,(MPIU_DBG_FDEST,
-   "post-upv: first=" MPIDI_MSG_SZ_FMT ", last=" MPIDI_MSG_SZ_FMT ", iov_n=%d",
-			  rreq->dev.segment_first, last, rreq->dev.iov_count));
+   "post-upv: first=" MPIDI_MSG_SZ_FMT ", last=" MPIDI_MSG_SZ_FMT ", iov_n=%d, iov_offset=%d",
+			  rreq->dev.segment_first, last, rreq->dev.iov_count, rreq->dev.iov_offset));
 	MPIU_Assert(rreq->dev.iov_count >= 0 && rreq->dev.iov_count <= 
 		    MPID_IOV_LIMIT);
 



More information about the mpich2-commits mailing list