在SLURM中运行二进制文件

时间:2017-12-08 00:57:31

标签: bash slurm

我尝试使用"rafb"SLURM中运行二进制文件"--wrap",就像     sbatch --wrap rafb

但它正在显示 sbatch: error: Script arguments are not permitted with the --wrap option.

如果没有此"--wrap",则显示

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"吗?

1 个答案:

答案 0 :(得分:0)

如果我这样写的话,它对我有用:

sbatch --wrap="rafb"

我知道这个问题比较老,但是由于还没有解决方案,而且我也遇到了同样的问题,所以我想与面临相同问题的其他人分享我的解决方案。