15 #ifndef CORE_CONTAINER_AGENT_FLAT_IDX_MAP_H_
16 #define CORE_CONTAINER_AGENT_FLAT_IDX_MAP_H_
54 for (
int nn = 1; nn < num_numa_nodes; nn++) {
65 for (
size_t i = 1; i <
offset_.size(); i++) {
73 assert(nn <= std::numeric_limits<AgentHandle::NumaNode_t>::max());
74 assert(idx <= std::numeric_limits<AgentHandle::ElementIdx_t>::max());
AgentFlatIdxMap(const AgentFlatIdxMap &other)
AgentFlatIdxMap()=default
uint64_t GetFlatIdx(const AgentHandle &ah) const
AgentHandle GetAgentHandle(uint64_t idx) const
std::vector< size_t > offset_
ElementIdx_t GetElementIdx() const
NumaNode_t GetNumaNode() const
ResourceManager * GetResourceManager()
Returns the ResourceManager instance.
static Simulation * GetActive()
This function returns the currently active Simulation simulation.
static ThreadInfo * GetInstance()
int GetNumaNodes() const
Returns the number of NUMA nodes on this machine.