「SGE用スクリプトファイルをPBS用に書き換える方法」の版間の差分
ナビゲーションに移動
検索に移動
15行目: | 15行目: | ||
<tr><td></td><th>PBS command</th><th> SGE command</th></tr> | <tr><td></td><th>PBS command</th><th> SGE command</th></tr> | ||
<tr><td>Queue</td><td> #PBS -q [queue] </td><td>#$ -q [queue]</td></tr> | <tr><td>Queue</td><td> #PBS -q [queue] </td><td>#$ -q [queue]</td></tr> | ||
<tr><td>Processors(Single host) </td><td> #PBS -l select=1:ncpus=[#] </td><td>#$ -pe smp [#]</td></tr> | <tr><td>Processors (Single host) </td><td> #PBS -l select=1:ncpus=[#] </td><td>#$ -pe smp [#]</td></tr> | ||
<tr><td>Wall clock limit</td><td> #PBS -l walltime=[hh:mm:ss] </td><td>#$ -l time=[hh:mm:ss]</td></tr> | <tr><td>Wall clock limit</td><td> #PBS -l walltime=[hh:mm:ss] </td><td>#$ -l time=[hh:mm:ss]</td></tr> | ||
<tr><td>Standard output file</td><td> #PBS -o [file] </td><td>#$ -o [path]</td></tr> | <tr><td>Standard output file</td><td> #PBS -o [file] </td><td>#$ -o [path]</td></tr> |
2018年6月11日 (月) 08:48時点における版
主なコマンド 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] |
Processors (Single host) | #PBS -l select=1:ncpus=[#] | #$ -pe smp [#] |
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 -J [# - #] | #$ -t [# - #] |
Array number Variable name | ${PBS_ARRAY_INDEX} | ${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
- sge
#!/bin/bash #$ -q medium #$ -cwd #$ -S /bin/sh #$ -t 1-10
./myprogram -input=file-${SGE_TASK_ID}
- pbs
#!/bin/bash #PBS -q medium #PBS -S /bin/sh #PBS -t 1-10
cd ${PBS_O_WORKDIR} ## instead of "#$ -cwd"
./myprogram -input=file-${PBS_ARRAY_INDEX}
SGE -> PBS 変換用 Perl スクリプト
- 結果は保障しません...
perl sge2pbs.pl sge_script_file > pbs_script_file