From: Greg W. <gw...@la...> - 2004-04-20 22:06:52
|
Daniel, None that I know of. The file clients/sys/bproc.h documents all the interfaces that are available. In order to get the node number from the IP address, you now use: struct bproc_node_set_t list; if (bproc_nodelist(&list) == -1) { perror("bproc_nodelist"); exit(1); } for (i=0; i < list.size; i++) { struct sockaddr_in *sin = (struct sockaddr_in *)&list.node[i].addr; if (memcmp(&addr, &sin->sin_addr, sizeof(addr)) == 0) { return list.node[i].node; } } In order to look up a node by it's name, you first convert the name to an IP address, then use the above. If you're running the latest beonss then you can look up nodes using the names "master", "self", "n0", "n1", etc. using the standard gethostbyname() routines. Regards, Greg On 20/04/2004, at 12:41 PM, Daniel Gruner wrote: > Hi > > Is there any kind of documentation on the BProc api changes between > 3.x and > 4.0? I am interested in getting lam-mpi to work, and it requires > porting. > It complains that a bunch of functions are no longer there: > > bproc_getnodebyname > bproc_nodenumber > > Could someone point me to the proper replacement functions? > > Thanks, > Daniel > -- > > Dr. Daniel Gruner dg...@ti... > Dept. of Chemistry dan...@ut... > University of Toronto phone: (416)-978-8689 > 80 St. George Street fax: (416)-978-5325 > Toronto, ON M5S 3H6, Canada finger for PGP public key > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > BProc-users mailing list > BPr...@li... > https://lists.sourceforge.net/lists/listinfo/bproc-users > |