各路大神好,本人linux小白,最近刚接触Linux操作系统,现在想利用服务器集群提高Stata15(MP)的运算速度,尝试了下面的PBS脚本,但是发现计算机无法读取命令(问题如下),请大家指教!非常感谢!
【test2.pbs文件内容】
#PBS -N test2
#PBS -l nodes=10:ppn=10
#PBS -j oe
#PBS -l walltime=0:10:00
#PBS -q high
source /public/software/profile.d/mpi_openmpi-2.0.0-intel.sh
cd $PBS_O_WORKDIR
echo my job id is $PBS_JOBID
echo run nodes is following:
cat $PBS_NODEFILE
echo begin time is `date`
id=`echo $PBS_JOBID|awk -F. '{print $1}' `
NP=`cat $PBS_NODEFILE|wc -l`
mpirun -np $NP -machinefile $PBS_NODEFILE ./mydo.sh
echo end time is `date`
【mydo.sh】文件内容
stata-mp -b do run.do
最后输出的test2.o文件出错的部分如下:
begin time is 2018年 06月 26日 星期二 17:08:36 CST
--------------------------------------------------------------------------
mpirun was unable to launch the specified application as it could not access
or execute an executable:
Executable: ./mydo.sh
Node: comput4
while attempting to start process rank 0.
--------------------------------------------------------------------------
10 total processes failed to start
end time is 2018年 06月 26日 星期二 17:08:40 CST