Function detect_physical_cores¶
Defined in File omp_config.h
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)