You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/configure.rst
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,8 +7,6 @@ This will allow you to run simple local tests using the default compiler of the
7
7
Of course, ReFrame is much more powerful than that.
8
8
This section will guide you through configuring ReFrame for your site.
9
9
10
-
If you started using ReFrame from version 3.0, you can keep on reading this section, otherwise you are advised to have a look first at the :doc:`migration_2_to_3` page.
11
-
12
10
ReFrame's configuration can be either in JSON or in Python format and can be split into multiple files.
13
11
The Python format is useful in cases that you want to generate configuration parameters on-the-fly, since ReFrame will import that Python file and the load the resulting configuration.
14
12
In the following we will use a single Python-based configuration file also for historical reasons, since it was the only way to configure ReFrame in versions prior to 3.0.
@@ -222,6 +220,8 @@ The ``modes`` section defines different execution modes for the framework.
222
220
Execution modes are discussed in the :doc:`pipeline` page.
Copy file name to clipboardExpand all lines: docs/pipeline.rst
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -188,8 +188,8 @@ The following table show in which context each pipeline stage executes:
188
188
============== =================
189
189
190
190
It should be noted that even if the partition execution context is local, it is treated differently from the ReFrame execution context.
191
-
For example, a test executing in the ReFrame context will not respect the :js:attr:`max_jobs` partition configuration option, even if the partition is local.
192
-
To control the concurrency of the ReFrame execution context, users should set the :js:attr:`.systems[].max_local_jobs` option instead.
191
+
For example, a test executing in the ReFrame context will not respect the :attr:`~config.systems.partitions.max_jobs` partition configuration option, even if the partition is local.
192
+
To control the concurrency of the ReFrame execution context, users should set the :attr:`~config.systems.max_local_jobs` option instead.
Copy file name to clipboardExpand all lines: docs/regression_test_api.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -348,4 +348,4 @@ Mapping of Test Attributes to Job Scheduler Backends
348
348
If any of the attributes is set to :class:`None` it will not be emitted at all in the job script.
349
349
In cases that the attribute is required, it will be set to ``1``.
350
350
351
-
:sup:`1` The :obj:`--nodes` option may also be emitted if the :js:attr:`use_nodes_option <config_reference.html#schedulers-.use_nodes_option>` scheduler configuration parameter is set.
351
+
:sup:`1` The :obj:`--nodes` option may also be emitted if the :attr:`~config.systems.partitions.sched_options.use_nodes_option` scheduler configuration parameter is set.
Copy file name to clipboardExpand all lines: docs/started.rst
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -118,6 +118,10 @@ Auto-completion is supported for Bash, Tcsh and Fish shells.
118
118
Where to Go from Here
119
119
---------------------
120
120
121
-
The easiest way to start with ReFrame is to go through :doc:`tutorial_basics`, which will guide you step-by-step in both writing your first tests and in configuring ReFrame.
122
-
The :doc:`configure` page provides more details on the basic configuration aspects of ReFrame.
123
-
:doc:`topics` explain different aspects of the framework whereas :doc:`manuals` provide complete reference guides for the command line interface, the configuration parameters and the programming APIs for writing tests.
121
+
If you are new to ReFrame, the place to start is the first tutorial :doc:`tutorial_basics`, which will guide you step-by-step in both writing your first tests and in configuring ReFrame.
122
+
The rest of the tutorials explore additional capabilities of the framework and cover several topics that you will likely come across when writing your own tests.
123
+
124
+
The :doc:`configure` page provides more details on how a configuration file is structured and the :doc:`topics` explain some more advanced concepts as well as some implementation details.
125
+
The :doc:`manuals` provide complete reference guides for the command line interface, the configuration parameters and the programming APIs for writing tests.
126
+
127
+
Finally, if you are not new to ReFrame and you have been using the 3.x versions, you should read the :doc:`whats_new_40` page, which explains what are the key new features of ReFrame 4.0 as well as all the breaking changes.
Copy file name to clipboardExpand all lines: docs/tutorial_advanced.rst
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -390,7 +390,7 @@ Generally, ReFrame generates the job shell scripts using the following pattern:
390
390
391
391
The ``job_scheduler_preamble`` contains the backend job scheduler directives that control the job allocation.
392
392
The ``prepare_cmds`` are commands that can be emitted before the test environment commands.
393
-
These can be specified with the :js:attr:`prepare_cmds <.systems[].partitions[].prepare_cmds>` partition configuration option.
393
+
These can be specified with the :attr:`~config.systems.partitions.prepare_cmds` partition configuration option.
394
394
The ``env_load_cmds`` are the necessary commands for setting up the environment of the test.
395
395
These include any modules or environment variables set at the `system partition level <config_reference.html#system-partition-configuration>`__ or any `modules <regression_test_api.html#reframe.core.pipeline.RegressionTest.modules>`__ or `environment variables <regression_test_api.html#reframe.core.pipeline.RegressionTest.variables>`__ set at the test level.
396
396
Then the commands specified in :attr:`~reframe.core.pipeline.RegressionTest.prerun_cmds` follow, while those specified in the :attr:`~reframe.core.pipeline.RegressionTest.postrun_cmds` come after the launch of the parallel job.
@@ -613,6 +613,8 @@ Let's see how the generated job script looks like:
613
613
The first three ``srun`` commands are emitted through the :attr:`prerun_cmds` whereas the last one comes from the test's :attr:`executable` attribute.
614
614
615
615
616
+
.. _custom_launchers:
617
+
616
618
Adding a custom launcher to a partition
617
619
=======================================
618
620
@@ -723,8 +725,8 @@ First, we need to enable the container platform support in ReFrame's configurati
723
725
:end-before: # rfmdocend: containers
724
726
:emphasize-lines: 9-18
725
727
726
-
For each partition, users can define a list of container platforms supported using the :js:attr:`container_platforms` `configuration parameter <config_reference.html#.systems[].partitions[].container_platforms>`__.
727
-
In this case, we define the `Sarus <https://github.com/eth-cscs/sarus>`__ platform for which we set the :js:attr:`modules` parameter in order to instruct ReFrame to load the ``sarus`` module, whenever it needs to run with this container platform.
728
+
For each partition, users can define a list of all supported container platforms using the :attr:`~config.systems.partitions.container_platforms` configuration parameter.
729
+
In this case, we define the `Sarus <https://github.com/eth-cscs/sarus>`__ platform for which we set the :attr:`~config.systems.partitions.container_platforms.modules` parameter in order to instruct ReFrame to load the ``sarus`` module, whenever it needs to run with this container platform.
728
730
Similarly, we add an entry for the `Singularity <https://sylabs.io>`__ platform.
729
731
Optionally, users are allowed to set the ``default`` attribute to :obj:`True` in order to mark a specific container platform as the default of that partition (see below on how this information is being used).
730
732
If no default container platform is specified explicitly, then always the first in the list will be considered as successful.
0 commit comments