|
| Topology (Communicator *const communicator) |
|
|
std::vector< Cpu * > | _cpus |
|
std::vector< PhysicalCore * > | _physicalCores |
|
std::vector< VirtualCore * > | _virtualCores |
|
Communicator *const | _communicator |
|
Cpu* mammut::topology::Topology::getCpu |
( |
CpuId |
cpuId | ) |
const |
Returns the Cpu with the given identifier, or NULL if it is not present.
- Parameters
-
cpuId | The identifier of the Cpu. |
- Returns
- The Cpu with the given identifier, or NULL if it is not present.
std::vector<Cpu*> mammut::topology::Topology::getCpus |
( |
| ) |
const |
Returns the CPUs of the system.
- Returns
- A vector of CPus.
PhysicalCore* mammut::topology::Topology::getPhysicalCore |
( |
PhysicalCoreId |
physicalCoreId | ) |
const |
Returns the physical core with the given identifier, or NULL if it is not present.
- Parameters
-
physicalCoreId | The identifier of the physical core. |
- Returns
- The physical core with the given identifier, or NULL if it is not present.
std::vector<PhysicalCore*> mammut::topology::Topology::getPhysicalCores |
( |
| ) |
const |
Returns the physical cores of the system.
- Returns
- A vector of physical cores.
VirtualCore* mammut::topology::Topology::getVirtualCore |
( |
VirtualCoreId |
virtualCoreId | ) |
const |
Returns the virtual core with the given identifier, or NULL if it is not present.
- Parameters
-
virtualCoreId | The identifier of the virtual core. |
- Returns
- The virtual core with the given identifier, or NULL if it is not present.
VirtualCore* mammut::topology::Topology::getVirtualCore |
( |
| ) |
const |
Returns a virtual core belonging to the topology, or NULL if it is not present.
- Returns
- A virtual core belonging to the topology, or NULL if it is not present.
std::vector<VirtualCore*> mammut::topology::Topology::getVirtualCores |
( |
| ) |
const |
Returns the virtual cores of the system.
- Returns
- A vector of virtual cores.
std::vector<PhysicalCore*> mammut::topology::Topology::virtualToPhysical |
( |
const std::vector< VirtualCore * > & |
virtualCores | ) |
const |
Given a set of virtual cores, returns the physical cores to which these virtual cores belong.
- Parameters
-
virtualCores | A set of virtual cores. |
- Returns
- The physical cores to which these virtual cores belong.
The documentation for this class was generated from the following file: