"But, I still want to find out how to store the result in a data structure
with the type TaskPackage because
int type data can only be used to carry integers. Too limited."
you can do that with MPI, all you have to do is declare your own MPI type.
The command is MPI_type_struct. I haven't done t
Thanks for all your replies.
I want to do master-worker asynchronous communication.
The master needs to distribute tasks to workers and then collect results from
them.
master :
world.irecv(resultSourceRank, upStreamTaskTag,
myResultTaskPackage[iRank][taskCounterT3]);
I got this error "M
Hello Jack, list
As others mentioned, this may be a problem with dynamic
memory allocation.
It could also be a violation of statically allocated memory,
I guess.
You say:
My program can run well for 1,2,10 processors, but fail when the
number of tasks cannot
be divided evenly by number of proc
from the start of your program, after a certain activitiy, say after 10
lines use print statement with STOP/EXIT , also printing processor rank.
If u get all the processors than its fine. Move this printing little ahead
and get printing again. Repeat this process until u reach the place of
fault.
Also see http://www.open-mpi.org/faq/?category=debugging.
On Jul 1, 2010, at 3:17 AM, Asad Ali wrote:
> Hi Jack,
>
> Debugging OpenMPI with traditional debuggers is a pain.
> >From your error message it sounds that you have some memory allocation
> >problem. Do you use dynamic memory allocation
Hi Jack,
Debugging OpenMPI with traditional debuggers is a pain.
>From your error message it sounds that you have some memory allocation
problem. Do you use dynamic memory allocation (allocate and then free)?
I use display (printf()) command with MPIrank command. It tells me which
thread is givin
thanks
I am not familiar with OpenMPI.
Would you please help me with how to ask openMPI to show where the fault occurs
?
GNU debuger ?
Any help is appreciated.
thanks!!!
Jack
June 30 2010
List-Post: users@lists.open-mpi.org
Date: Wed, 30 Jun 2010 16:13:09 -0400
From: amja...@gmail.com
To: us