Boost logo

Boost Users :

Subject: Re: [Boost-users] Signal code: Address not mapped (1) eroor
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-03-17 14:36:11


AMDG

alev mutlu wrote:
> int arraySize = 7;
> <snip>
> int main(int argc, char* argv[])
> {
> <snip>
>
> if (world.rank() == MASTER){
> scatter(world, C, relMyValues, w_mySize, 0);
> }
> else{
> scatter(world, C, relMyValues, w_mySize, 0);
> }
> }
>

I don't know much about MPI, so this may be totally
off, but the implementation seems to assume that you're
going to send an equal number of elements to each process.
If arraySize is not evenly divisible by world.size(), this could
cause MPI_Scatter to read uninitialized memory,
which would explain your problem.

In Christ,
Steven Watanabe


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