MPICH: p4_error Could not gethostbyname

Search:

MPICH: p4_error Could not gethostbyname

From: Jordi Carbo <Jorge.Carbo_at_email.domain.hidden>
Date: Tue, 09 Mar 2004 11:27:53 +0100

Dear ADF users,

We are trying to run ADF parallel in a Linux-PC-cluster
(RedHat 9.0).

Using the compiled executables by ADF, we managed to run
the serial version, but not the mpi parallel version neither in
a single processor nor in multi-processor fashion.

In both cases we got the following error:
##############################################
running /home/jordi/adf2003.01/bin/adf.exe on 4 LINUX ch_p4 processors
Created /home/jordi/test/ADF/tmp03/PI10334
p0_10460: p4_error: Could not gethostbyname for host icnode12; may be
invalid name
: 61
###############################################

We are using mpich-1.2.5 implementation of MPI, and OpenPBS queue system.
The script used for sending the calculations is the following.
###############################################
#!/bin/sh
#
#PBS -l nodes=2:ppn=2
#
export ADFHOME=/home/jordi/adf2003.01
export ADFRESOURCES=$ADFHOME/atomicdata
export ADFBIN=$ADFHOME/bin
export SCMLICENSE=$ADFHOME/adf.license
export SCM_TMPDIR=/SCR
export MPIRUN=/opt/mpich/gcc322/bin

export SCM_STDIN=$HOME/test/ADF/tmp03/job.in

if [ -n "$PBS_NODEFILE" ]; then
  SCM_MACHINEFILE="$PBS_NODEFILE"
  export SCM_MACHINEFILE
fi

cd $HOME/test/ADF/tmp03
$MPIRUN/mpirun -v -machinefile $PBS_NODEFILE -np 4 $ADFBIN/adf.exe
###############################################

As icnode* is not a fully qualified name, we tried to add the names in
/etc/hosts and
/etc/nsswithch.conf, but the problem still persists.

As we are new to parallel computing, may someone give us some tips to
overcome
these problems.

Thanks a lot for your help,

Jorge J. Carbo

-- 
------------------------------
Dr. Jorge J. Carbo
University of Heidelberg
Organisch-chemische Institute
Im Neuenheimer Feld 270
69120 Heidelberg
Germany
Phone: 0049 6221 54 84 88
Fax:   0049 6221 54 48 85
-----------------------------
Received on 2004-03-09 11:39:28

This archive was generated by hypermail 2.2.0 : 2006-11-02 07:00:02 CET