Boost logo

Boost Users :

Subject: Re: [Boost-users] boost MPI issue on windows
From: Nick Collier (nick.collier_at_[hidden])
Date: 2010-11-01 10:41:17


With that in place in Release mode, t

1st (in scatter.hpp) ar.size(): 48
2nd (before line 31 in point_to_point.cpp) ar.size(): 2292879725

In Debug mode, both are 48.

thanks,

Nick
On Nov 1, 2010, at 6:46 AM, Matthias Troyer wrote:

> Great, so far all is correct. Could you now please add a similar print statement before lie 31 of libs/mpi/src/point_to_point.cpp ?
>
> Matthias
>
>
> On 27 Oct 2010, at 15:41, Nick Collier wrote:
>
>> ar.size(), as added below, returns 48 in both debug and release modes.
>>
>> thanks,
>>
>> Nick
>> On Oct 26, 2010, at 4:33 PM, Matthias Troyer wrote:
>>
>>>
>>> On 26 Oct 2010, at 15:52, Nick Collier wrote:
>>>
>>>> I winnowed my own code down to a simple scatter call. I get the error under release mode but not under debug. Here's the code:
>>>>
>>>> namespace mpi = boost::mpi;
>>>> int main(int argc, char **argv) {
>>>> mpi::environment env(argc, argv);
>>>> mpi::communicator world;
>>>>
>>>> vector<int> out;
>>>> vector<vector<int> > in;
>>>> if (world.rank() == 0) {
>>>> for (int i = 0; i < world.size(); ++i) {
>>>> vector<int> vec(10, 12);
>>>> in.push_back(vec);
>>>> }
>>>> }
>>>>
>>>> try {
>>>> mpi::scatter(world, in, out, 0);
>>>> } catch (std::exception& ex) {
>>>> std::cerr << ex.what() << std::endl;
>>>> throw ex;
>>>> }
>>>>
>>>> cout << world.rank() << " : " << out.size() << endl;
>>>> }
>>>>
>>>> And the error is:
>>>>
>>>> ar size: 4293462132
>>>> MPI_Send: Invalid count, error stack:
>>>> MPI_Send(176): MPI_Send(buf=0x0016F78C, count=-1505164, MPI_PACKED, dest=1, tag=
>>>> 2147483647, MPI_COMM_WORLD) failed
>>>> MPI_Send(101): Negative count, value is -1505164
>>>>
>>>
>>> This seems to happen in line 73 of boost/mpi/collectives/scatter.hpp . To see where exactly this optimization issue arises, could you please add a print statement
>>>
>>> std::cerr << oa.size() << std::endl;
>>>
>>> before line 73 to print the size of the archive there.
>>>
>>> Matthias
>>>
>>> _______________________________________________
>>> Boost-users mailing list
>>> Boost-users_at_[hidden]
>>> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>>
>> _______________________________________________
>> Boost-users mailing list
>> Boost-users_at_[hidden]
>> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net