---
name: "PAPI_hw_info_t"
section: "3"
platform: "linux"
package: "libpapi-dev"
version: "7.1.0-5+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/PAPI_hw_info_t"
---

# PAPI\_hw\_info\_t(3)

Hardware info structure.

## NAME

PAPI\_hw\_info\_t - Hardware info structure.

## SYNOPSIS

`#include <papi.h>`

### Data Fields

int **ncpu**\
 int **threads**\
 int **cores**\
 int **sockets**\
 int **nnodes**\
 int **totalcpus**\
 int **vendor**\
 char **vendor\_string** \[128\]\
 int **model**\
 char **model\_string** \[128\]\
 float **revision**\
 int **cpuid\_family**\
 int **cpuid\_model**\
 int **cpuid\_stepping**\
 int **cpu\_max\_mhz**\
 int **cpu\_min\_mhz**\
 **PAPI\_mh\_info\_t** **mem\_hierarchy**\
 int **virtualized**\
 char **virtual\_vendor\_string** \[128\]\
 char **virtual\_vendor\_version** \[128\]\
 float **mhz**\
 int **clock\_mhz**\
 int **reserved** \[8\]\

## Field Documentation

### int PAPI\_hw\_info\_t::clock\_mhz

Deprecated

### int PAPI\_hw\_info\_t::cores

Number of cores per socket

### int PAPI\_hw\_info\_t::cpu\_max\_mhz

Maximum supported CPU speed

### int PAPI\_hw\_info\_t::cpu\_min\_mhz

Minimum supported CPU speed

### int PAPI\_hw\_info\_t::cpuid\_family

cpuid family

### int PAPI\_hw\_info\_t::cpuid\_model

cpuid model

### int PAPI\_hw\_info\_t::cpuid\_stepping

cpuid stepping

### PAPI\_mh\_info\_t PAPI\_hw\_info\_t::mem\_hierarchy

PAPI memory hierarchy description

### float PAPI\_hw\_info\_t::mhz

Deprecated

### int PAPI\_hw\_info\_t::model

Model number of CPU

### char PAPI\_hw\_info\_t::model\_string\[128\]

Model string of CPU

### int PAPI\_hw\_info\_t::ncpu

Number of CPUs per NUMA Node

### int PAPI\_hw\_info\_t::nnodes

Total Number of NUMA Nodes

### float PAPI\_hw\_info\_t::revision

Revision of CPU

### int PAPI\_hw\_info\_t::sockets

Number of sockets

### int PAPI\_hw\_info\_t::threads

Number of hdw threads per core

### int PAPI\_hw\_info\_t::totalcpus

Total number of CPUs in the entire system

### int PAPI\_hw\_info\_t::vendor

Vendor number of CPU

### char PAPI\_hw\_info\_t::vendor\_string\[128\]

Vendor string of CPU

### char PAPI\_hw\_info\_t::virtual\_vendor\_string\[128\]

Vendor for virtual machine

### char PAPI\_hw\_info\_t::virtual\_vendor\_version\[128\]

Version of virtual machine

### int PAPI\_hw\_info\_t::virtualized

Running in virtual machine

## Author

Generated automatically by Doxygen for PAPI from the source code.
