如何 运行 在后台发出咕噜咕噜的声音?

How to run slurm in the background?

要通过 slurm 在后台交互使用分配的资源,我使用 salloc -n 12 -t 20:00:00&。问题是此命令不会将我重定向到计算节点,如果我 运行 一个程序,它会使用登录节点的资源。你能帮我找到正确的命令吗?

 salloc -n 12 -t 20:00:00 a.out </dev/null&

但是失败了:

salloc: error: _fork_command: Unable to find command "a.out"

非常感谢任何帮助。

a.out在你的路上吗?例如which a.out return 是什么?

你只需要执行salloc -n 12 -t 20:00:00&。然后使用 ssh 连接到分配的节点(例如 ssh node013)。