Skip to content

Commit 669e975

Browse files
authored
Merge pull request #2889 from vkarak/doc/pbs-extra-resources
[doc] Improve docs on how `access` options are treated for PBS-based backends
2 parents 6a37d89 + 3248ba0 commit 669e975

File tree

1 file changed

+17
-21
lines changed

1 file changed

+17
-21
lines changed

docs/config_reference.rst

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
=======================
1+
***********************
22
Configuration Reference
3-
=======================
3+
***********************
44

55
ReFrame's behavior can be configured through its configuration file (see :doc:`configure`), environment variables and command-line options.
66
An option can be specified via multiple paths (e.g., a configuration file parameter and an environment variable), in which case command-line options precede environment variables, which in turn precede configuration file options.
@@ -22,7 +22,7 @@ For example, the ``logging.handlers_perflog..filelog..name`` syntax designates t
2222

2323

2424
Top-level Configuration
25-
-----------------------
25+
=======================
2626

2727
The top-level configuration object is essentially the full configuration of ReFrame.
2828
It consists of the following properties, which we also call conventionally *configuration sections*:
@@ -69,7 +69,7 @@ It consists of the following properties, which we also call conventionally *conf
6969

7070

7171
System Configuration
72-
--------------------
72+
====================
7373

7474
.. currentmodule:: config
7575

@@ -213,9 +213,8 @@ System Configuration
213213
This option is broken in 4.0.
214214

215215

216-
------------------------------
217216
System Partition Configuration
218-
------------------------------
217+
==============================
219218

220219
.. py:attribute:: systems.partitions.name
221220
@@ -420,6 +419,10 @@ System Partition Configuration
420419

421420
A list of job scheduler options that will be passed to the generated job script for gaining access to that logical partition.
422421

422+
.. note::
423+
For the ``pbs`` and ``torque`` backends, options accepted in the :attr:`~config.systems.partitions.access` and :attr:`~config.systems.partitions.resources` parameters may either refer to actual ``qsub`` options or may just be resources specifications to be passed to the ``-l`` option.
424+
The backend assumes a ``qsub`` option, if the options passed in these attributes start with a ``-``.
425+
423426

424427
.. py:attribute:: systems.partitions.environs
425428
@@ -690,12 +693,12 @@ ReFrame allows you to define custom scheduler resources for each partition that
690693
}
691694
692695
.. note::
693-
For the ``pbs`` and ``torque`` backends, options accepted in the :attr:`~config.systems.partitions.access` and :attr:`~config.systems.partitions.resources` attributes may either refer to actual ``qsub`` options or may be just resources specifications to be passed to the ``-l`` option.
696+
For the ``pbs`` and ``torque`` backends, options accepted in the :attr:`~config.systems.partitions.access` and :attr:`~config.systems.partitions.resources` parameters may either refer to actual ``qsub`` options or may just be resources specifications to be passed to the ``-l`` option.
694697
The backend assumes a ``qsub`` option, if the options passed in these attributes start with a ``-``.
695698

696699

697700
Environment Configuration
698-
-------------------------
701+
=========================
699702

700703
Environments defined in this section will be used for running regression tests.
701704
They are associated with `system partitions <#system-partition-configuration>`__.
@@ -859,7 +862,7 @@ They are associated with `system partitions <#system-partition-configuration>`__
859862
.. _logging-config-reference:
860863

861864
Logging Configuration
862-
---------------------
865+
=====================
863866

864867
Logging in ReFrame is handled by logger objects which further delegate message to *logging handlers* which are eventually responsible for emitting or sending the log records to their destinations.
865868
You may define different logger objects per system but *not* per partition.
@@ -924,7 +927,6 @@ You may define different logger objects per system but *not* per partition.
924927

925928

926929

927-
---------------------------------
928930
Common logging handler properties
929931
---------------------------------
930932

@@ -1089,7 +1091,6 @@ All logging handlers share the following set of common attributes:
10891091
In addition to the format directives supported by the standard library's `time.strftime() <https://docs.python.org/3.8/library/time.html#time.strftime>`__ function, ReFrame allows you to use the ``%:z`` directive -- a GNU ``date`` extension -- that will print the time zone difference in a RFC3339 compliant way, i.e., ``+/-HH:MM`` instead of ``+/-HHMM``.
10901092

10911093

1092-
------------------------
10931094
The ``file`` log handler
10941095
------------------------
10951096

@@ -1134,7 +1135,6 @@ The additional properties for the ``file`` handler are the following:
11341135

11351136
.. _filelog-handler:
11361137

1137-
---------------------------
11381138
The ``filelog`` log handler
11391139
---------------------------
11401140

@@ -1187,7 +1187,6 @@ The additional properties for the ``filelog`` handler are the following:
11871187
Examples of changes in the logged information are when the log record format changes or a new performance metric is added, deleted or has its name changed.
11881188
This behavior guarantees that each log file is consistent and it will not break existing parsers.
11891189

1190-
---------------------------
11911190
The ``graylog`` log handler
11921191
---------------------------
11931192

@@ -1235,7 +1234,6 @@ Although the :attr:`~config.logging.handlers.format` attribute is defined for th
12351234
This handler transmits the whole log record, meaning that all the information will be available and indexable at the remote end.
12361235

12371236

1238-
--------------------------
12391237
The ``stream`` log handler
12401238
--------------------------
12411239

@@ -1257,7 +1255,6 @@ The additional properties for the ``stream`` handler are the following:
12571255
- ``stderr``: the standard error.
12581256

12591257

1260-
--------------------------
12611258
The ``syslog`` log handler
12621259
--------------------------
12631260

@@ -1300,7 +1297,6 @@ The additional properties for the ``syslog`` handler are the following:
13001297
This can either be of the form ``<host>:<port>`` or simply a path that refers to a Unix domain socket.
13011298

13021299

1303-
----------------------------
13041300
The ``httpjson`` log handler
13051301
----------------------------
13061302

@@ -1399,7 +1395,7 @@ This handler transmits the whole log record, meaning that all the information wi
13991395
.. _exec-mode-config:
14001396

14011397
Execution Mode Configuration
1402-
----------------------------
1398+
============================
14031399

14041400
ReFrame allows you to define groups of command line options that are collectively called *execution modes*.
14051401
An execution mode can then be selected from the command line with the :option:`--mode` option.
@@ -1432,7 +1428,7 @@ The options of an execution mode will be passed to ReFrame as if they were speci
14321428

14331429

14341430
General Configuration
1435-
---------------------
1431+
=====================
14361432

14371433
.. py:attribute:: general.check_search_path
14381434
@@ -1730,7 +1726,7 @@ General Configuration
17301726

17311727

17321728
Module Objects
1733-
--------------
1729+
==============
17341730

17351731
.. versionadded:: 3.3
17361732

@@ -1780,7 +1776,7 @@ It can either be a simple string or a JSON object with the following attributes:
17801776

17811777

17821778
Processor Info
1783-
--------------
1779+
==============
17841780

17851781
.. versionadded:: 3.5.0
17861782

@@ -1878,7 +1874,7 @@ A *processor info object* in ReFrame's configuration is used to hold information
18781874
18791875
18801876
Device Info
1881-
-----------
1877+
===========
18821878

18831879
.. versionadded:: 3.5.0
18841880

0 commit comments

Comments
 (0)