-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3cce5b7
commit d17090f
Showing
5 changed files
with
57 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,10 +15,15 @@ From a command line, run the following lines, logout, then back in, and hencefor | |
|
||
```bash | ||
echo 'export SLURM_CLUSTERS="cbsueccosl01"' >> $HOME/.bash_profile | ||
``` | ||
|
||
In the following, replace `netid` with your actual NetID. | ||
|
||
|
||
```bash | ||
echo [email protected] >> $HOME/.forward | ||
``` | ||
|
||
(replace your `netid` in the second command). | ||
|
||
### Enabling software via `module` | ||
|
||
|
@@ -59,6 +64,28 @@ If you need a specific node, use | |
srun -w cbsueccoXX --pty bash -l | ||
``` | ||
|
||
## Interactive GUI jobs | ||
|
||
You should be able to get interactive GUI jobs (Stata, MATLAB) to work as follows: | ||
|
||
```bash | ||
salloc -N 1 | ||
ssh -X $SLURM_NODELIST /usr/local/stata18/xstata | ||
``` | ||
|
||
or | ||
|
||
```bash | ||
salloc -N 1 | ||
ssh -X $SLURM_NODELIST /local/opt/MATLAB/R2023a/bin/matlab | ||
``` | ||
|
||
:::{warning} | ||
|
||
It is technically feasible to login to each node without using SLURM. However, this confuses the job scheduler. Do not abuse this, exclusion from use of the cluster may be the consequence. | ||
|
||
::: | ||
|
||
## To see running jobs | ||
|
||
``` | ||
|
@@ -77,4 +104,4 @@ where the ID can be gleaned from the `squeue` command. | |
|
||
## Additional information | ||
|
||
- [https://biohpc.cornell.edu/lab/SLURM-on-demand.htm](https://biohpc.cornell.edu/lab/SLURM-on-demand.htm) | ||
- [https://biohpc.cornell.edu/lab/SLURM-on-demand.htm](https://biohpc.cornell.edu/lab/SLURM-on-demand.htm) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -439,6 +439,7 @@ <h2> Contents </h2> | |
</li> | ||
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#submitting-jobs">Submitting jobs</a></li> | ||
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#interactive-shell">Interactive shell</a></li> | ||
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#interactive-gui-jobs">Interactive GUI jobs</a></li> | ||
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#to-see-running-jobs">To see running jobs</a></li> | ||
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#to-cancel-a-running-job">To cancel a running job</a></li> | ||
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#additional-information">Additional information</a></li> | ||
|
@@ -465,10 +466,12 @@ <h2>Command line<a class="headerlink" href="#command-line" title="Link to this h | |
<h3>Setting up SLURM-specific settings<a class="headerlink" href="#setting-up-slurm-specific-settings" title="Link to this heading">#</a></h3> | ||
<p>From a command line, run the following lines, logout, then back in, and henceforth you can skip the <code class="docutils literal notranslate"><span class="pre">--cluster</span> <span class="pre">cbsueccosl01</span></code> option:</p> | ||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="nb">echo</span><span class="w"> </span><span class="s1">'export SLURM_CLUSTERS="cbsueccosl01"'</span><span class="w"> </span>>><span class="w"> </span><span class="nv">$HOME</span>/.bash_profile | ||
<span class="nb">echo</span><span class="w"> </span>[email protected]<span class="w"> </span>>><span class="w"> </span><span class="nv">$HOME</span>/.forward | ||
</pre></div> | ||
</div> | ||
<p>(replace your <code class="docutils literal notranslate"><span class="pre">netid</span></code> in the second command).</p> | ||
<p>In the following, replace <code class="docutils literal notranslate"><span class="pre">netid</span></code> with your actual NetID.</p> | ||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="nb">echo</span><span class="w"> </span>[email protected]<span class="w"> </span>>><span class="w"> </span><span class="nv">$HOME</span>/.forward | ||
</pre></div> | ||
</div> | ||
</section> | ||
<section id="enabling-software-via-module"> | ||
<h3>Enabling software via <code class="docutils literal notranslate"><span class="pre">module</span></code><a class="headerlink" href="#enabling-software-via-module" title="Link to this heading">#</a></h3> | ||
|
@@ -502,6 +505,23 @@ <h2>Interactive shell<a class="headerlink" href="#interactive-shell" title="Link | |
</pre></div> | ||
</div> | ||
</section> | ||
<section id="interactive-gui-jobs"> | ||
<h2>Interactive GUI jobs<a class="headerlink" href="#interactive-gui-jobs" title="Link to this heading">#</a></h2> | ||
<p>You should be able to get interactive GUI jobs (Stata, MATLAB) to work as follows:</p> | ||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>salloc<span class="w"> </span>-N<span class="w"> </span><span class="m">1</span><span class="w"> </span> | ||
ssh<span class="w"> </span>-X<span class="w"> </span><span class="nv">$SLURM_NODELIST</span><span class="w"> </span>/usr/local/stata18/xstata | ||
</pre></div> | ||
</div> | ||
<p>or</p> | ||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>salloc<span class="w"> </span>-N<span class="w"> </span><span class="m">1</span><span class="w"> </span> | ||
ssh<span class="w"> </span>-X<span class="w"> </span><span class="nv">$SLURM_NODELIST</span><span class="w"> </span>/local/opt/MATLAB/R2023a/bin/matlab | ||
</pre></div> | ||
</div> | ||
<div class="admonition warning"> | ||
<p class="admonition-title">Warning</p> | ||
<p>It is technically feasible to login to each node without using SLURM. However, this confuses the job scheduler. Do not abuse this, exclusion from use of the cluster may be the consequence.</p> | ||
</div> | ||
</section> | ||
<section id="to-see-running-jobs"> | ||
<h2>To see running jobs<a class="headerlink" href="#to-see-running-jobs" title="Link to this heading">#</a></h2> | ||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">squeue</span> | ||
|
@@ -596,6 +616,7 @@ <h2>Additional information<a class="headerlink" href="#additional-information" t | |
</li> | ||
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#submitting-jobs">Submitting jobs</a></li> | ||
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#interactive-shell">Interactive shell</a></li> | ||
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#interactive-gui-jobs">Interactive GUI jobs</a></li> | ||
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#to-see-running-jobs">To see running jobs</a></li> | ||
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#to-cancel-a-running-job">To cancel a running job</a></li> | ||
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#additional-information">Additional information</a></li> | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.