Difference between revisions of "Quickstart/Interactive"
From HPC
(created a quick page with basic information on starting various interactive sessions) |
m |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | ==What is an interactive session== | + | ==What is an interactive session?== |
An interactive session can be started on Viper that can be used for any task that requires interaction and should be used for any computationally demanding task rather than using the login node. | An interactive session can be started on Viper that can be used for any task that requires interaction and should be used for any computationally demanding task rather than using the login node. | ||
Line 46: | Line 46: | ||
==GPU node interactive session== | ==GPU node interactive session== | ||
+ | GPU node with a single GPU and non-exclusive. | ||
<pre style="background-color: #000000; color: white; border: 2px solid black; font-family: monospace, sans-serif;"> | <pre style="background-color: #000000; color: white; border: 2px solid black; font-family: monospace, sans-serif;"> | ||
[username@login01 ~]$ interactive -pgpu | [username@login01 ~]$ interactive -pgpu | ||
Line 54: | Line 55: | ||
[[FurtherTopics/FurtherInteractive|Further information on interactive sessions]] | [[FurtherTopics/FurtherInteractive|Further information on interactive sessions]] | ||
− | [[ | + | |
+ | |||
+ | |||
+ | [[Main Page #Quickstart| Back]] / [[Quickstart/Slurm| Next (Slurm)]] |
Latest revision as of 10:31, 9 December 2022
Contents
What is an interactive session?
An interactive session can be started on Viper that can be used for any task that requires interaction and should be used for any computationally demanding task rather than using the login node.
Examples of interactive usage include:
- Code compilation
- Data analysis
- Basic visualisation
- Console based interactive applications such as Python, R, Matlab, SAS or Stata
- Graphical user interfaces such as Matlab, SAS or Stata
How to start an interactive session
An interactive session can be started by using the interactive command:
[username@login01 ~]$ interactive salloc: Granted job allocation 306844 Job ID 306844 connecting to c068, please wait... [username@c068 ~]$
How to exit an interactive session
To exit from an interactive session just type exit:
[username@c068 ~]$ exit logout salloc: Relinquishing job allocation 306844 [username@login01 ~]$
Exclusive interactive session
This will give you the whole node for your job exclusively, if this is not specified there may be other jobs that are running on the allocated node at the same time.
[username@login01 ~]$ interactive --exclusive salloc: Granted job allocation 306848 Job ID 306848 connecting to c174, please wait...
High Memory Node interactive session
[username@login01 ~]$ interactive -phighmem salloc: Granted job allocation 306153 Job ID 306153 connecting to c233, please wait...
GPU node interactive session
GPU node with a single GPU and non-exclusive.
[username@login01 ~]$ interactive -pgpu salloc: Granted job allocation 306855 Job ID 306855 connecting to gpu02, please wait...
Further information on interactive sessions