The script I am using is following
#PBS -N 0ps
#PBS -l nodes=1:ppn=24
#PBS -l walltime=30000:00:00
#PBS -q batch
#PBS -V
#PBS -S /bin/bash
EXEC=/opt/software/vasp/vasp.5.4.1/bin/vasp_std
###suanli=em.tpr###
### Set intel environment###
source /opt/intel/composer_xe_2015/bin/compilervars.sh intel64
source /opt/intel/mkl/bin/intel64/mklvars_intel64.sh
source /opt/intel/impi/5.0.2.044/bin64/mpivars.sh
cd $PBS_O_WORKDIR
NP=`cat $PBS_NODEFILE | wc -l`
NN=`cat $PBS_NODEFILE | sort | uniq | tee /tmp/nodes.$$ | wc -l`
cat $PBS_NODEFILE > /tmp/nodefile.$$
mpirun -genv I_MPI_DEVICE ssm -machinefile /tmp/nodefile.$$ -n $NP $EXEC -s -deffnm em -v
rm -rf /tmp/nodefile.$$
rm -rf /tmp/nodes.$$