Function detect_physical_cores

Function Documentation

inline int detect_physical_cores()

Detect physical CPU cores (best effort)

Uses platform-specific methods to detect physical (not logical/HT) cores. Falls back to std::thread::hardware_concurrency() / 2.

Returns:

Physical core count (minimum 1)