Skip to content

Commit

Permalink
Merge pull request #658 from akiki-liang0/origin/develop
Browse files Browse the repository at this point in the history
fix/update tutorial issues
  • Loading branch information
douglasjacobsen authored Sep 24, 2024
2 parents 3c1a1a1 + 5029ce8 commit 6814dd2
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 13 deletions.
4 changes: 2 additions & 2 deletions examples/tutorial_11_exec_order_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ ramble:
use_mpi: false
executables:
- builtin::env_vars
- builtin::spack_source
- builtin::spack_activate
- package_manager_builtin::spack::spack_source
- package_manager_builtin::spack::spack_activate
- cleanup
- copy
- fix_12km
Expand Down
2 changes: 1 addition & 1 deletion lib/ramble/docs/tutorials/10_using_modifiers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Which might output the following:
This shows there are four modifiers in this installation of Ramble. Two very
general modifiers in this list are ``lscpu`` and ``intel-aps``. Modifiers are
allowed to behave in different ways. Their functionality should be documented
at a high-level through the ``ramble mods info`` command. To get information
at a high-level through the ``ramble info --type modifiers`` command. To get information
about the ``lscpu`` modifier, execute:

.. code-block:: console
Expand Down
9 changes: 1 addition & 8 deletions lib/ramble/docs/tutorials/9_success_criteria.rst
Original file line number Diff line number Diff line change
Expand Up @@ -166,14 +166,7 @@ explore using this after you perform experiments.
To ensure the success criteria are checked and the experiments pass them,
ensure ``SUCCESS`` is printed for the status of each experiment.

When an experiment fails, you can force Ramble to print the figure of merit
data using:

.. code-block:: console
$ ramble workspace analyze --always-print-foms
Also, running analyze in debug mode as:
Running analyze in debug mode as:

.. code-block:: console
Expand Down
13 changes: 11 additions & 2 deletions lib/ramble/docs/tutorials/mirrors.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ Write the following configuration into the file, save, and exit:
.. code-block:: yaml
ramble:
variants:
package_manager: spack
env_vars:
set:
OMP_NUM_THREADS: '{n_threads}'
Expand Down Expand Up @@ -74,6 +76,8 @@ will look something like this:
.. code-block:: yaml
ramble:
variants:
package_manager: spack
env_vars:
set:
OMP_NUM_THREADS: '{n_threads}'
Expand Down Expand Up @@ -514,9 +518,14 @@ For example, using the mirror directories we created above,

.. code-block:: console
$ ramble mirror add --scope=[site,user] $HOME/wrfv4_mirror/inputs
$ ramble mirror add --scope=site ramble_mirror $HOME/wrfv4_mirror/inputs
$ spack mirror add $HOME/wrfv4_mirror/software
$ spack mirror add spack_mirror $HOME/wrfv4_mirror/software
**NOTE**: The ``--scope`` argument controls at what level Ramble is configured to use this mirror. The default scope
is ``user`` which places the config within the ``~/.ramble`` directory, and it only applies to the user that executed
this comment. Using ``--scope=site`` applies the config to the installation directory for Ramble, and all users that
use this same installation would have the config option applied to them.

To validate that the mirrors were installed correctly, try something like the following,

Expand Down

0 comments on commit 6814dd2

Please sign in to comment.