Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interactive sessions on BluePebble for users from Maths #22

Merged
merged 7 commits into from
Sep 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions humans.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,9 @@
Role: PhD student
Contributions: OpenFOAM user documentation
GitHub: https://github.com/chen0mou0mou

Name: Marton Balazs
Role: IT-rep for the School of Mathematics
Contributions: Interactive sessions documentation
GitHub: https://github.com/martonbalazs
Site: https://people.maths.bris.ac.uk/~mb13434/
3 changes: 2 additions & 1 deletion source/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ maxdepth: 2
caption: "Contents:"
---
engineering/index
mathematics/index
```

# Credits and licenses
Expand All @@ -53,4 +54,4 @@ See [LICENSE.md][acrc-hpc-community-docs-license] in the [GitHub repository][acr
[humanstxt-file]: https://acrc.github.io/HPC-community-docs/humans.txt "humans.txt"
[humanstxt-website]: https://humanstxt.org "Humans TXT website"
[cc-by-sa-4]: https://creativecommons.org/licenses/by-sa/4.0/ "CC BY-SA 4.0 license"
[acrc-hpc-community-docs-license]: https://github.com/ACRC/HPC-community-docs/blob/main/LICENSE.md "ACRC HPC community documentation LICENSE.md"
[acrc-hpc-community-docs-license]: https://github.com/ACRC/HPC-community-docs/blob/main/LICENSE.md "ACRC HPC community documentation LICENSE.md"
12 changes: 12 additions & 0 deletions source/mathematics/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
title: "Mathematics"
---

```{toctree}
---
includehidden: true
maxdepth: 1
caption: "Contents:"
---
interactive
```
67 changes: 67 additions & 0 deletions source/mathematics/interactive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
---
title: "Interactive sessions"
---

:::{warning}
Interactive sessions on compute nodes are not supported on ACRC HPC systems unless submitted to private partitions, or following discussion with the [ACRC HPC team](mailto:[email protected]).

The ACRC HPC team recommend the use of non-interactive batch jobs where possible, since these facilitate efficient job scheduling. Interactive sessions **do not** bypass the job scheduler and should not be expected to start immediately.

Jobs that waste cluster resources may be held or deleted, in accordance with the [ACRC HPC usage policy](https://www.bristol.ac.uk/acrc/high-performance-computing/hpc-systems-policy/acrc-hpc-usage-policy/). This includes interactive jobs. Please ensure you use cluster resources responsibly and efficiently.
:::

These are instructions on getting quick interactive sessions on BluePebble, assuming you already have login to this cluster and a project code. As this is primarily aimed for the School of Mathematics, we'll refer to the HPC project code to be in the form MATHXXXXXX, but this could be in a different format for other faculties/departments.

The School of Mathematics ringfenced a few of its nodes with the software [Magma](http://magma.maths.usyd.edu.au/magma/) installed on them into the "magma" partition, and we also use this partition for quick interactive testing.

:::{important}
The "magma" partition is for quick interactive testing besides making the software Magma available here. If you need to run a large or long-running job (e.g. that takes hours or days) that does not require the Magma package, please remove any reference to the "magma" partition from the below and use one of the other partitions on BluePebble, such as the default "compute" partition.
:::

We use maple/xmaple as an example but comsol, magma, math/mathematica, etc work similarly.

## If you don't need a graphical interface
1. Connect to the login node, as described [here](https://www.acrc.bris.ac.uk/protected/hpc-docs/connecting/index.html). For this you don't need X11 forwarding.
2. Once you are on the login node, do
martonbalazs marked this conversation as resolved.
Show resolved Hide resolved
```console
$ srun --account=MATHXXXXXX --partition=magma --mem=1G --time=00:01:00 --pty bash -i
```
to get an interactive session on one of our ringfenced nodes for quick interactive sessions. Login nodes are intended for small scale interactive work. This command allows us to create an interactive session on a compute node for more intensive interactive work. Notice that the above gives you a terminal for 1 minute with 1 GB memory and the default number of CPU cores (1) -- please change this to specify the time and resources you need. Also, remember to save your work often as your terminal will be killed after the requested time.
:::{tip}
Without `--partition=magma` you are in the general BluePebble pool with far more nodes but usually longer waiting times, but this is the place to submit longer, heavy computations rather than our "magma" partition.
:::
3. In the interactive session do
```console
$ module load apps/maple
```
(tab works for autocompletions). Then launch
```console
$ maple
```
## For graphical interface (GUI)
1. Connect to the login node, as described [here](https://www.acrc.bris.ac.uk/protected/hpc-docs/connecting/index.html) including the X11 bits.
2. Once on the login node, do
```console
$ salloc --account=MATHXXXXXX --partition=magma --mem=1G --time=00:01:00
```
again adjust the command to request the time and resources to what you need, and please remove `--partition=magma` if you have a heavy job to run for hours or days. This will say something like
```console
salloc: Pending job allocation 6434337
salloc: job 6434337 queued and waiting for resources
salloc: job 6434337 has been allocated resources
salloc: Granted job allocation 6434337
salloc: Waiting for resource configuration
salloc: Nodes bp1-compute169 are ready for job
```
In some cases you may need to wait for this allocation to start (e.g., if not using the "magma" partition).
3. Do
```console
$ ssh -X bp1-compute169
```
(using whichever node was allocated to you in the previous step); tab completion works here too. Then
```console
$ module load apps/maple
```
```console
$ xmaple
```