针对您遇到的 sbatch: error: batch script contains dos line breaks (\r ) 错误,这个问题通常发生在Windows环境下编写的脚本被直接用于Linux的Slurm作业调度系统时。Windows系统中的文本文件通常使用\r 作为行尾字符,而Linux系统则使用 。Slurm的sbatch命令在解析脚本时,可能会因为不兼容的行尾字符而报错。 以下是...
sbatch: error:Batch script contains DOS linebreaks(\r\n)sbatch: error: instead of expected UNIX line breaks (\n). 输入dos2unix即可: dos2unix yourfilename
The batch script is not necessarily granted resources immediately, it may sit in the queue of pending jobs for some time before its required resources become available. By default both standard output and standard error are directed to a file of the name "slurm-%j.out", where the "%j" ...