用户工具

站点工具


mstation:torque

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

后一修订版
前一修订版
mstation:torque [2024/03/26 14:14] – 创建 penggemstation:torque [2024/03/27 10:23] (当前版本) pengge
行 1: 行 1:
-====== 老环境 torque 调度使用 pwmat ======+====== 老环境 pbs torque 调度使用 pwmat ======
  
-  * 作业脚本示例+  * 作业脚本示例 <wrap tip>1 node</wrap>
    
 <code bash> <code bash>
行 16: 行 16:
  
 mpirun -np ${NPROCS} PWmat | tee output mpirun -np ${NPROCS} PWmat | tee output
 +
 +</code>
 +
 +  * 作业脚本示例 <wrap tip>2 node</wrap>
 + 
 + <code bash>
 +#!/bin/bash
 +#PBS -N pwmat_test
 +#PBS -l nodes=2:ppn=8
 +#PBS -l walltime=2:00:00
 +#PBS -q batch
 +#PBS -o PWmat.out
 +#PBS -e PWmat.err
 +
 +ulimit -s unlimited
 +source /where/your/install/pwmat/pwmat.env #this line may vary according to where the PWmat installed
 +
 +cd $PBS_O_WORKDIR
 +NP=`cat $PBS_NODEFILE | wc -l`
 +cat $PBS_NODEFILE < ./hosts
 +
 +mpirun -np $NP --machinefile $PBS_NODEFILE PWmat | tee output
 +
 +</code>
 +
 +  * 作业脚本示例 <wrap tip>2 node</wrap><wrap safety>指定 gn1, gn2 节点</wrap>
 + 
 + <code bash>
 +#!/bin/bash
 +#PBS -N pwmat_test
 +#PBS -l nodes=gn1:ppn=4+gn2:ppn=4
 +#PBS -l walltime=2:00:00
 +#PBS -q batch
 +#PBS -o PWmat.out
 +#PBS -e PWmat.err
 +
 +ulimit -s unlimited
 +source /where/your/install/pwmat/pwmat.env #this line may vary according to where the PWmat installed
 +
 +cd $PBS_O_WORKDIR
 +NP=`cat $PBS_NODEFILE | wc -l`
 +cat $PBS_NODEFILE < ./hosts
 +
 +mpirun -np $NP --machinefile $PBS_NODEFILE PWmat | tee output
  
 </code> </code>
mstation/torque.1711433651.txt.gz · 最后更改: 2024/03/26 14:14 由 pengge