<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>The <font face="monospace">SBATCH_EXCLUSIVE</font>
environment-variable is supposed to be equivalent to using the <font
face="monospace">--exclusive flag</font> on the command-line or
in the sbatch-header</p>
<p>
<blockquote type="cite">
<dl compact="compact">
<dt><b>--exclusive</b>[={user|mcs}]</dt>
<dd>The job allocation can not share nodes with other running
jobs (or just other
users with the "=user" option or with the "=mcs" option).
If user/mcs are not specified (i.e. the job allocation can
not share nodes with
other running jobs), the job is allocated all CPUs and GRES
on all nodes in the
allocation, but is only allocated as much memory as it
requested. This is by
design to support gang scheduling, because suspended jobs
still reside in
memory. To request all the memory on a node, use <b>--mem=0</b>.
The default shared/exclusive behavior depends on system
configuration and the
partition's <b>OverSubscribe</b> option takes precedence
over the job's option.
NOTE: Since shared GRES (MPS) cannot be allocated at the
same time as a sharing
GRES (GPU) this option only allocates all sharing GRES and
no underlying shared
GRES.
<p>
<b>NOTE</b>: This option is mutually exclusive with <b>--oversubscribe</b>.
</p>
</dd>
</dl>
</blockquote>
<blockquote type="cite">
<dl compact="compact">
<dt><b>SBATCH_EXCLUSIVE</b></dt>
<dd>Same as <b>--exclusive</b>
</dd>
</dl>
</blockquote>
I get that these correspond</p>
<blockquote>
<p><font face="monospace">--exclusive=user export
SBATCH_EXCLUSIVE=user<br>
--exclusive=mcs export SBATCH_EXCLUSIVE=mcs</font></p>
</blockquote>
<p>But <font face="monospace">--exclusive</font> has a default
behavior if I don't assign it a value. What do I set <font
face="monospace">SBATCH_EXCLUSIVE</font> to, to get the same
default behavior?</p>
<p><br>
</p>
</body>
</html>