Update of /cvsroot/boost/boost/libs/mpi/src
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv22467/src
Modified Files:
point_to_point.cpp
Log Message:
Workarounds for Microsoft's MPI toolchain
Index: point_to_point.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/mpi/src/point_to_point.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- point_to_point.cpp 17 Jan 2007 02:48:50 -0000 1.1
+++ point_to_point.cpp 16 Feb 2007 21:02:22 -0000 1.2
@@ -31,7 +31,8 @@
const void* size = &ar.size();
BOOST_MPI_CHECK_RESULT(MPI_Send,
(const_cast<void*>(size), 1,
- get_mpi_datatype<std::size_t>(), dest, tag, comm));
+ get_mpi_datatype<std::size_t>(ar.size()),
+ dest, tag, comm));
BOOST_MPI_CHECK_RESULT(MPI_Send,
(const_cast<void*>(ar.address()), ar.size(),
MPI_PACKED,
@@ -47,7 +48,7 @@
const void* size = &ar.size();
BOOST_MPI_CHECK_RESULT(MPI_Isend,
(const_cast<void*>(size), 1,
- get_mpi_datatype<std::size_t>(),
+ get_mpi_datatype<std::size_t>(ar.size()),
dest, tag, comm, out_requests));
BOOST_MPI_CHECK_RESULT(MPI_Isend,
(const_cast<void*>(ar.address()), ar.size(),
@@ -67,7 +68,7 @@
const void* size = &ar.size();
BOOST_MPI_CHECK_RESULT(MPI_Isend,
(const_cast<void*>(size), 1,
- get_mpi_datatype<std::size_t>(),
+ get_mpi_datatype<std::size_t>(ar.size()),
dest, tag, comm, out_requests));
BOOST_MPI_CHECK_RESULT(MPI_Isend,
(const_cast<void*>(ar.address()), ar.size(),
@@ -83,7 +84,7 @@
{
std::size_t count;
BOOST_MPI_CHECK_RESULT(MPI_Recv,
- (&count, 1, get_mpi_datatype<std::size_t>(),
+ (&count, 1, get_mpi_datatype<std::size_t>(count),
source, tag, comm, &status));
// Prepare input buffer and receive the message
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs