Seyed Omid Nabavi
Seyed Omid Nabavi

Reputation: 497

How to run slurm in the background?

To use allocated resources by slurm interactively and in the background, I use salloc -n 12 -t 20:00:00&. The problem is that this command does not redirect me to the compute node and if I run a program it uses resources of the login node. Could you please help me to find the right command?

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

but it fails :

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

Any help is highly appreciated.

Upvotes: 1

Views: 732

Answers (2)

Seyed Omid Nabavi
Seyed Omid Nabavi

Reputation: 497

you only need to execute salloc -n 12 -t 20:00:00&. Then use ssh to connect to the allocated node (for example, ssh node013).

Upvotes: 1

ciaron
ciaron

Reputation: 1169

Is a.out in your path? e.g. what does which a.out return?

Upvotes: 0

Related Questions