CMake

CMake.ProcessorCount

command_line: /__w/nightly-builds/nightly-builds/build/bin/cmake "-DKWSYS_TEST_EXE=/__w/nightly-builds/nightly-builds/build/Source/kwsys/cmsysTestsCxx" "-P" "/__w/nightly-builds/nightly-builds/build/Tests/CMakeTests/ProcessorCountTest.cmake"

working_directory: "./Tests/CMakeTests"

Processors: 1

Execution Time: 0.015

BeforeCPULoadAverage: 4.31884765625

AfterCPULoadAverage: 4.31884765625

BeforeHostMemoryUsed: 1184180

AfterHostMemoryUsed: 1184180

Completion Status: Completed

Environment: #CTEST_RESOURCE_GROUP_COUNT=

stdout:

### 1. This line should be the first line of text in the test output.
### 2. If there was output from this test before line #1, then the
### 3. ProcessorCount(...) function call is emitting output that it shouldn't...
processor_count='4'
system_info_processor_count='2'

CTEST_FULL_OUTPUT (Avoid ctest truncation of output)

tsi_out='CTEST_FULL_OUTPUT
GetOSName: Linux
GetOSIsLinux: 1
GetOSIsApple: 0
GetOSIsWindows: 0
GetHostname: clang-builder
GetFullyQualifiedDomainName: clang-builder
GetOSRelease: 6.11.0-1015-azure
GetOSVersion: #15~24.04.1-Ubuntu SMP Thu May  1 02:52:08 UTC 2025
GetOSPlatform: x86_64
Is64Bits: 1
GetVendorString: AuthenticAMD
GetVendorID: Advanced Micro Devices
GetTypeID: 0
GetFamilyID: 25
GetModelID: 1
GetExtendedProcessorName: Unknown AMD family
GetSteppingCode: 1
GetProcessorSerialNumber: 
GetProcessorCacheSize: 512 KB
GetLogicalProcessorsPerPhysical: 2
GetProcessorClockFrequency: 3243.55 MHz
GetNumberOfLogicalCPU: 4
GetNumberOfPhysicalCPU: 2
DoesCPUSupportCPUID: 0
GetProcessorAPICID: 0
GetTotalVirtualMemory: 4095 MB
GetAvailableVirtualMemory: 4095 MB
GetTotalPhysicalMemory: 15995 MB
GetAvailablePhysicalMemory: 14396 MB
GetHostMemoryTotal(): 16379564 KiB
GetHostMemoryAvailable("KWSHL"): 16379564 KiB
GetProcMemoryAvailable("KWSHL", "KWSPL"): 16379564 KiB
GetHostMemoryUsed(): 1184180 KiB
GetProcMemoryUsed(): 4412 KiB
GetLoadAverage: 4.31885
CPU feature 0
CPU feature 2
CPU feature 3
CPU feature 10
CPU feature 13
CPU feature 14
CPU feature 15
CPU feature 16
CPU feature 17
CPU feature 23
Program Stack:
0x55e7e258889b : ??? [(???) ???:-1]
0x55e7e2588824 : ??? [(???) ???:-1]
0x55e7e256b363 : ??? [(???) ???:-1]
0x55e7e2555722 : ??? [(???) ???:-1]
0x7f1b3dfd61ca : ??? [(???) ???:-1]
0x7f1b3dfd628b : __libc_start_main [(libc.so.6) ???:-1]
0x55e7e2555225 : ??? [(???) ???:-1]


'
tsi_err=''

err 2
SystemInformation and ProcessorCount.cmake disagree:
processor_count='4'
SystemInformation processor_count='2'

Status: passed
Loading...