Skip to content

Commit

Permalink
Update slurm-quick-start.md
Browse files Browse the repository at this point in the history
  • Loading branch information
larsvilhuber authored Oct 19, 2024
1 parent 0414336 commit f94d8a5
Showing 1 changed file with 29 additions and 2 deletions.
31 changes: 29 additions & 2 deletions docs/biohpc/slurm-quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,15 @@ From a command line, run the following lines, logout, then back in, and hencefor

```bash
echo 'export SLURM_CLUSTERS="cbsueccosl01"' >> $HOME/.bash_profile
```

In the following, replace `netid` with your actual NetID.


```bash
echo [email protected] >> $HOME/.forward
```

(replace your `netid` in the second command).

### Enabling software via `module`

Expand Down Expand Up @@ -59,6 +64,28 @@ If you need a specific node, use
srun -w cbsueccoXX --pty bash -l
```

## Interactive GUI jobs

You should be able to get interactive GUI jobs (Stata, MATLAB) to work as follows:

```bash
salloc -N 1
ssh -X $SLURM_NODELIST /usr/local/stata18/xstata
```

or

```bash
salloc -N 1
ssh -X $SLURM_NODELIST /local/opt/MATLAB/R2023a/bin/matlab
```

:::{warning}

It is technically feasible to login to each node without using SLURM. However, this confuses the job scheduler. Do not abuse this, exclusion from use of the cluster may be the consequence.

:::

## To see running jobs

```
Expand All @@ -77,4 +104,4 @@ where the ID can be gleaned from the `squeue` command.

## Additional information

- [https://biohpc.cornell.edu/lab/SLURM-on-demand.htm](https://biohpc.cornell.edu/lab/SLURM-on-demand.htm)
- [https://biohpc.cornell.edu/lab/SLURM-on-demand.htm](https://biohpc.cornell.edu/lab/SLURM-on-demand.htm)

0 comments on commit f94d8a5

Please sign in to comment.