VanJay011379
2007-01-04 00:36:07 UTC
Hi,
I have a simple program to pass an array and the array size between two
different processors.
The main function works as follows. If the rank is 0, it is the
coordinator, if greater than 0, it is the worker.
I have the coordinator dynamically allocate memory to an int pointer.
I am trying to pass this pointer between the coordinator and the
worker. I think I am having an syntactical issue.
My code is at http://gis.sis.pitt.edu/temp/chris/mpi/simple2/test.c
The output is at
http://gis.sis.pitt.edu/temp/chris/mpi/simple2/test2.out
What am I doing wrong? This had me tied up for hours.
Cheers,
Chris
I have a simple program to pass an array and the array size between two
different processors.
The main function works as follows. If the rank is 0, it is the
coordinator, if greater than 0, it is the worker.
I have the coordinator dynamically allocate memory to an int pointer.
I am trying to pass this pointer between the coordinator and the
worker. I think I am having an syntactical issue.
My code is at http://gis.sis.pitt.edu/temp/chris/mpi/simple2/test.c
The output is at
http://gis.sis.pitt.edu/temp/chris/mpi/simple2/test2.out
What am I doing wrong? This had me tied up for hours.
Cheers,
Chris