<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi All,<br>
<br>
I ran into a problem with MPI_SCATTERV. When the sendcounts (scounts
in code) is the same for every process, it works fine, but if the
sendcounts is different (e.g., 1, 2, 3, 4 for 4 processes,
respectively), there will be error as follows:<br>
<br>
Fatal error in PMPI_Scatterv: Message truncated, error stack:<br>
PMPI_Scatterv(376)................:
MPI_Scatterv(sbuf=0000000000000000, scnts=0000000000E16CD0,
displs=0000000000E16CA0,<br>
MPI_INT, rbuf=0000000002BD0050, rcount=1, MPI_INT, root=0,
MPI_COMM_WORLD) failed<br>
MPIR_Scatterv_impl(187)...........:<br>
MPIR_Scatterv(144)................:<br>
MPIDI_CH3U_Receive_data_found(129): Message from rank 0 and tag 6
truncated; 16 bytes received but buffer size is 4<br>
<br>
The code is simple as follows:<br>
<br>
call MPI_SCATTERV(ja_in, <font color="#ff0000"><b>scounts</b></font>,
displs, MPI_INT, ja, <font color="#ff0000"><b>scounts</b></font>,
MPI_INT, 0, comm , ierr)<br>
<br>
ja_in is allocated for process #0 and ja is allocated for every
process. The size of ja_in and ja is big enough to hold large
dataset.<br>
<br>
Thanks and regards,<br>
<br>
Danyang
</body>
</html>