<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.snu.edu.in/index.php?action=history&amp;feed=atom&amp;title=Magus02%2FGetting_Started</id>
	<title>Magus02/Getting Started - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.snu.edu.in/index.php?action=history&amp;feed=atom&amp;title=Magus02%2FGetting_Started"/>
	<link rel="alternate" type="text/html" href="https://wiki.snu.edu.in/index.php?title=Magus02/Getting_Started&amp;action=history"/>
	<updated>2026-11-04T19:44:23Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.9</generator>
	<entry>
		<id>https://wiki.snu.edu.in/index.php?title=Magus02/Getting_Started&amp;diff=1177&amp;oldid=prev</id>
		<title>Deepak: new</title>
		<link rel="alternate" type="text/html" href="https://wiki.snu.edu.in/index.php?title=Magus02/Getting_Started&amp;diff=1177&amp;oldid=prev"/>
		<updated>2026-04-20T06:25:54Z</updated>

		<summary type="html">&lt;p&gt;new&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{DISPLAYTITLE:Getting Started — Magus02 HPC}}&lt;br /&gt;
&amp;lt;div style=&amp;quot;background:#0d1b2a;border:1px solid #1e3a5a;border-radius:8px;padding:12px 18px;margin-bottom:20px;font-size:13px;font-family:monospace;color:#5ba3d9;&amp;quot;&amp;gt;&lt;br /&gt;
📍 [[Magus02/Knowledge_Base|Magus02 Knowledge Base]] → Basics → Getting Started&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This guide walks you through the essential steps to start using the Magus02 HPC cluster — from getting access all the way to running your first batch job.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Access — How to get a Magus02 account ==&lt;br /&gt;
&lt;br /&gt;
To use Magus02, you need an account provisioned by the HPC Administration Team. Depending on your role:&lt;br /&gt;
&lt;br /&gt;
* '''Students / Research Scholars:''' Request an account through your supervisor or PI. The PI submits an access request to the HPC admin team.&lt;br /&gt;
* '''Faculty:''' Contact the HPC admin team directly at &amp;lt;code&amp;gt;hpc-admin@snu.edu.in&amp;lt;/code&amp;gt;.&lt;br /&gt;
* '''External collaborators:''' Require a formal request letter from a SNU faculty sponsor.&lt;br /&gt;
&lt;br /&gt;
Once your account is created, you will receive a welcome email with your username and initial password. You should [[Magus02|reset your password]] on first login.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background:#2a1a00;border-left:4px solid #f0c040;border-radius:6px;padding:14px 18px;margin:16px 0;font-size:14px;color:#d4b870;&amp;quot;&amp;gt;&lt;br /&gt;
⚠️ &amp;lt;strong&amp;gt;VPN Required for Off-Campus Access:&amp;lt;/strong&amp;gt; Magus02 login nodes are only directly reachable from within the SNU campus network. If you are working remotely, you must first connect to the SNU VPN. Contact the HPC admin to obtain VPN credentials.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Login — How to connect to Magus02 ==&lt;br /&gt;
&lt;br /&gt;
Magus02 uses [[Magus02/SSH|SSH]] (Secure Shell) for all user logins. Connect to the login nodes — not the compute nodes directly.&lt;br /&gt;
&lt;br /&gt;
=== From Linux / macOS ===&lt;br /&gt;
&lt;br /&gt;
Open a terminal and run:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ ssh your_username@magus02.snu.edu.in&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
On first login, you will be prompted to verify the host key fingerprint. Type &amp;lt;code&amp;gt;yes&amp;lt;/code&amp;gt; to accept.&lt;br /&gt;
&lt;br /&gt;
=== From Windows ===&lt;br /&gt;
&lt;br /&gt;
Use one of the following free SSH clients:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:100%;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Client !! Description !! Download&lt;br /&gt;
|-&lt;br /&gt;
| '''PuTTY''' || Classic SSH client, widely used || [https://putty.org putty.org]&lt;br /&gt;
|-&lt;br /&gt;
| '''MobaXterm''' || SSH + X11 + file browser in one || [https://mobaxterm.mobatek.net mobaxterm.mobatek.net]&lt;br /&gt;
|-&lt;br /&gt;
| '''Windows Terminal / cmd''' || Built-in since Windows 10 1709 — just run &amp;lt;code&amp;gt;ssh&amp;lt;/code&amp;gt; || Built-in&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Enter &amp;lt;code&amp;gt;magus02.snu.edu.in&amp;lt;/code&amp;gt; as the hostname and port &amp;lt;code&amp;gt;22&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== For graphical applications (X11) ===&lt;br /&gt;
&lt;br /&gt;
If you need to run GUI tools remotely, enable X11 forwarding:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ ssh -X your_username@magus02.snu.edu.in&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
See the full [[Magus02/SSH|SSH guide]] for more details including key-based authentication.&lt;br /&gt;
&lt;br /&gt;
== File Transfer — Moving data onto / off the cluster ==&lt;br /&gt;
&lt;br /&gt;
You cannot run jobs from your local machine — files must be on the cluster's filesystem. Use one of these methods:&lt;br /&gt;
&lt;br /&gt;
* '''&amp;lt;code&amp;gt;scp&amp;lt;/code&amp;gt;''' — for individual files (built into Linux/macOS/Windows 10+)&lt;br /&gt;
* '''&amp;lt;code&amp;gt;rsync&amp;lt;/code&amp;gt;''' — for syncing directories efficiently&lt;br /&gt;
* '''WinSCP''' or '''FileZilla''' — graphical clients for Windows users&lt;br /&gt;
&lt;br /&gt;
Quick example with &amp;lt;code&amp;gt;scp&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# Upload a file to your home directory on Magus02:&lt;br /&gt;
$ scp myinput.dat your_username@magus02.snu.edu.in:~/&lt;br /&gt;
&lt;br /&gt;
# Download results back to your local machine:&lt;br /&gt;
$ scp your_username@magus02.snu.edu.in:~/results/output.log ./&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
See the full [[Magus02/File_Transfer|File Transfer guide]] for rsync usage and graphical client setup.&lt;br /&gt;
&lt;br /&gt;
== Scheduler — How to run programs on the cluster ==&lt;br /&gt;
&lt;br /&gt;
On Magus02, you cannot run compute-intensive programs directly on the login nodes. All production work must be submitted as '''batch jobs''' to the [[Magus02/Scheduling_Basics|Slurm scheduler]], which manages the queue and allocates resources on compute nodes.&lt;br /&gt;
&lt;br /&gt;
The basic workflow is:&lt;br /&gt;
&lt;br /&gt;
# Write a '''jobscript''' — a shell script that specifies resource requirements and the commands to run&lt;br /&gt;
# Submit it with &amp;lt;code&amp;gt;sbatch&amp;lt;/code&amp;gt;&lt;br /&gt;
# Monitor with &amp;lt;code&amp;gt;squeue&amp;lt;/code&amp;gt;&lt;br /&gt;
# Retrieve results from your output files&lt;br /&gt;
&lt;br /&gt;
A minimal Slurm jobscript looks like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#SBATCH --job-name=my_first_job&lt;br /&gt;
#SBATCH --partition=small&lt;br /&gt;
#SBATCH --nodes=1&lt;br /&gt;
#SBATCH --ntasks=8&lt;br /&gt;
#SBATCH --mem=32G&lt;br /&gt;
#SBATCH --time=01:00:00&lt;br /&gt;
#SBATCH --output=job_%j.out&lt;br /&gt;
#SBATCH --error=job_%j.err&lt;br /&gt;
&lt;br /&gt;
# Load required modules&lt;br /&gt;
module purge&lt;br /&gt;
module load intel/oneapi mpi/intelmpi&lt;br /&gt;
&lt;br /&gt;
# Run your program&lt;br /&gt;
./my_program input.dat&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Submit it with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ sbatch my_jobscript.sh&lt;br /&gt;
Submitted batch job 12345&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
→ See [[Magus02/Scheduling_Basics|Scheduling Basics]] and [[Magus02/Batch_Scheduler|Batch Scheduler]] for full details on queues, job types, and resource requests.&lt;br /&gt;
&lt;br /&gt;
== Modules — Using pre-installed software ==&lt;br /&gt;
&lt;br /&gt;
Magus02 uses the [[Magus02/Modules|Environment Modules]] system to manage software. Rather than installing everything yourself, you load the version you need:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ module avail               # list all available software&lt;br /&gt;
$ module load intel/oneapi   # load Intel compilers&lt;br /&gt;
$ module list                # check what is currently loaded&lt;br /&gt;
$ module unload intel/oneapi # unload a module&lt;br /&gt;
$ module purge               # unload everything&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
→ See [[Magus02/Modules|Environment Modules]] for full documentation.&lt;br /&gt;
&lt;br /&gt;
== Parallel Programming — Using multiple cores ==&lt;br /&gt;
&lt;br /&gt;
Most HPC workloads are designed to run in parallel across many CPU cores or nodes. Magus02 supports two primary paradigms:&lt;br /&gt;
&lt;br /&gt;
* '''[[Magus02/OpenMP_Usage|OpenMP]]''' — shared-memory parallelism within a single node (multithreading)&lt;br /&gt;
* '''[[Magus02/MPI_Usage|MPI]]''' — distributed-memory parallelism across multiple nodes (message passing)&lt;br /&gt;
&lt;br /&gt;
Hybrid jobs using both OpenMP and MPI simultaneously are also supported.&lt;br /&gt;
&lt;br /&gt;
== Useful Starting Points ==&lt;br /&gt;
&lt;br /&gt;
* [[Magus02/Shell|Linux Shell Quick Reference]] — basic commands you'll use every day&lt;br /&gt;
* [[Magus02/FAQ_Batch_Jobs|FAQ: Batch Jobs]] — troubleshooting common Slurm issues&lt;br /&gt;
* [[Magus02|Magus02 Main Page]] — full cluster specs, queue structure, and applications&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background:#0d1a2a;border-left:4px solid #00c9ff;border-radius:6px;padding:14px 18px;margin:20px 0;font-size:14px;color:#94a8be;&amp;quot;&amp;gt;&lt;br /&gt;
💡 &amp;lt;strong&amp;gt;Tip:&amp;lt;/strong&amp;gt; Always use &amp;lt;code&amp;gt;module purge&amp;lt;/code&amp;gt; at the start of your jobscripts to ensure a clean environment. Jobs that rely on modules loaded interactively can fail unpredictably. See [[Magus02/FAQ_Batch_Jobs|FAQ: Batch Jobs]] for more.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&amp;lt;div style=&amp;quot;font-family:monospace;font-size:11px;color:#484f58;text-align:right;&amp;quot;&amp;gt;&lt;br /&gt;
[[Magus02/Knowledge_Base|↑ Back to Knowledge Base]] · Maintained by HPC Administration · wiki.snu.edu.in&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Deepak</name></author>
	</entry>
</feed>