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/advanced.rst
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -404,8 +404,11 @@ Flexible Regression Tests
404
404
405
405
.. versionadded:: 2.15
406
406
407
-
ReFrame can automatically set the number of tasks of a particular test, if its :attr:`num_tasks <reframe.core.pipeline.RegressionTest.num_tasks>` attribute is set to ``0``.
407
+
ReFrame can automatically set the number of tasks of a particular test, if its :attr:`num_tasks <reframe.core.pipeline.RegressionTest.num_tasks>` attribute is set to ``<=0``.
408
408
In ReFrame's terminology, such tests are called `flexible`.
409
+
Negative values indicate the minimum number of tasks that is acceptable for this test (a value of ``-4`` indicates a minimum acceptable number of ``4`` tasks).
410
+
A zero value indicates the default minimum number of tasks which is equal to :attr:`num_tasks_per_node <reframe.core.pipeline.RegressionTest.num_tasks_per_node>`.
411
+
409
412
By default, ReFrame will spawn such a test on all the idle nodes of the current system partition, but this behavior can be adjusted from the command-line.
410
413
Flexible tests are very useful for diagnostics tests, e.g., tests for checking the health of a whole set nodes.
411
414
In this example, we demonstrate this feature through a simple test that runs ``hostname``.
Copy file name to clipboardExpand all lines: docs/running.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
@@ -1006,7 +1006,7 @@ Controlling the Flexible Task Allocation
1006
1006
1007
1007
.. versionadded:: 2.15
1008
1008
1009
-
ReFrame can automatically set the number of tasks of a particular test, if its :attr:`num_tasks <reframe.core.pipeline.RegressionTest.num_tasks>` attribute is set to ``0``.
1009
+
ReFrame can automatically set the number of tasks of a particular test, if its :attr:`num_tasks <reframe.core.pipeline.RegressionTest.num_tasks>` attribute is set to a value ``<=0``.
1010
1010
By default, ReFrame will spawn such a test on all the idle nodes of the current system partition.
1011
1011
This behavior can be adjusted using the ``--flex-alloc-tasks`` command line option.
0 commit comments