I think the problem is you are using mpirun with the sockets backend.  Try
this:

X10_NPLACES=4 ./sw -s data/short9.txt -l data/long9.txt -p

To use mpirun you have to compile X10 for MPI, the binary downloads do not
support it.



On Tue, Jan 18, 2011 at 7:23 AM, David P Grove <gro...@us.ibm.com> wrote:

>
>
> Myoungkyu Song <mks...@vt.edu> wrote on 01/17/2011 11:52:34 PM:
> >
> > [X10-users] [Question] how to run C++ backend application on multiple
> places.
> >
> > Hi, x10 users
> >
> > In terms of the ‘SSCA1’ benchmark application (which located in the
> > X10 benchmark repository),
> > I tried to run two C++ and Java backend applications with same places
> > (e.g., 4 places.)
> >
> > (1) x10 -NUMBER_OF_LOCAL_PLACES=4 ssca1.SW -s data/short9.txt -l
> > data/long9.txt -p data/baseDNA.txt -r 1
> > (2) mpirun -n 4 ./sw -s data/short9.txt -l data/long9.txt -p
> > data/baseDNA.txt -r 1
> >
> > #1 ran on 4 places, however #2 ran on 1 place while creating 4 processes.
> > I am wondering how the C++ backend application run on the multiple
> > places, if I have a single desktop machine.
> >
> > $ OS: Linux 2.6.32-26-generic-Ubuntu
> > $ x10c version: 2.1.1
> > $ g++ (Ubuntu 4.4.3-4ubuntu5) 4.4.3
> > $ javac 1.6.0_20
> > $ java version "1.6.0_20"
> >
> >
>
> Hi,  with the C++ backend, each place is mapped to its own process.  If you
> are only running on a single machine, then all the processes will be
> created on the machine.  If you run on multiple machines, the processes
> will be distributed among the machines.  It looks like you are using
> mpirun.  So if you provide a hostfile in the manner expected by your
> version of mpirun, then the places will be distributed among the hosts by
> mpirun.
>
> --dave
>
> ------------------------------------------------------------------------------
> Protect Your Site and Customers from Malware Attacks
> Learn about various malware tactics and how to avoid them. Understand
> malware threats, the impact they can have on your business, and how you
> can protect your company and customers by using code signing.
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> X10-users mailing list
> X10-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/x10-users
>
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to