|
|
请教各路大神:
我现在用orca单节点并行没有问题。但是当我进行多节点计算时,虽然PBS_NODEFILE显示调用了多个节点,但是当我登陆到计算节点并top后,只有一个节点有orca在运行,其他节点没有orca在运行。请问这是怎么回事呢?
下面是我的提交脚本:
#!/bin/bash
#PBS -l nodes=10:ppn=12
#PBS -q parallel
# Usage of this script:
#qsub job-orca.sh -N jobname where jobname is the name of your ORCA inputfile (jobname.inp) without the .inp extension
# Jobname below is set automatically when using "qsub job-orca.sh -N jobname". Can alternatively be set manually here. Should be the name of the inputfile without extension (.inp or whatever).
export job=$PBS_JOBNAME
#Setting OPENMPI paths here:
export PATH=/home/Software/openmpi_3.1.3/bin:$PATH
export LD_LIBRARY_PATH=/home/Software/openmpi_3.1.3/lib:$LD_LIBRARY_PATH
# Here giving the path to the ORCA binaries and giving communication protocol
export orcadir=/home/Software/orca_4_1_2/
export RSH_COMMAND="/usr/bin/ssh -x"
export PATH=$orcadir:$PATH
# Creating local scratch folder for the user on the computing node. /scratch directory must exist.
#if [ ! -d /scratch/$USER ]
#then
# mkdir -p /scratch/$USER
#fi
#tdir=$(mktemp -d /scratch/$USER/orcajob__$PBS_JOBID-XXXX)
tdir=/tmp
# Copy only the necessary stuff in submit directory to scratch directory. Add more here if needed.
cp $PBS_O_WORKDIR/$job.inp $tdir/
cp $PBS_O_WORKDIR/$job.gbw $tdir/
cp $PBS_O_WORKDIR/$job.xyz $tdir/
# Creating nodefile in scratch
cat ${PBS_NODEFILE} > $tdir/$job.nodes
# cd to scratch
cd $tdir
# Copy job and node info to beginning of outputfile
echo "Job execution start: $(date)" >> $PBS_O_WORKDIR/$job.out
echo "Shared library path: $LD_LIBRARY_PATH" >> $PBS_O_WORKDIR/$job.out
echo "PBS Job ID is: ${PBS_JOBID}" >> $PBS_O_WORKDIR/$job.out
echo "PBS Job name is: ${PBS_JOBNAME}" >> $PBS_O_WORKDIR/$job.out
cat $PBS_NODEFILE >> $PBS_O_WORKDIR/$job.out
#Start ORCA job. ORCA is started using full pathname (necessary for parallel execution). Output file is written directly to submit directory on frontnode.
$orcadir/orca $tdir/$job.inp >> $PBS_O_WORKDIR/$job.out
# ORCA has finished here. Now copy important stuff back (xyz files, GBW files etc.). Add more here if needed.
cp $tdir/$job.gbw $PBS_O_WORKDIR
cp $tdir/$job.xyz $PBS_O_WORKDIR
|
|