「SGE用スクリプトファイルをPBS用に書き換える方法」の版間の差分
ナビゲーションに移動
検索に移動
編集の要約なし |
|||
34行目: | 34行目: | ||
*代替の記述 | *代替の記述 | ||
cd $PBS_O_WORKDIR | cd $PBS_O_WORKDIR | ||
== スクリプトファイル SGE -> PBS == | |||
#!/bin/bash | |||
#$ -q medium | |||
#$ -cwd | |||
#$ -S /bin/sh | |||
#$ -t 1-10<br> | |||
./myprogram -input=file-${SGE_TASK_ID} | |||
#!/bin/bash | |||
#PBS -q medium | |||
#PBS -S /bin/sh | |||
#PBS -t 1-10<br> | |||
cd ${PBS_O_WORKDIR} ## instead of "#$ -cwd" <br> | |||
./myprogram -input=file-${PBS_ARRAYID} |
2018年6月1日 (金) 05:14時点における版
主なコマンド Common command
PBS command | SGE command | |
---|---|---|
Job submission | qsub [scriptfile] | qsub [scriptfile] |
Job deletion | qdel [job_id] | qdel [job_id] |
Job status (for user) | qstat -u [username] | qstat -u [username] |
Extended job status | qstat -f [job_id] | qstat -f -j [job_id] |
Hold a job temporarily | qhold [job_id] | qhold [job_id] |
Release job hold | qrls [job_id] | qrls [job_id] |
List of usable queues | qstat -Q | qconf -sql |
リソース指定 Resource specifications
PBS command | SGE command | |
---|---|---|
Queue | #PBS -q [queue] | #$ -q [queue] |
Nodes | #PBS -l nodes=[#] | n/a |
Processors | #PBS -l ppn=[#] | #$ -pe [pe_name] [#] |
Wall clock limit | #PBS -l walltime=[hh:mm:ss] | #$ -l time=[hh:mm:ss] |
Standard output file | #PBS -o [file] | #$ -o [path] |
Standard error | #PBS -e [file] | #$ -e [path] |
Array job | #PBS -t [# - #] | #$ -t [# - #] |
Array number Variable name | ${PBS_ARRAYID} | ${SGE_TASK_ID} |
Copy environment | #PBS -V | #$ -V |
Notification event | #PBS -m abe | #$ -m abe |
Email address | #PBS -M [email] | #$ -M [email] |
Job name | #PBS -N [name] | #$ -N [name] |
Job restart | #PBS -r [y|n] | #$ -r [yes|no] |
Move current directory | n/a | #$ -cwd |
Node usage | #PBS -l naccesspolicy=singlejob | n/a |
Memory requirement | #PBS -l mem=XXXXmb | #$ -mem [#]G |
- -cwd が使えなくなる
- 代替の記述
cd $PBS_O_WORKDIR
スクリプトファイル SGE -> PBS
#!/bin/bash #$ -q medium #$ -cwd #$ -S /bin/sh #$ -t 1-10
./myprogram -input=file-${SGE_TASK_ID}
#!/bin/bash #PBS -q medium #PBS -S /bin/sh #PBS -t 1-10
cd ${PBS_O_WORKDIR} ## instead of "#$ -cwd"
./myprogram -input=file-${PBS_ARRAYID}