summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2020-02-24 09:12:54 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-02-24 09:13:06 (GMT)
commit21d72777fbbfcf2ab074f8f78838e487f144077d (patch)
tree26d22dcb2cca84223116550a202bae7a91801eb6
parent5fa6f8192eb5c111c847bf35e166fce308fbeef5 (diff)
parentd966634b6019fd29c51b14f63db15fc1ed871403 (diff)
downloadCMake-21d72777fbbfcf2ab074f8f78838e487f144077d.zip
CMake-21d72777fbbfcf2ab074f8f78838e487f144077d.tar.gz
CMake-21d72777fbbfcf2ab074f8f78838e487f144077d.tar.bz2
Merge topic 'ctest-resource-allocation-doc'
d966634b60 Help: Clarify that the CTest resource allocation feature doesn't oversubscribe Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4382
-rw-r--r--Help/manual/ctest.1.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/Help/manual/ctest.1.rst b/Help/manual/ctest.1.rst
index 2bfaafe..6503f0e 100644
--- a/Help/manual/ctest.1.rst
+++ b/Help/manual/ctest.1.rst
@@ -1331,6 +1331,15 @@ the running machine. This allows CTest to internally keep track of which
resources are in use and which are free, scheduling tests in a way that
prevents them from trying to claim resources that are not available.
+When the resource allocation feature is used, CTest will not oversubscribe
+resources. For example, if a resource has 8 slots, CTest will not run tests
+that collectively use more than 8 slots at a time. This has the effect of
+limiting how many tests can run at any given time, even if a high ``-j``
+argument is used, if those tests all use some slots from the same resource.
+In addition, it means that a single test that uses more of a resource than is
+available on a machine will not run at all (and will be reported as
+``Not Run``).
+
A common use case for this feature is for tests that require the use of a GPU.
Multiple tests can simultaneously allocate memory from a GPU, but if too many
tests try to do this at once, some of them will fail to allocate, resulting in