Ramble's dependencies are listed within the top level requirements.txt file.
In addition to the listed python dependencies, Ramble depends on spack for some application definition files.
Please see Spack's documentation for getting spack installed.
Installing ramble is easy. You can clone it from the github repository using this command:
$ git clone -c feature.manyFiles=true https://github.com/GoogleCloudPlatform/ramble.gitThis will create a directory called ramble.
Once you have cloned Ramble, we recommend sourcing the appropriate script for your shell:
# For bash/zsh/sh
$ . ramble/share/ramble/setup-env.sh
# For tcsh/csh
$ source ramble/share/ramble/setup-env.csh
# For fish
$ . ramble/share/ramble/setup-env.fishThat's it! You're ready to use Ramble.
Sourcing these files will put the ramble command in your PATH.
If you do not want to use Ramble's shell support, you can always just run the
ramble command directly from ramble/bin/ramble.
When the ramble command is executed, it searches for an appropriate Python
interpreter to use, which can be explicitly overriden by setting the
RAMBLE_PYTHON environment variable. When sourcing the appropriate shell
setup script, RAMBLE_PYTHON will be set to the interpreter found at
sourcing time, ensuring future invocations of the ramble command will
continue to use the same consistent python version regardless of changes in the
environment.
To get information on the available commands, you can execute:
$ ramble help --allFor help with sub-commands, the -h flag can be used:
$ ramble <subcommand> -hIn order to get information about the available applications defined within
ramble, you can use the command:
$ ramble listThis command uses filtering to search the defined applications, e.g.:
$ ramble list wrfwill list both wrfv3 and wrfv4.
To configure experiments, you need to use a Ramble workspace. A workspace is a self contained directory that contains configuration files, template files, and eventually will contain spack environments, input files, and experiment execution directories.
Workspaces fall into one of two categories:
Named Workspaces (created with ramble workspace create <name>) are located
in $ramble/var/workspaces/<workspace_name>. These workspaces can be managed
with other ramble commands directly (e.g. ramble workspace remove <name>).
Anonymous Workspaces (created with ramble workspace create -d <path>) are
located in the provided path, and need to be managed independently of ramble
commands.
A workspace can be selected when executing ramble through the use of the
-w and -D flags.
To create a new Ramble workspace, you can use:
$ ramble workspace create [<name>] [-d <path>]Once a workspace is created, you can activate the workspace. This allows some subsequent commands to work without explicitly passing in a workspace. This is done through:
$ ramble workspace activate [<name>/<path>]With an activated workspace, you can get information about the workspace with:
$ ramble workspace infoWithin the created workspace, a configs directory is created to house the
configuration files.
A newly created workspace will contain:
- configs
| - ramble.yaml
| - execute_experiment.tplThe ramble.yaml file contains the configuration of the workspace. Any file
placed in this configs directory with the extension .tpl will generate
a "rendered" version within every experiment directory.
These files can be edited with your favorite editor, or though the command:
$ ramble workspace editFlags exist to control whether you want to edit a template file, or the configuration file.
Variables are defined of the format {file_prefix}, that contain the path to
the rendered version within every experiment. As an example:
configs/execute_experiment.tplWill define {execute_experiment} with a value set to the path of hte
generated file.
(More explicitly, execute_experiment={experiment_run_dir}/{template_name_sans_extension})
After configuring a workspace with applications, workloads, and experiments, Ramble can be used to inject default software configurations for the requested experiments. To do this, you can use the:
$ ramble workspace concretizeThis will fill out the spack dictionary within the ramble.yaml file
with defaults. The defaults can be configured however you want before
installing the actual software.
Once a workspace is concretized, it can be set up. This process is executed through:
$ ramble workspace setup- The setup action will:
- Install required / requested software
- Download required input files
- Create and configure experiment directories
- Create the
all_experimentsscript
After the workspace is set up, its experiments can be executed. The two methods to run the experiments are:
$ ramble on
or;
$ ./all_experimentsOnce the experiments within a workspace are complete, the experiments can be analyzed. This is done through:
$ ramble workspace analyzeThis creates a results file in the root of the workspace that contains
extracted figures of merit.
- Ramble can create an archive of a workspace. This is a self contained copy of various important aspects of the workspace, including:
- All files in the
configsdirectory - Rendered templates in the experiments directories
- Files that would have figures of merit extracted
- Auxiliary files that an application lists for archival
- All genreated spack.yaml files
- All files in the
You can archive a workspace with:
$ ramble workspace archiveAnd you can create a tar-ball with:
$ ramble workspace archive -t