geopm  3.1.1.dev272+gdfb40a8d
GEOPM - Global Extensible Open Power Manager
Enumerations | Functions
geopm_topo.h File Reference
#include <stddef.h>
#include "geopm_public.h"
Include dependency graph for geopm_topo.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  geopm_domain_e {
  GEOPM_DOMAIN_INVALID = -1 , GEOPM_DOMAIN_BOARD = 0 , GEOPM_DOMAIN_PACKAGE = 1 , GEOPM_DOMAIN_CORE = 2 ,
  GEOPM_DOMAIN_CPU = 3 , GEOPM_DOMAIN_MEMORY = 4 , GEOPM_DOMAIN_PACKAGE_INTEGRATED_MEMORY = 5 , GEOPM_DOMAIN_NIC = 6 ,
  GEOPM_DOMAIN_PACKAGE_INTEGRATED_NIC = 7 , GEOPM_DOMAIN_GPU = 8 , GEOPM_DOMAIN_PACKAGE_INTEGRATED_GPU = 9 , GEOPM_DOMAIN_GPU_CHIP = 10 ,
  GEOPM_NUM_DOMAIN = 11
}
 

Functions

int GEOPM_PUBLIC geopm_topo_num_domain (int domain_type)
 
int GEOPM_PUBLIC geopm_topo_domain_idx (int domain_type, int cpu_idx)
 
int GEOPM_PUBLIC geopm_topo_num_domain_nested (int inner_domain, int outer_domain)
 
int GEOPM_PUBLIC geopm_topo_domain_nested (int inner_domain, int outer_domain, int outer_idx, size_t num_domain_nested, int *domain_nested)
 
int GEOPM_PUBLIC geopm_topo_domain_name (int domain_type, size_t domain_name_max, char *domain_name)
 
int GEOPM_PUBLIC geopm_topo_domain_type (const char *domain_name)
 
int GEOPM_PUBLIC geopm_topo_create_cache (void)
 

Enumeration Type Documentation

◆ geopm_domain_e

Enumerator
GEOPM_DOMAIN_INVALID 

Reserved to represent an invalid domain.

GEOPM_DOMAIN_BOARD 

All components on a user allocated compute node (one per controller)

GEOPM_DOMAIN_PACKAGE 

Single processor package in one socket.

GEOPM_DOMAIN_CORE 

Group of associated hyper-threads.

GEOPM_DOMAIN_CPU 

Linux logical CPU.

GEOPM_DOMAIN_MEMORY 

Standard off package DIMM (DRAM or NAND)

GEOPM_DOMAIN_PACKAGE_INTEGRATED_MEMORY 

On package memory (MCDRAM)

GEOPM_DOMAIN_NIC 

Network interface controller on the PCI bus.

GEOPM_DOMAIN_PACKAGE_INTEGRATED_NIC 

Network interface controller on the processor package.

GEOPM_DOMAIN_GPU 

GPU card on the PCI bus.

GEOPM_DOMAIN_PACKAGE_INTEGRATED_GPU 

GPU unit on the package (e.g on-package graphics)

GEOPM_DOMAIN_GPU_CHIP 

GPU card chips within a package on the PCI Bus (e.g Level Zero subdevices)

GEOPM_NUM_DOMAIN 

Number of valid domains.

Function Documentation

◆ geopm_topo_create_cache()

int GEOPM_PUBLIC geopm_topo_create_cache ( void  )

◆ geopm_topo_domain_idx()

int GEOPM_PUBLIC geopm_topo_domain_idx ( int  domain_type,
int  cpu_idx 
)

◆ geopm_topo_domain_name()

int GEOPM_PUBLIC geopm_topo_domain_name ( int  domain_type,
size_t  domain_name_max,
char *  domain_name 
)

◆ geopm_topo_domain_nested()

int GEOPM_PUBLIC geopm_topo_domain_nested ( int  inner_domain,
int  outer_domain,
int  outer_idx,
size_t  num_domain_nested,
int *  domain_nested 
)

◆ geopm_topo_domain_type()

int GEOPM_PUBLIC geopm_topo_domain_type ( const char *  domain_name)

◆ geopm_topo_num_domain()

int GEOPM_PUBLIC geopm_topo_num_domain ( int  domain_type)

◆ geopm_topo_num_domain_nested()

int GEOPM_PUBLIC geopm_topo_num_domain_nested ( int  inner_domain,
int  outer_domain 
)