教学文库网 - 权威文档分享云平台
您的当前位置:首页 > 精品文档 > 实用模板 >

PBS管理系统--torque(4)

来源:网络收集 时间:2026-08-31
导读: [注]:脚本文件中的 mpirun_rsh 命令行中的节点列表文件要用环境变量表 示 $PBS_NODEFILE,这个环境变量表示由 pbs 自动分配给作业的节点列表; 节点数为命令行中指定的进程数。 格式如下: mpirun_rsh –np 进程数

[注]:脚本文件中的 mpirun_rsh 命令行中的节点列表文件要用环境变量表 示

$PBS_NODEFILE,这个环境变量表示由 pbs 自动分配给作业的节点列表; 节点数为命令行中指定的进程数。 格式如下:

mpirun_rsh –np 进程数 –hostfile $PBS_NODEFILE 可执行程序名 命令详解如下:

Getting Status on the System, Queues, and Jobs Command Short Description list information about queues and jobs Tutorial Using qstat HTML and PS HTML and PS Using qstat Using qstat HTML and PS HTML and PS Using qstat Using qstat Manual Page qstat man page qstat qstat -q list all queues on system qstat man page qstat -Q list queue limits for all queues qstat man page qstat -a list all jobs on system qstat man page qstat -au list all jobs owned by user userid userid qstat man page qstat -s list all jobs with status comments list all running jobs qstat man page qstat -r qstat man page qstat -f list all information known about jobid specified job qstat -Qf list all information known about queue specified queue qstat man page qstat man page

qstat -B List summary information about the PBS server Submitting a Job HTML and PS qstat man page qsub jobscript submit jobscript to PBS Using qsub Using qsub Using qsub qsub man page qsub -I submit an interactive-batch job qsub man page qsub -q queue submit job directly to a specified queue qsub man page Using the Graphical User Interface (GUI) xpbs

Graphical User Interface to PBS commands Using xpbs xpbs man page 链接 http://blog.chinaunix.net/u1/34200/showart_1880946.html

(五)GM 并行作业提交 PBS 脚本

PBS 模板脚本文件路径为:/export/home/pbs/mpich-gm.pbs.pbs

按照如下示例文件,建立 pbs 作业提交脚本,修改红色的部分即可。

#LJRS -S /bin/bash

#LJRS -o script.out

#LJRS -j oe

#LJRS -q dpool

#LJRS -l nodes=8:ppn=1 (nodes:计算节点数,ppn:计算节点 CPU 数)

#LJRS -l walltime=48:00:00 (用户估计的最大计算时间,超时系统会自 动中断作业)

limit -s unlimited

TMPFILE=`whoami`_mpich_gm.tmp

sed 's/c/g/g' $LJRS_NODEFILE > /tmp/$TMPFILE GM_NODEFILE=/tmp/$TMPFILE

echo Working directory is $LJRS_O_WORKDIR

cd $LJRS_O_WORKDIR

echo Runing on host `hostname` echo Starting Time is `date` echo Directory is `pwd`

echo This jobs runs on the following processors:

echo `cat $GM_NODEFILE` NPROCS=`wc -l < $GM_NODEFILE`

echo This job has allocated $NPROCS nodes

## User Parallel Program ###########

mpirun -v -machinefile $GM_NODEFILE -np $NPROCS ~/my_parallel.exe > out (修改为用户的并行作业执行命令)

####################################

rm -f /tmp/$TMPFILE

链接 http://cftcc.iccas.ac.cn/show.aspx?id=25&cid=12

echo Ending Time is `date`

…… 此处隐藏:355字,全部文档内容请下载后查看。喜欢就下载吧 ……
PBS管理系统--torque(4).doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.jiaowen.net/wendang/518563.html(转载请注明文章来源)
Copyright © 2020-2025 教文网 版权所有
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:78024566 邮箱:78024566@qq.com
苏ICP备19068818号-2
Top
× 游客快捷下载通道(下载后可以自由复制和排版)
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能出现无法下载或内容有问题,请联系客服协助您处理。
× 常见问题(客服时间:周一到周五 9:30-18:00)