I disagree (it's easy enough to throw an NotIPException if necessary), but 
let's take this discussion to the JIRA.
------------------------------------------------------------------------
Stephen Fink
IBM T.J. Watson Research Center
sjf...@us.ibm.com
(914)784-7776




From:
Benjamin W Herta/Fishkill/i...@ibmus
To:
Mailing list for users of the X10 programming language 
<x10-users@lists.sourceforge.net>
Date:
12/10/2010 12:49 PM
Subject:
Re: [X10-users] How to Map IP address to Place ID



X10 programs can run on non-IP networks.  If we add in something like
java.net.InetAddress, then we'll be adding in a utility that works on some
platforms but not others.  I prefer the current network-independent
mechanism of only having a simple place ID.  As has already been pointed
out, the user controls which place runs on which host, so it's already
possible to indirectly know the IP address.


       - Ben


|------------>
| From:      |
|------------>
 
>--------------------------------------------------------------------------------------------------------------------------------------------------|
  |Stephen Fink/Watson/i...@ibmus                                  |
 
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| To:        |
|------------>
 
>--------------------------------------------------------------------------------------------------------------------------------------------------|
  |Mailing list for users of the X10 programming language 
<x10-users@lists.sourceforge.net>                 |
 
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Date:      |
|------------>
 
>--------------------------------------------------------------------------------------------------------------------------------------------------|
  |12/10/2010 12:06 PM                        |
 
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Subject:   |
|------------>
 
>--------------------------------------------------------------------------------------------------------------------------------------------------|
  |Re: [X10-users] How to Map IP address to Place ID               |
 
>--------------------------------------------------------------------------------------------------------------------------------------------------|





I'd suggest that Li Yan wants an X10 equivalent of java.net.InetAddress.
Since we have permission to port libraries from Harmony, we can put this
on the list of desired classes.

I'll open a JIRA feature request for this.

SJF
------------------------------------------------------------------------
Stephen Fink
IBM T.J. Watson Research Center
sjf...@us.ibm.com
(914)784-7776




From:
Igor Peshansky/Watson/i...@ibmus
To:
Mailing list for users of the X10 programming language
<x10-users@lists.sourceforge.net>
Cc:
Yan CRL Li <liyan...@cn.ibm.com>, Qi Ming Teng <teng...@cn.ibm.com>
Date:
12/10/2010 08:28 AM
Subject:
Re: [X10-users] How to Map IP address to Place ID



Yan CRL Li <liyan...@cn.ibm.com> wrote on 12/10/2010 05:35:06 AM:

> For this scenario, I know the IP address of each node, I want to know
each
> Place id corresponding to this IP.
>
> For example :I put different files on these nodes. I start 5 places on
two
> physical nodes:
> File A, File B are on node 1 with IP: 192.168.1.1
> FileC,File D and File E anre on node 2 with IP :192.168.1.2
>
> When I access these Files, I need to know the mapping relationship
between
> Place ID and IP address.
>
> But when programming with X10, I only know the place id, I do not know
> which node is mapping to this id, how can I do this ?

Yan,

The mapping of places to nodes is external to X10.

When you launch using the sockets or MPI transport, you specify the host
list
as one of the parameters.  The hosts will be picked out of the host list
in a
round-robin fashion, so you know exactly which host corresponds to which
place.

If you use an external launcher, e.g., SLURM, you would have to look at
the
documentation for that system to see how to force it to use particular
nodes
as specific places.

The usual approach is to have a shared filesystem, put all 5 files on it,
and let each node access the file that corresponds to its place.  I
realize
that the files may be too large for this to be immediately feasible, but
disk space is cheap, and it may end up being the most general solution.
        Igor
--
Igor Peshansky  (note the spelling change!)
IBM T.J. Watson Research Center
X10: Parallel Productivity and Performance (http://x10-lang.org/)
XJ: No More Pain for XML's Gain (http://www.research.ibm.com/xj/)
"I hear and I forget.  I see and I remember.  I do and I understand" --
Xun Zi


------------------------------------------------------------------------------

_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users


------------------------------------------------------------------------------

Oracle to DB2 Conversion Guide: Learn learn about native support for
PL/SQL,
new data types, scalar functions, improved concurrency, built-in packages,
OCI, SQL*Plus, data movement tools, best practices and more.
http://p.sf.net/sfu/oracle-sfdev2dev
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users




------------------------------------------------------------------------------
Oracle to DB2 Conversion Guide: Learn learn about native support for 
PL/SQL,
new data types, scalar functions, improved concurrency, built-in packages, 

OCI, SQL*Plus, data movement tools, best practices and more.
http://p.sf.net/sfu/oracle-sfdev2dev 
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users


------------------------------------------------------------------------------
Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL,
new data types, scalar functions, improved concurrency, built-in packages, 
OCI, SQL*Plus, data movement tools, best practices and more.
http://p.sf.net/sfu/oracle-sfdev2dev 
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to