Gromacs  2020.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
gmx::anonymous_namespace{hardwaretopology.cpp} Namespace Reference

Functions

void parseCpuInfo (HardwareTopology::Machine *machine, HardwareTopology::SupportLevel *supportLevel)
 Initialize machine data from basic information in cpuinfo. More...
 
int detectLogicalProcessorCount ()
 Try to detect the number of logical processors. More...
 

Function Documentation

int gmx::anonymous_namespace{hardwaretopology.cpp}::detectLogicalProcessorCount ( )

Try to detect the number of logical processors.

Returns
The number of hardware processing units, or 0 if it fails.
void gmx::anonymous_namespace{hardwaretopology.cpp}::parseCpuInfo ( HardwareTopology::Machine *  machine,
HardwareTopology::SupportLevel *  supportLevel 
)

Initialize machine data from basic information in cpuinfo.

Parameters
machineMachine tree structure where information will be assigned if the cpuinfo object contains topology information.
supportLevelIf topology information is available in CpuInfo, this will be updated to reflect the amount of information written to the machine structure.