<?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=GPU_MIG_SLICE</id>
	<title>GPU MIG SLICE - 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=GPU_MIG_SLICE"/>
	<link rel="alternate" type="text/html" href="https://wiki.snu.edu.in/index.php?title=GPU_MIG_SLICE&amp;action=history"/>
	<updated>2026-11-05T00:42:56Z</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=GPU_MIG_SLICE&amp;diff=1447&amp;oldid=prev</id>
		<title>Bhuvnesh at 05:39, 12 October 2026</title>
		<link rel="alternate" type="text/html" href="https://wiki.snu.edu.in/index.php?title=GPU_MIG_SLICE&amp;diff=1447&amp;oldid=prev"/>
		<updated>2026-10-12T05:39:05Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 05:39, 12 October 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l51&quot; &gt;Line 51:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 51:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &amp;lt;code role=&amp;quot;text&amp;quot; style=&amp;quot;font-family: &amp;amp;quot;Google Sans Text&amp;amp;quot;, sans-serif; line-height: 1.15; margin-top: 0px;&amp;quot;&amp;gt;nvidia-smi&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &amp;lt;code role=&amp;quot;text&amp;quot; style=&amp;quot;font-family: &amp;amp;quot;Google Sans Text&amp;amp;quot;, sans-serif; line-height: 1.15; margin-top: 0px;&amp;quot;&amp;gt;nvidia-smi&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''''&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;blockquote style=&amp;quot;color: rgb(34, 34, 34); font-size: small; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; font-family: &amp;amp;quot;Google Sans Text&amp;amp;quot;, sans-serif; line-height: 1.15; margin-top: 0px;&amp;quot;&amp;gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;https://fonts.gstatic.com/s/e/notoemoji/17.0/1f4a1/32.png '&lt;/del&gt;''Important Tip:''' If your code or framework is not detecting the assigned MIG slices, double-check your script to ensure you are not accidentally overwriting or resetting the &amp;lt;code style=&amp;quot;font-family: &amp;amp;quot;Google Sans Text&amp;amp;quot;, sans-serif; line-height: 1.15; margin-top: 0px;&amp;quot;&amp;gt;$CUDA_VISIBLE_DEVICES&amp;lt;/code&amp;gt; variable during your environment or module setup.&amp;lt;/blockquote&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''''&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;blockquote style=&amp;quot;color: rgb(34, 34, 34); font-size: small; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; font-family: &amp;amp;quot;Google Sans Text&amp;amp;quot;, sans-serif; line-height: 1.15; margin-top: 0px;&amp;quot;&amp;gt;''Important Tip:'&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;nowiki/&amp;gt;&lt;/ins&gt;'' If your code or framework is not detecting the assigned MIG slices, double-check your script to ensure you are not accidentally overwriting or resetting the &amp;lt;code style=&amp;quot;font-family: &amp;amp;quot;Google Sans Text&amp;amp;quot;, sans-serif; line-height: 1.15; margin-top: 0px;&amp;quot;&amp;gt;$CUDA_VISIBLE_DEVICES&amp;lt;/code&amp;gt; variable during your environment or module setup.&amp;lt;/blockquote&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Bhuvnesh</name></author>
	</entry>
	<entry>
		<id>https://wiki.snu.edu.in/index.php?title=GPU_MIG_SLICE&amp;diff=1445&amp;oldid=prev</id>
		<title>Bhuvnesh: Created page with &quot; === Why MIG is Essential for Magus === Our core HPC environment, '''Magus02''', houses a total of '''8 A100 GPU cards'''. Because our physical GPU footprint is highly concent...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.snu.edu.in/index.php?title=GPU_MIG_SLICE&amp;diff=1445&amp;oldid=prev"/>
		<updated>2026-10-12T05:33:38Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; === Why MIG is Essential for Magus === Our core HPC environment, &amp;#039;&amp;#039;&amp;#039;Magus02&amp;#039;&amp;#039;&amp;#039;, houses a total of &amp;#039;&amp;#039;&amp;#039;8 A100 GPU cards&amp;#039;&amp;#039;&amp;#039;. Because our physical GPU footprint is highly concent...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
=== Why MIG is Essential for Magus ===&lt;br /&gt;
Our core HPC environment, '''Magus02''', houses a total of '''8 A100 GPU cards'''. Because our physical GPU footprint is highly concentrated, treating each A100 as an &amp;quot;all-or-nothing&amp;quot; resource creates severe scheduling bottlenecks and immense resource wastage.&lt;br /&gt;
&lt;br /&gt;
Prior to this upgrade, a user running a small script that only required 5GB of memory would lock an entire 80GB card, effectively wasting 75GB of enterprise VRAM and blocking other researchers from working. With only 8 cards total on Magus02, this under-utilization is no longer sustainable. MIG directly solves this problem.&lt;br /&gt;
&lt;br /&gt;
=== Why Use MIG? (And How It Benefits You) ===&lt;br /&gt;
MIG allows a single A100 physical GPU to be securely partitioned into 7 separate, isolated instances. This directly addresses the cluster bottlenecks discussed in our policy meeting by delivering:&lt;br /&gt;
&lt;br /&gt;
* '''Drastically Reduced Resource Wastage:''' Instead of only 8 users locking down the entire cluster, Magus02 can now dynamically host up to 56 individual GPU jobs simultaneously, ensuring no VRAM sits idle.&lt;br /&gt;
* '''Faster Queue Times:''' You can now run small-to-medium jobs immediately without waiting days in the queue for a full 80GB GPU to become free.&lt;br /&gt;
* '''Hardware-Level Isolation:''' Each MIG slice has its own dedicated memory, cache, and compute cores. Your job's performance will remain entirely unaffected by other users sharing the same physical card.&lt;br /&gt;
* '''Support for Multi-Process Frameworks:''' Because each MIG instance operates as a fully distinct GPU device, your multi-process frameworks can seamlessly bind to individual slices. This allows for clean, parallel data-processing tasks without complex internal scheduling.&lt;br /&gt;
&lt;br /&gt;
=== Updated GPU &amp;amp; CPU Configurations ===&lt;br /&gt;
To align with this shift toward efficiency, we have also '''lowered the minimum CPU requirement for GPU jobs from 16 cores to 4 cores''', allowing you to run much more compact and efficient workloads without wasting CPU cycles.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;color: rgb(34, 34, 34); font-size: small; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; margin-bottom: 32px; font-family: &amp;amp;quot;Google Sans Text&amp;amp;quot;, sans-serif; line-height: 1.15; margin-top: 0px;&amp;quot;&lt;br /&gt;
| style=&amp;quot;margin:0px;border:1px solid;line-height:1.15;&amp;quot; |'''Resource Type'''&lt;br /&gt;
| style=&amp;quot;margin:0px;border:1px solid;line-height:1.15;&amp;quot; |'''VRAM'''&lt;br /&gt;
| style=&amp;quot;margin:0px;border:1px solid;line-height:1.15;&amp;quot; |'''Compute (SM)'''&lt;br /&gt;
| style=&amp;quot;margin:0px;border:1px solid;line-height:1.15;&amp;quot; |'''Slurm Directive'''&lt;br /&gt;
|- style=&amp;quot;line-height: 1.15; margin-top: 0px;&amp;quot;&lt;br /&gt;
| style=&amp;quot;margin:0px;border:1px solid;line-height:1.15;&amp;quot; |&amp;lt;span style=&amp;quot;line-height: 1.15; margin-top: 0px;&amp;quot;&amp;gt;'''Full GPU'''&amp;lt;/span&amp;gt;&lt;br /&gt;
| style=&amp;quot;margin:0px;border:1px solid;line-height:1.15;&amp;quot; |&amp;lt;span style=&amp;quot;line-height: 1.15; margin-top: 0px;&amp;quot;&amp;gt;80GB&amp;lt;/span&amp;gt;&lt;br /&gt;
| style=&amp;quot;margin:0px;border:1px solid;line-height:1.15;&amp;quot; |&amp;lt;span style=&amp;quot;line-height: 1.15; margin-top: 0px;&amp;quot;&amp;gt;98 SMs&amp;lt;/span&amp;gt;&lt;br /&gt;
| style=&amp;quot;margin:0px;border:1px solid;line-height:1.15;&amp;quot; |&amp;lt;span style=&amp;quot;line-height: 1.15; margin-top: 0px;&amp;quot;&amp;gt;&amp;lt;code style=&amp;quot;font-family: &amp;amp;quot;Google Sans Text&amp;amp;quot;, sans-serif; line-height: 1.15; margin-top: 0px;&amp;quot;&amp;gt;#SBATCH --gres=gpu:nvidia_a100_80gb_&amp;lt;wbr /&amp;gt;pcie_7g.80gb:1&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
|- style=&amp;quot;line-height: 1.15; margin-top: 0px;&amp;quot;&lt;br /&gt;
| style=&amp;quot;margin:0px;border:1px solid;line-height:1.15;&amp;quot; |&amp;lt;span style=&amp;quot;line-height: 1.15; margin-top: 0px;&amp;quot;&amp;gt;'''MIG Slice (Single)'''&amp;lt;/span&amp;gt;&lt;br /&gt;
| style=&amp;quot;margin:0px;border:1px solid;line-height:1.15;&amp;quot; |&amp;lt;span style=&amp;quot;line-height: 1.15; margin-top: 0px;&amp;quot;&amp;gt;10GB&amp;lt;/span&amp;gt;&lt;br /&gt;
| style=&amp;quot;margin:0px;border:1px solid;line-height:1.15;&amp;quot; |&amp;lt;span style=&amp;quot;line-height: 1.15; margin-top: 0px;&amp;quot;&amp;gt;14 SMs&amp;lt;/span&amp;gt;&lt;br /&gt;
| style=&amp;quot;margin:0px;border:1px solid;line-height:1.15;&amp;quot; |&amp;lt;span style=&amp;quot;line-height: 1.15; margin-top: 0px;&amp;quot;&amp;gt;&amp;lt;code style=&amp;quot;font-family: &amp;amp;quot;Google Sans Text&amp;amp;quot;, sans-serif; line-height: 1.15; margin-top: 0px;&amp;quot;&amp;gt;#SBATCH --gres=gpu:nvidia_a100_80gb_&amp;lt;wbr /&amp;gt;pcie_1g.10gb:1&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Combining &amp;amp; Using Multiple Slices in One Job ===&lt;br /&gt;
If your workload requires more than 10GB of VRAM or needs to scale across multiple independent GPU targets within a single job script, you can request multiple slices simultaneously.&lt;br /&gt;
&lt;br /&gt;
==== 1. Requesting the Slices ====&lt;br /&gt;
To request multiple slices (for example, 2 slices to get 20GB of total VRAM), adjust your Slurm directive count at the end of the string:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;text-align: center; display: block;&amp;quot;&amp;gt;'''''#SBATCH --gres=gpu:nvidia_a100_80gb_&amp;lt;wbr /&amp;gt;pcie_1g.10gb:2'''''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. Utilizing the Slices in Your Job ====&lt;br /&gt;
When you request multiple slices, Slurm will automatically provision them and expose them to your job environment.&lt;br /&gt;
&lt;br /&gt;
* '''For Multi-Process/Multi-GPU Frameworks:''' Frameworks like PyTorch (DDP), TensorFlow, or custom multi-process Python scripts will automatically detect these as '''two distinct GPU devices''' (Device 0 and Device 1).&lt;br /&gt;
* '''For Parallel Task Execution:''' You can target specific slices within the same job submission using standard environment variables or Slurm arrays.&lt;br /&gt;
&lt;br /&gt;
=== Troubleshooting &amp;amp; Device Visibility ===&lt;br /&gt;
Slurm automatically manages and sets up the environment for you. To verify your allocation or troubleshoot device visibility within your job script, you can print the assigned environment variables:&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: rgb(34, 34, 34); font-size: small; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; font-family: &amp;amp;quot;Google Sans Text&amp;amp;quot;, sans-serif; line-height: 1.15; margin-top: 0px;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;line-height: 1.15; margin-top: 0px;&amp;quot;&amp;gt;&amp;lt;div style=&amp;quot;line-height: 1.15; margin-top: 0px;&amp;quot;&amp;gt;&amp;lt;div style=&amp;quot;line-height: 1.15; margin-top: 0px;&amp;quot;&amp;gt;&amp;lt;div style=&amp;quot;line-height: 1.15; margin-top: 0px;&amp;quot;&amp;gt;'''''&amp;lt;div style=&amp;quot;line-height: 1.15; margin-top: 0px;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;line-height: 1.15; margin-top: 0px;&amp;quot;&amp;gt;echo&amp;lt;/span&amp;gt; &amp;lt;span style=&amp;quot;line-height: 1.15; margin-top: 0px;&amp;quot;&amp;gt;&amp;quot;Allocated CUDA Devices: &amp;lt;span style=&amp;quot;line-height: 1.15; margin-top: 0px;&amp;quot;&amp;gt;$CUDA_VISIBLE_DEVICES&amp;lt;/span&amp;gt;&amp;quot;&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
 &amp;lt;code role=&amp;quot;text&amp;quot; style=&amp;quot;font-family: &amp;amp;quot;Google Sans Text&amp;amp;quot;, sans-serif; line-height: 1.15; margin-top: 0px;&amp;quot;&amp;gt;nvidia-smi&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
'''''&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;blockquote style=&amp;quot;color: rgb(34, 34, 34); font-size: small; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; font-family: &amp;amp;quot;Google Sans Text&amp;amp;quot;, sans-serif; line-height: 1.15; margin-top: 0px;&amp;quot;&amp;gt;https://fonts.gstatic.com/s/e/notoemoji/17.0/1f4a1/32.png '''Important Tip:''' If your code or framework is not detecting the assigned MIG slices, double-check your script to ensure you are not accidentally overwriting or resetting the &amp;lt;code style=&amp;quot;font-family: &amp;amp;quot;Google Sans Text&amp;amp;quot;, sans-serif; line-height: 1.15; margin-top: 0px;&amp;quot;&amp;gt;$CUDA_VISIBLE_DEVICES&amp;lt;/code&amp;gt; variable during your environment or module setup.&amp;lt;/blockquote&amp;gt;&lt;/div&gt;</summary>
		<author><name>Bhuvnesh</name></author>
	</entry>
</feed>