Re: [OMPI users] avoid usage of ssh on local machine

2008-11-17 Thread Sun, Yongqi (E F ES EN 72)
st regards Sun -Original Message- From: users-boun...@open-mpi.org [mailto:users-boun...@open-mpi.org] On Behalf Of Jeff Squyres Sent: Montag, 17. November 2008 13:18 To: Open MPI Users Subject: Re: [OMPI users] avoid usage of ssh on local machine On Nov 17, 2008, at 7:04 AM, Sun, Yongqi

Re: [OMPI users] avoid usage of ssh on local machine

2008-11-17 Thread Jeff Squyres
On Nov 17, 2008, at 7:04 AM, Sun, Yongqi (E F ES EN 72) wrote: The OMPI is trying to launch 192.168.160.1, which is not in my ifconfig. The contents of ifconfig and /etc/hosts are attached. What should I do now? OMPI got that IP address from somewhere; probably by a name resolution of the

Re: [OMPI users] avoid usage of ssh on local machine

2008-11-17 Thread Sun, Yongqi (E F ES EN 72)
usage of ssh on local machine Hi Sun i forgot to add that once you've called gethostname(), you can determine the length of the name by using strlen() on your array 'name'. Jody On Mon, Nov 17, 2008 at 10:45 AM, jody wrote: > Hi Sun > > AFAIK, the second parameter (len) in

Re: [OMPI users] avoid usage of ssh on local machine

2008-11-17 Thread jody
Hi Sun i forgot to add that once you've called gethostname(), you can determine the length of the name by using strlen() on your array 'name'. Jody On Mon, Nov 17, 2008 at 10:45 AM, jody wrote: > Hi Sun > > AFAIK, the second parameter (len) in gethostname is an input > parameter, specifying the

Re: [OMPI users] avoid usage of ssh on local machine

2008-11-17 Thread jody
Hi Sun AFAIK, the second parameter (len) in gethostname is an input parameter, specifying the length of the array your passing as the first parameter. The name of the host will be placed in the array, but it will truncated after len characters. I don't know how to determine the length of the host

Re: [OMPI users] avoid usage of ssh on local machine

2008-11-17 Thread Sun, Yongqi (E F ES EN 72)
Hello, I still have no clue how to use the local machine by default. My /etc/hosts file and the result of ifconfig are attached. I've tried gethostname() by myself but an abnormal result generated. My code is: /// #include #include int main() { char na

Re: [OMPI users] avoid usage of ssh on local machine

2008-11-14 Thread Ralph Castain
Hello OMPI doesn't use ssh by default to launch a daemon local to mpirun - instead, we locally fork/exec the orted. The problem here is that OMPI doesn't realize that you are launching on the local machine. This is usually caused by confusion when IP resolving the hostname returned by get

[OMPI users] avoid usage of ssh on local machine

2008-11-14 Thread Sun, Yongqi (E F ES EN 72)
Hello, I have two questions about ssh and details follow. Questions: Is there any way to prevent the usage of ssh on my local desktop and launch locally by default? (The FAQ page writes "Also note that if using a launcher that uses a hostfile and no hostfile is specified, all processes are launc