Hi Anh - when using more than one place, the runtime will check the environment variables X10_HOSTFILE or X10_HOSTLIST to determine what machines those places should run on (see "Running with Sockets Backend" here: http://x10-lang.org/documentation/getting-started/x10rt-implementations.html). If these are not set, it will try to start the places on "localhost". Does your computer have "localhost" defined (can you ping "localhost")? If so, can you please provide us with the full command line that you are running, including any X10-specific environment variables that you have set?
- Ben |------------> | From: | |------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| |Anh Trinh <anh.tr...@nasa.gov> | >--------------------------------------------------------------------------------------------------------------------------------------------------| |------------> | To: | |------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| |<x10-users@lists.sourceforge.net>, | >--------------------------------------------------------------------------------------------------------------------------------------------------| |------------> | Date: | |------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| |11/01/2011 22:04 | >--------------------------------------------------------------------------------------------------------------------------------------------------| |------------> | Subject: | |------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| |[X10-users] problem run on localmachine with X10_NPLACES=2 | >--------------------------------------------------------------------------------------------------------------------------------------------------| Hi I tried the following code, and it ran fine with X10_NPLACES=1 but not other than that. It either gives nothing on screen or "FATAL Error 22 : cannot resolve remote hostname: Invalid argument" import x10.io.*; class Test{ public static def main(Array[String](1)){ x10.io.Console.OUT.println(Place.ALL_PLACES); x10.io.Console.OUT.println(Place.MAX_PLACES); } } ------------------------------------------------------------------------------ RSA® Conference 2012 Save $700 by Nov 18 Register now! http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ X10-users mailing list X10-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/x10-users ------------------------------------------------------------------------------ RSA® Conference 2012 Save $700 by Nov 18 Register now! http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ X10-users mailing list X10-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/x10-users