2010年6月17日 星期四

Cluster 說明與環境

1.說明:
Cluster 目前有的是 PBS 為常見

2. 常用指令:
qsub/qsatat 為最常見指令


3. 環境變數:
前置詞為 PBS_ , 而可以看見 Cluster 的

PBS_O_WORKDIR The absolute path of the current working directory of the qsub command.
PBS_NODEFILE The name of the file that contains the list of the nodes assigned to the job.


4. 指令細節:



5. 範例:
test.sh
{{{
#!/bin/bash
#PBS -l nodes=2:ppn=4
#PBS -V

### env var
#module load mpich

cd $PBS_O_WORKDIR

P4_RSHCOMMAND=rsh
NCPUS=`wc -l $PBS_NODEFILE | awk '{print $1}'`

#cat $PBS_NODEFILE > NODES
#cat $PBS_NODEFILE
mpirun -machinefile $PBS_NODEFILE -np $NCPUS $PBS_O_WORKDIR/hello

}}}



6. 注意:
I. 在 home 目錄執行


7. 參考:
Qsub

沒有留言:

張貼留言