Create an Experiment#
Create new experiment#
To create a new experiment, run the following command:
autosubmit expid -H <HPCname> -d "<Description>"
Where:
HPCname- The name of the main HPC platform for the experiment (will be the default platform for all tasks)Description- A brief description of the experiment
Options:
$ autosubmit expid -h
Output:
Autosubmit v4.2.0
Command traceability:
Command: /home/docs/checkouts/readthedocs.org/user_builds/autosubmit/envs/latest/bin/autosubmit expid -h
Host: build-35786016-project-45339-autosubmit
User: docs
PID: 1010
Python: 3.12.13
Platform: Linux-7.0.0-1004-aws-x86_64-with-glibc2.35
Timezone: UTC (UTC+00:00)
Working directory: /home/docs/checkouts/readthedocs.org/user_builds/autosubmit/checkouts/latest/docs
usage: autosubmit expid [-h] [-op | -ev | -t] [-dm | -min] [-y COPY]
[-repo GIT_REPO] [-b GIT_BRANCH] [-conf GIT_AS_CONF]
[-local] [-H HPC] -d DESCRIPTION [-v] [--profile]
Creates a new experiment.
Creates a new experiment and returns its Experiment ID. The experiment can
be created with default or minimal configuration, copied from an existing
experiment, or configured to use files from a Git repository.
An HPC and description must be specified for the experiment, and the experiment
type can be set to operational, evaluation, or testcase.
options:
-h, --help Show available options and exit.
-op, --operational Create a new experiment with operational experiment
identifier.
-ev, --evaluation Create a new experiment with evaluation experiment
identifier.
-t, --testcase Create a new experiment with testcase experiment
identifier.
-dm, --dummy Create a new experiment with default values, usually
for testing.
-min, --minimal_configuration
Create a new experiment with minimal configuration,
usually combined with -repo.
-y COPY, --copy COPY Make a copy of the specified experiment.
-repo GIT_REPO, --git_repo GIT_REPO
Set a git repository for the experiment.
-b GIT_BRANCH, --git_branch GIT_BRANCH
Set a git branch for the experiment.
-conf GIT_AS_CONF, --git_as_conf GIT_AS_CONF
Set the git path to as_conf.
-local, --use_local_minimal
Use local minimal file instead of Git.
-H HPC, --HPC HPC Specify the HPC to use for the experiment.
-d DESCRIPTION, --description DESCRIPTION
Set a description for the experiment to store in the
database.
-v, --update_version Update experiment version.
--profile Print performance parameters of the execution of this
command.
Examples:
# create a new experiment with a description.
$ autosubmit expid -d "My experiment"
# create an experiment using a specific HPC.
$ autosubmit expid -d "My experiment" -H marenostrum5
# create a minimal experiment from a Git repository.
$ autosubmit expid -d "My experiment" -min -repo https://github.com/example/project.git
# create a new experiment by copying an existing experiment.
$ autosubmit expid -d "My experiment copy" -y a000
Examples:
# Basic experiment creation
autosubmit expid --HPC marenostrum4 --description "experiment is about..."
# Create from repository with minimal configuration
autosubmit expid -min -repo https://earth.bsc.es/gitlab/ces/auto-advanced_config_example \
-b main -conf as_conf -d "minimal config example"
# Create dummy experiment for testing
autosubmit expid -dm -d "dummy test"
Configuring default platforms#
If you have an autosubmitrc or .autosubmitrc file in your home directory, you can configure a default platforms
file that will be used as a template for new experiments.
Add the following to your autosubmitrc file:
[conf]
custom_platforms = /home/Earth/user/custom.yml
Note
The path must be absolute (like the output of pwd) and include the filename of your custom platforms configuration.
Copy another experiment#
To copy an existing experiment with a new unique identifier:
# Copy experiment with default configuration
autosubmit expid -y <EXPID> -H <HPCname> -d "<Description>"
Where:
EXPID- The experiment identifier to copy fromHPCname- The name of the main HPC platform for the new experimentDescription- A brief description of the new experiment
Tip
You can configure default platforms in your autosubmitrc file:
[conf]
custom_platforms = /home/Earth/user/custom.yml
Create a dummy experiment#
Dummy experiments are useful for testing your Autosubmit configuration without expensive computations. They behave like regular experiments but only submit sleep jobs to the HPC platform.
To create a dummy experiment:
autosubmit expid -H <HPCname> -dm -d "<Description>"
Where:
HPCname- The HPC platform to testDescription- A brief description
Example:
autosubmit expid -H ithaca -dm -d "Testing Autosubmit configuration"
Create a test case experiment#
Test case experiments use a reserved “t” prefix in their experiment ID to distinguish testing suites from production runs. They allow you to create experiments with specific configurations for testing purposes.
To create a test case experiment:
autosubmit testcase
Options:
$ autosubmit testcase -h
Output:
Autosubmit v4.2.0
Command traceability:
Command: /home/docs/checkouts/readthedocs.org/user_builds/autosubmit/envs/latest/bin/autosubmit testcase -h
Host: build-35786016-project-45339-autosubmit
User: docs
PID: 1012
Python: 3.12.13
Platform: Linux-7.0.0-1004-aws-x86_64-with-glibc2.35
Timezone: UTC (UTC+00:00)
Working directory: /home/docs/checkouts/readthedocs.org/user_builds/autosubmit/checkouts/latest/docs
usage: autosubmit testcase [-h] [-y COPY | -min] -d DESCRIPTION [-c CHUNKS]
[-m MEMBER] [-s STARDATE] -H HPC [-repo GIT_REPO]
[-b GIT_BRANCH] [-conf GIT_AS_CONF] [-local] [-v]
[--profile]
Creates a test experiment.
options:
-h, --help Show available options and exit.
-y COPY, --copy COPY Make a copy of the specified experiment
-min, --minimal_configuration
Create a new experiment with minimal configuration,
usually combined with -repo.
-d DESCRIPTION, --description DESCRIPTION
Description of the test case.
-c CHUNKS, --chunks CHUNKS
Chunks to run.
-m MEMBER, --member MEMBER
Member to run.
-s STARDATE, --stardate STARDATE
Star date to run.
-H HPC, --HPC HPC HPC to run the experiment on it.
-repo GIT_REPO, --git_repo GIT_REPO
Set a Git repository for the experiment.
-b GIT_BRANCH, --git_branch GIT_BRANCH
Set a Git branch for the experiment.
-conf GIT_AS_CONF, --git_as_conf GIT_AS_CONF
Set the Git path to as_conf.
-local, --use_local_minimal
Uses local minimal file instead of Git.
-v, --update_version Update experiment version.
--profile Print performance parameters of the execution of this
command.
Example:
autosubmit testcase -d "TEST CASE cca-intel auto-ecearth3 layer 0" \
-H cca-intel -b 3.2.0b_develop -y a09n
Profiling experiment creation#
You can profile the experiment creation process to analyze performance.
To enable profiling, add the --profile flag to your autosubmit create command:
autosubmit create --profile <EXPID>
Note
Remember that the purpose of this profiler is to measure the performance of Autosubmit, not the jobs it runs.
This profiler uses Python’s cProfile and psutil modules to generate a report with simple CPU and
memory metrics which will be displayed in your console after the command finishes, as in the example below:
The profiler output is also saved in <EXPID>/tmp/profile. There you will find two files, the
report in plain text format and a .prof binary which contains the CPU metrics. We highly recommend
using SnakeViz to visualize this file, as follows:
For more detailed documentation about the profiler, please visit this page.