mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
In commit v2.8.0~170 (ENH: Added ctest test options PROCESSORS and RUN_SERIAL, 2009-09-07) CTest learned to track the number of processors allocated to running tests in order to balance it against the desired level of parallelism. Extend this idea by introducing a new `PROCESSOR_AFFINITY` test property to ask that CTest run a test with the CPU affinity mask set. This will allow a set of tests that are running concurrently to use disjoint CPU resources.
12 lines
643 B
ReStructuredText
12 lines
643 B
ReStructuredText
PROCESSOR_AFFINITY
|
|
------------------
|
|
|
|
Set to a true value to ask CTest to launch the test process with CPU affinity
|
|
for a fixed set of processors. If enabled and supported for the current
|
|
platform, CTest will choose a set of processors to place in the CPU affinity
|
|
mask when launching the test process. The number of processors in the set is
|
|
determined by the :prop_test:`PROCESSORS` test property or the number of
|
|
processors available to CTest, whichever is smaller. The set of processors
|
|
chosen will be disjoint from the processors assigned to other concurrently
|
|
running tests that also have the ``PROCESSOR_AFFINITY`` property enabled.
|