Update slurm authored by Matthieu Boileau's avatar Matthieu Boileau
...@@ -42,8 +42,9 @@ salloc -t "02:00:00" -p K80 -w atlas4 --exclusive ...@@ -42,8 +42,9 @@ salloc -t "02:00:00" -p K80 -w atlas4 --exclusive
You have to connect via ssh to the node `ssh atlas4` before doing computations. You have to connect via ssh to the node `ssh atlas4` before doing computations.
To automatically allocate and connect, you can use To automatically allocate and connect, you can use
```
salloc -t "03:00:00" -p public -J "jobname" --exclusive -N 1 srun --pty `basename ${SHELL}` ```bash
salloc -t "03:00:00" -p public -J "jobname" --exclusive -N 1 srun
``` ```
> **INFO:** A wrapper for this interactive command will soon be available `compute`. > **INFO:** A wrapper for this interactive command will soon be available `compute`.
...@@ -55,7 +56,7 @@ First, read the slurm quickstart: [(external link)](https://computing.llnl.gov/l ...@@ -55,7 +56,7 @@ First, read the slurm quickstart: [(external link)](https://computing.llnl.gov/l
Here is a basic slurm script to get you started: Here is a basic slurm script to get you started:
``` ```bash
#!/bin/bash #!/bin/bash
# Lines with SBATCH starting with ## are comments and starting with # are actual commands for sbatch # Lines with SBATCH starting with ## are comments and starting with # are actual commands for sbatch
...@@ -126,7 +127,7 @@ Then you can launch the application with `sbatch <name_of_the_script>`. ...@@ -126,7 +127,7 @@ Then you can launch the application with `sbatch <name_of_the_script>`.
One way is to send the scripts out of the ssh session using this command One way is to send the scripts out of the ssh session using this command
``` ```bash
ssh user@host "nohup script1 > /dev/null 2>&1 &; nohup script2; ... ssh user@host "nohup script1 > /dev/null 2>&1 &; nohup script2; ...
``` ```
...@@ -138,7 +139,7 @@ Screen is a windows manager that let you create virtual terminals in several pro ...@@ -138,7 +139,7 @@ Screen is a windows manager that let you create virtual terminals in several pro
Run a program in the background: Run a program in the background:
``` ```bash
screen # open shell in a virtual window (BEFORE using chroot!) screen # open shell in a virtual window (BEFORE using chroot!)
screen -d # detach your virtual terminal screen -d # detach your virtual terminal
``` ```
...@@ -146,12 +147,12 @@ You can now exit from your ssh session. ...@@ -146,12 +147,12 @@ You can now exit from your ssh session.
To recover your virtual terminal, use To recover your virtual terminal, use
``` ```bash
screen -r screen -r
``` ```
To list all available windows, type To list all available windows, type
``` ```bash
screen -ls screen -ls
``` ```
... ...
......