problem with gather array
Hi
I am trying to scatter some values to workers and then gather them. But I
get strange error in gather step.
Any suggestions?
Below is the code and error file.
//mpicxx test-boost.cpp -o test-boost -I
/home1/mutlu/boost/include/boost-1_37/
/home1/mutlu/boost/lib/libboost_mpi-gcc41-mt-1_37.a
#include
Hi Alev, On Mar 9, 2010, at 10:43 AM, alev mutlu wrote:
I am trying to scatter some values to workers and then gather them. But I get strange error in gather step. Any suggestions?
Ensure your program runs correctly in serial before trying to run it in parallel. It looks like you never allocate array aa so the gather will fail. -- Noel
Ok, when space for the vector is allocated it works.
I have one more question, is it possible to call gather with different count
values for master and worker processes?
On Tue, Mar 9, 2010 at 10:16 PM, K. Noel Belcourt
Hi Alev,
On Mar 9, 2010, at 10:43 AM, alev mutlu wrote:
I am trying to scatter some values to workers and then gather them. But I get strange error in gather step. Any suggestions?
Ensure your program runs correctly in serial before trying to run it in parallel.
It looks like you never allocate array aa so the gather will fail.
-- Noel
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
On Mar 9, 2010, at 1:28 PM, alev mutlu wrote:
Ok, when space for the vector is allocated it works. I have one more question, is it possible to call gather with different count values for master and worker processes?
I think these http://www.boost.org/doc/libs/1_42_0/doc/html/mpi/ tutorial.html#mpi.gather http://www.boost.org/doc/libs/1_42_0/doc/html/boost/mpi/gather.html will answer your question. -- Noel
participants (2)
-
alev mutlu
-
K. Noel Belcourt