Hello
I am trying to run
http://x10-lang.org/documentation/code-examples/small-examples.html?id=103example
with MPI, as follows:
*export X10_NPLACES=2
x10c++ **MontePiCluster.x10 -o montepiobj -O
mpirun -np 4 ./montepiobj 1000 2 4
*
Here ./montepiobj 1000 2 4 tells to run with 1000 guesses, at 2 places with
4 threads.
In the MontePiCluster.x10 file, I have just added one statement:
*Console.OUT.println(" I am running at "+ places + " places ");*
So, the output comes:
*I am running at 2 places
I am running at 2 places
The value of pi is 3.112
I am running at 2 places
The value of pi is 3.112
The value of pi is 3.112
I am running at 2 places
The value of pi is 3.112*
So, my expectation was that with *-np 4,* and* *X10*_*NPLACES=2*, *it will
make it 4*2 = 8 places; but what is happening right now is that same m1 is
being run at 4 mpi processors. How can we use the mpi processor so that
value of pi is calculated at 8 places (only then using MPI is of any use )
and not at 2 places, repeated at 4 processors.
I will be thankful for your answers.
Thanks and Regards
Sparsh Mittal
------------------------------------------------------------------------------
The Go Parallel Website, sponsored by Intel - in partnership with Geeknet,
is your hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials, tech docs,
whitepapers, evaluation guides, and opinion stories. Check out the most
recent posts - join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users