我试图使用"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"
吗?
如果我这样写,它对我有用:sbatch --wrap =“ rafb”
我知道这个问题已经很老了,但是由于还没有解决方案,而且我也遇到了同样的问题,所以我想与面临相同问题的其他人分享我的解决方案。