简体   繁体   English

在 SLURM 中运行二进制文件

[英]running a binary in SLURM

I was trying to run a binary, "rafb" in SLURM using "--wrap" , like sbatch --wrap rafb我试图运行二进制, "rafb"SLURM使用"--wrap" ,像sbatch --wrap rafb

but it is showing sbatch: error: Script arguments are not permitted with the --wrap option.但它显示sbatch: error: Script arguments are not permitted with the --wrap option.

Without this "--wrap" , it was showing没有这个"--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

Is there any other way to avoid writing "#!/bin/bash" in the script?有没有其他方法可以避免在脚本中写入"#!/bin/bash"

It worked for me if I write it like this:如果我这样写,它对我有用:

sbatch --wrap="rafb"

I know this question is rather old, but since there has been no solution yet and I just faced the same problem, I would like to share my solution with others facing the same problem.我知道这个问题已经很老了,但是由于还没有解决方案,而且我只是遇到了同样的问题,所以我想与其他面临同样问题的人分享我的解决方案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM