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 3 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/interactive
martonbalazs marked this conversation as resolved.
Show resolved Hide resolved
```

# 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"
53 changes: 53 additions & 0 deletions source/mathematics/interactive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
title: "Interactive sessions"
---

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 project code to be in the form MATHXXXXXX, but this could be in other format.
martonbalazs marked this conversation as resolved.
Show resolved Hide resolved

The School of Mathematics ringfenced a few of its nodes with the software Magma installed on them into the "magma" partition, and we also use this partition for quick interactive testing.
martonbalazs marked this conversation as resolved.
Show resolved Hide resolved

:::{important}
If you need to run something heavy that takes hours or days please remove any reference to the "magma" partition from the below.
martonbalazs marked this conversation as resolved.
Show resolved Hide resolved
:::

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

- **If you don't need a graphical interface:**
martonbalazs marked this conversation as resolved.
Show resolved Hide resolved
1. Connect to the login node, as described [here](https://www.acrc.bris.ac.uk/protected/hpc-docs/connecting/index.html). For this your don't need X11 forwarding.
martonbalazs marked this conversation as resolved.
Show resolved Hide resolved
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=1gb --time=00:01:00 --pty bash -i
martonbalazs marked this conversation as resolved.
Show resolved Hide resolved
```
to get an interactive session on one of our ringfenced nodes for quick interactive sessions. (No heavy jobs are allowed to be run on the login node, hence this command.) Notice that the above gives you a terminal for 1 minute, obviously change this to what time you need and save your work often as your terminal will be killed after the requested time.
martonbalazs marked this conversation as resolved.
Show resolved Hide resolved
martonbalazs marked this conversation as resolved.
Show resolved Hide resolved
:::{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):**
martonbalazs marked this conversation as resolved.
Show resolved Hide resolved
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=1gb --time=00:01:00
martonbalazs marked this conversation as resolved.
Show resolved Hide resolved
```
again adjust the time from 1 minute 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
martonbalazs marked this conversation as resolved.
Show resolved Hide resolved
```console
salloc: Nodes bp1-compute169 are ready for job
```
3. Do
```console
$ ssh -X bp1-compute169
```
(with whichever node was allocated to you in the previous step); tab completion works. Then
martonbalazs marked this conversation as resolved.
Show resolved Hide resolved
```console
$ module load apps/maple
```
```console
$ xmaple
```