SGE/PBS では、ローカルで行うのと同じように、バイナリ実行可能ファイルをクラスターに送信できます。例えば:
qsub -b y -cwd echo hello
出力ファイルに「hello」という単語を書き込む、echo という名前のジョブを送信します。
同様のジョブを SLURM に送信するにはどうすればよいですか。ファイルの最初の行に hash-bang インタープリターがあると想定しています。SLURMで私は得る
$ sbatch echo hello
sbatch: error: This does not look like a batch script. The first
sbatch: error: line must start with #! followed by the path to an interpreter.
sbatch: error: For instance: #!/bin/sh
または疑似 qsub を使用します。
$ qsub echo hello
There was an error running the SLURM sbatch command.
The command was:
'/cm/shared/apps/slurm/14.11.3/bin/sbatch echo hello 2>&1'
and the output was:
'sbatch: error: This does not look like a batch script. The first
sbatch: error: line must start with #! followed by the path to an interpreter.
sbatch: error: For instance: #!/bin/sh
'
私はスクリプトを書きたくありません#!/bin/bash
。先頭にコマンドを置き、次の行にコマンドを入れて、それらをスバッチに送信します。この余分な作業を回避する方法はありますか? もっと生産的な方法が必要です。