Introduction to Interactive HPC
Michael Milligan
Fall 2025
1
MN Supercomputing Institute
for Advanced Computational Research
© 2009 Regents of the University of Minnesota. All rights reserved.
What is Interactive Computing?
2
Interactive Computing is about immediacy. When the human requests an action, the computer immediately responds. When the computer finishes a task, the human immediately perceives the result.
MN Supercomputing Institute
for Advanced Computational Research
© 2009 Regents of the University of Minnesota. All rights reserved.
Why Interactive HPC?
HPC is part of a larger research workflow
Dr. so-and-so needs to explore a huge dataset� Needs: interactivity, analytics tools, large memory/storage
Dr. such-and-such is preparing to create a cutting-edge simulation visualization� Needs: interactivity, remote visualization, compute, bandwidth
A grad student is prototyping a new algorithm� Needs: interactivity, dev and debug tools, time to iterate
MN Supercomputing Institute
for Advanced Computational Research
© 2009 Regents of the University of Minnesota. All rights reserved.
Tutorial Outline
4
MN Supercomputing Institute
for Advanced Computational Research
© 2009 Regents of the University of Minnesota. All rights reserved.
MSI Access Overview
5
MN Supercomputing Institute
for Advanced Computational Research
© 2009 Regents of the University of Minnesota. All rights reserved.
Resource Allocations
ALL groups will have access to these basic resources:
6
MN Supercomputing Institute
for Advanced Computational Research
© 2009 Regents of the University of Minnesota. All rights reserved.
Recent Changes
There have been some significant changes recently that may affect your usage:
7
MN Supercomputing Institute
for Advanced Computational Research
© 2009 Regents of the University of Minnesota. All rights reserved.
Survey of Options
8
MN Supercomputing Institute
for Advanced Computational Research
© 2009 Regents of the University of Minnesota. All rights reserved.
Batch Jobs
9
MN Supercomputing Institute
for Advanced Computational Research
© 2009 Regents of the University of Minnesota. All rights reserved.
Interactive Options
10
MN Supercomputing Institute
for Advanced Computational Research
© 2009 Regents of the University of Minnesota. All rights reserved.
OnDemand Portal
One-stop access portal for interactive HPC services
11
MN Supercomputing Institute
for Advanced Computational Research
© 2009 Regents of the University of Minnesota. All rights reserved.
Interactive Command Line
ssh <username>@<resource>.msi.umn.edu
See: https://www.msi.umn.edu/content/connecting-hpc-resources
12
These “login nodes” are shared by many MSI users. They are NOT for heavy computational tasks. Appropriate uses include:
MN Supercomputing Institute
for Advanced Computational Research
© 2009 Regents of the University of Minnesota. All rights reserved.
Interactive Batch with ‘srun’
srun <resource requests> --pty bash
See: https://www.msi.umn.edu/content/interactive-queue-use-srun
13
Example:
srun -N 1 --ntasks-per-node=4 --mem-per-cpu=1gb -t 1:00:00 -p interactive --pty bash
MN Supercomputing Institute
for Advanced Computational Research
© 2009 Regents of the University of Minnesota. All rights reserved.
Web Portals: Galaxy
Galaxy is a web-based workflow manager, principally for bioinformatics/’omics research
14
See https://www.msi.umn.edu/content/galaxy for additional details, especially regarding linking data into Galaxy
MN Supercomputing Institute
for Advanced Computational Research
© 2009 Regents of the University of Minnesota. All rights reserved.
Need Windows?
MSI no longer provides Windows application servers.
Select HPC applications that require Windows are available through partnership with OIT via CITRIX
See: �https://msi.umn.edu/about-msi-services/interactive-hpc/citrix for access to Apps.umn.edu
15
MN Supercomputing Institute
for Advanced Computational Research
© 2009 Regents of the University of Minnesota. All rights reserved.
Hands-On: Getting Connected
16
MN Supercomputing Institute
for Advanced Computational Research
© 2009 Regents of the University of Minnesota. All rights reserved.
Pre-requisites to connect
DUO Authentication
https://it.umn.edu/services-technologies/self-help-guides/duo-set-use-duo-security
17
MN Supercomputing Institute
for Advanced Computational Research
© 2009 Regents of the University of Minnesota. All rights reserved.
Sidebar: Windows�SSH and File Transfer
Current Windows 10+ computers will have ssh/scp available from the Windows terminal.
For users who desire a graphical ssh or file transfer client:
https://winscp.net/eng/downloads.php
Download and install both WinSCP and PuTTY*
*MSI recommends WinSCP and PuTTY for Windows users, but does not offer support for these programs. Contact your local IT department for assistance.
18
MN Supercomputing Institute
for Advanced Computational Research
© 2009 Regents of the University of Minnesota. All rights reserved.
Choosing a Cluster/Partition
See: https://msi.umn.edu/our-resources/slurm-scheduler/choosing-a-partition
For interactive use, begin with the interactive partition and experiment from there.
19
MN Supercomputing Institute
for Advanced Computational Research
© 2009 Regents of the University of Minnesota. All rights reserved.
Interactive Services OnDemand
20
MN Supercomputing Institute
for Advanced Computational Research
© 2009 Regents of the University of Minnesota. All rights reserved.
OnDemand Walkthrough
21
MN Supercomputing Institute
for Advanced Computational Research
© 2009 Regents of the University of Minnesota. All rights reserved.
OnDemand Walkthrough
22
Services accessed through menu bar
MN Supercomputing Institute
for Advanced Computational Research
© 2009 Regents of the University of Minnesota. All rights reserved.
OnDemand Walkthrough
23
Return to landing page
Dashboard of running and completed interactive activities
Job list and composer app�(web interface panels to squeue and sbatch)
MN Supercomputing Institute
for Advanced Computational Research
© 2009 Regents of the University of Minnesota. All rights reserved.
OnDemand Walkthrough
24
File browser access
File browser:
MN Supercomputing Institute
for Advanced Computational Research
© 2009 Regents of the University of Minnesota. All rights reserved.
OnDemand Walkthrough
25
Command line terminal access
Command line terminal:
MN Supercomputing Institute
for Advanced Computational Research
© 2009 Regents of the University of Minnesota. All rights reserved.
OnDemand Walkthrough
26
Interactive Apps menu lists available application launchers
Each launcher leads to a session options page
Each session runs as an interactive job on a cluster resource
Launchers also available via the Interactive Sessions dashboard
MN Supercomputing Institute
for Advanced Computational Research
© 2009 Regents of the University of Minnesota. All rights reserved.
OnDemand Walkthrough
27
My Interactive Sessions
List job status for interactive sessions: queued, running, finished
Launch into a running session (usually opens new browser tab)
Access full menu of interactive launchers
MN Supercomputing Institute
for Advanced Computational Research
© 2009 Regents of the University of Minnesota. All rights reserved.
OnDemand Walkthrough
28
My Interactive Sessions
Delete a running or queued session to cancel the job and release compute resources early
Deleting a completed job removes it from this dashboard; no other effect
MN Supercomputing Institute
for Advanced Computational Research
© 2009 Regents of the University of Minnesota. All rights reserved.
OnDemand Walkthrough
29
Remote desktop sessions
VNC embedded in a web browser
Runs on compute node in selected cluster resource
These launchers start a remote desktop session and launch corresponding application
Jupyter and RStudio servers run on compute node
Web interface proxied through OnDemand
MN Supercomputing Institute
for Advanced Computational Research
© 2009 Regents of the University of Minnesota. All rights reserved.
Interactive Linux Desktops
30
Interactive desktop: noVNC session proxied through OnDemand server
Graphical fidelity will suffer on low-bandwidth connections but quality can be adjusted to maintain usability
Good connections allow graphically intensive apps, GPU accelerated graphics available on GPU nodes
Session persists until logged out on desktop - don’t forget to log out to release resources when done!
MN Supercomputing Institute
for Advanced Computational Research
© 2009 Regents of the University of Minnesota. All rights reserved.
OnDemand Walkthrough
31
Example launcher:
Jupyter server
Options to customize most aspects of the interactive job
MN Supercomputing Institute
for Advanced Computational Research
© 2009 Regents of the University of Minnesota. All rights reserved.
OnDemand Walkthrough
32
Logout and server restart options
Session cleanup
OnDemand sessions run as scheduled jobs: �cancel jobs or use desktop “logout” to end jobs and release resources early, or allow them to close automatically when walltime expires
Logging out from this page clears browser login but otherwise has no effect on active OnDemand sessions
Rarely may need to use “restart server” option to recover from failures
MN Supercomputing Institute
for Advanced Computational Research
© 2009 Regents of the University of Minnesota. All rights reserved.
Session Clean-up and Resume
33
MN Supercomputing Institute
for Advanced Computational Research
© 2009 Regents of the University of Minnesota. All rights reserved.
Interactive Jobs with �srun
34
MN Supercomputing Institute
for Advanced Computational Research
© 2009 Regents of the University of Minnesota. All rights reserved.
Selecting Resources
35
MN Supercomputing Institute
for Advanced Computational Research
© 2009 Regents of the University of Minnesota. All rights reserved.
Selecting Resources
Options to srun specify job requirements:
36
MN Supercomputing Institute
for Advanced Computational Research
© 2009 Regents of the University of Minnesota. All rights reserved.
Selecting Resources
Refer to SLURM partitions reference page:�https://msi.umn.edu/our-resources/slurm-scheduler/slurm-partitions
Example - basic interactive session with 4 CPU cores, �8 GB RAM, 4 hours runtime:
srun -N 1 --ntasks-per-node=4 --mem-per-cpu=1gb -t 1:00:00 -p interactive --pty bash
Example - interactive session for machine learning with 1 A40 GPU, 12 CPU cores, 1 hour runtime:
srun -n 12 -t 1:00:00 -p interactive-gpu --gres=gpu:a40:1 --pty bash
37
MN Supercomputing Institute
for Advanced Computational Research
© 2009 Regents of the University of Minnesota. All rights reserved.
Navigating Home and Project Spaces
cd $MSIPROJECT�or simply type msiproject
newgrp PROJECTNAME�srun -A PROJECTNAME <more options>
Similar effect to selecting group from dropdown in OnDemand
38
MN Supercomputing Institute
for Advanced Computational Research
© 2009 Regents of the University of Minnesota. All rights reserved.
Software Modules
39
MN Supercomputing Institute
for Advanced Computational Research
© 2009 Regents of the University of Minnesota. All rights reserved.
Clean up your session
40
MN Supercomputing Institute
for Advanced Computational Research
© 2009 Regents of the University of Minnesota. All rights reserved.
Questions?
These slides and the hands-on guide will be posted to http://msi.umn.edu (see the “MSI Tutorials” section)�
41
MN Supercomputing Institute
for Advanced Computational Research
© 2009 Regents of the University of Minnesota. All rights reserved.
Extra Material
42
MN Supercomputing Institute
for Advanced Computational Research
© 2009 Regents of the University of Minnesota. All rights reserved.
Optional: SSH Keys
43
MN Supercomputing Institute
for Advanced Computational Research
© 2009 Regents of the University of Minnesota. All rights reserved.
Hands-On: Interactive Development and Data Interrogation with Jupyter
44
MN Supercomputing Institute
for Advanced Computational Research
© 2009 Regents of the University of Minnesota. All rights reserved.
JupyterLab Workspace
45
MN Supercomputing Institute
for Advanced Computational Research
© 2009 Regents of the University of Minnesota. All rights reserved.
Additional Documentation
46
MN Supercomputing Institute
for Advanced Computational Research
© 2009 Regents of the University of Minnesota. All rights reserved.