Skip to content

Commit

Permalink
deploy: 6390242
Browse files Browse the repository at this point in the history
  • Loading branch information
zingale committed Jul 17, 2024
1 parent bae4115 commit 06f4b82
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 22 deletions.
11 changes: 3 additions & 8 deletions _sources/olcf-andes.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Batch Visualization on Andes
============================

It is best to work on ``andes.olcf.ornl.gov``. You will want to setup
a new env for andes. We'll call it ``myenv``.
a new env for andes. We'll call it ``andes_env``.

You need to load python with anaconda support there:

Expand All @@ -24,11 +24,6 @@ this will modify your `.bashrc`, adding code that is specific to andes.
The version of ``conda`` install on andes is very own, so it is best
to install all other packages using pip in your new environment.

.. note::

OLCF also has ``miniforge`` installed on Andes, although the documentation
is out of date regarding that: https://docs.olcf.ornl.gov/software/python/index.html

To activate the environment, do:

.. prompt:: bash
Expand All @@ -48,7 +43,7 @@ you need to do:

.. prompt:: bash

source activate myenv
source activate andes_env

Then you can run a python script that does visualization as with the
following submission script::
Expand All @@ -61,7 +56,7 @@ following submission script::

cd $SLURM_SUBMIT_DIR

source activate myenv
source activate andes_env

srun python vol-xrb-enuc.py flame_wave_1000Hz_25cm_smallplt203204

Expand Down
2 changes: 1 addition & 1 deletion _sources/olcf-compilers.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ load modules:
.. prompt:: bash

module load PrgEnv-gnu
module load cray-mpich/8.1.27
module load cray-mpich/8.1.28
module load craype-accel-amd-gfx90a
module load amd-mixed/6.0.0
module unload darshan-runtime
Expand Down
7 changes: 4 additions & 3 deletions _static/searchtools.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ const Search = {

htmlToText: (htmlString, anchor) => {
const htmlElement = new DOMParser().parseFromString(htmlString, 'text/html');
for (const removalQuery of [".headerlinks", "script", "style"]) {
for (const removalQuery of [".headerlink", "script", "style"]) {
htmlElement.querySelectorAll(removalQuery).forEach((el) => { el.remove() });
}
if (anchor) {
Expand Down Expand Up @@ -328,13 +328,14 @@ const Search = {
for (const [title, foundTitles] of Object.entries(allTitles)) {
if (title.toLowerCase().trim().includes(queryLower) && (queryLower.length >= title.length/2)) {
for (const [file, id] of foundTitles) {
let score = Math.round(100 * queryLower.length / title.length)
const score = Math.round(Scorer.title * queryLower.length / title.length);
const boost = titles[file] === title ? 1 : 0; // add a boost for document titles
normalResults.push([
docNames[file],
titles[file] !== title ? `${titles[file]} > ${title}` : title,
id !== null ? "#" + id : "",
null,
score,
score + boost,
filenames[file],
]);
}
Expand Down
11 changes: 3 additions & 8 deletions olcf-andes.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
<section id="batch-visualization-on-andes">
<h1>Batch Visualization on Andes<a class="headerlink" href="#batch-visualization-on-andes" title="Link to this heading"></a></h1>
<p>It is best to work on <code class="docutils literal notranslate"><span class="pre">andes.olcf.ornl.gov</span></code>. You will want to setup
a new env for andes. We’ll call it <code class="docutils literal notranslate"><span class="pre">myenv</span></code>.</p>
a new env for andes. We’ll call it <code class="docutils literal notranslate"><span class="pre">andes_env</span></code>.</p>
<p>You need to load python with anaconda support there:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">
span.prompt1:before {
Expand All @@ -108,11 +108,6 @@ <h1>Batch Visualization on Andes<a class="headerlink" href="#batch-visualization
<p>The version of <code class="docutils literal notranslate"><span class="pre">conda</span></code> install on andes is very own, so it is best
to install all other packages using pip in your new environment.</p>
</div>
<div class="admonition note">
<p class="admonition-title">Note</p>
<p>OLCF also has <code class="docutils literal notranslate"><span class="pre">miniforge</span></code> installed on Andes, although the documentation
is out of date regarding that: <a class="reference external" href="https://docs.olcf.ornl.gov/software/python/index.html">https://docs.olcf.ornl.gov/software/python/index.html</a></p>
</div>
<p>To activate the environment, do:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span class="prompt1"><span class="nb">source</span><span class="w"> </span>activate<span class="w"> </span>myenv</span>
</pre></div></div><p>You can then install yt from source:</p>
Expand All @@ -121,7 +116,7 @@ <h1>Batch Visualization on Andes<a class="headerlink" href="#batch-visualization
<span class="prompt1">pip<span class="w"> </span>install<span class="w"> </span>.</span>
</pre></div></div><p>Each time you log in, if you want to use this environment,
you need to do:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span class="prompt1"><span class="nb">source</span><span class="w"> </span>activate<span class="w"> </span>myenv</span>
<div class="highlight-default notranslate"><div class="highlight"><pre><span class="prompt1"><span class="nb">source</span><span class="w"> </span>activate<span class="w"> </span>andes_env</span>
</pre></div></div><p>Then you can run a python script that does visualization as with the
following submission script:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>#!/bin/bash
Expand All @@ -132,7 +127,7 @@ <h1>Batch Visualization on Andes<a class="headerlink" href="#batch-visualization

cd $SLURM_SUBMIT_DIR

source activate myenv
source activate andes_env

srun python vol-xrb-enuc.py flame_wave_1000Hz_25cm_smallplt203204
</pre></div>
Expand Down
2 changes: 1 addition & 1 deletion olcf-compilers.html
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ <h2>Frontier<a class="headerlink" href="#frontier" title="Link to this heading">
<p>see: <a class="reference external" href="https://docs.olcf.ornl.gov/systems/frontier_user_guide.html#programming-environment">https://docs.olcf.ornl.gov/systems/frontier_user_guide.html#programming-environment</a></p>
<p>load modules:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span class="prompt1">module<span class="w"> </span>load<span class="w"> </span>PrgEnv-gnu</span>
<span class="prompt1">module<span class="w"> </span>load<span class="w"> </span>cray-mpich/8.1.27</span>
<span class="prompt1">module<span class="w"> </span>load<span class="w"> </span>cray-mpich/8.1.28</span>
<span class="prompt1">module<span class="w"> </span>load<span class="w"> </span>craype-accel-amd-gfx90a</span>
<span class="prompt1">module<span class="w"> </span>load<span class="w"> </span>amd-mixed/6.0.0</span>
<span class="prompt1">module<span class="w"> </span>unload<span class="w"> </span>darshan-runtime</span>
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

0 comments on commit 06f4b82

Please sign in to comment.