LLVM OpenMP 22.0.0git
kmp_hw_attr_t Struct Reference

#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/openmp/runtime/src/kmp_affinity.h"

Public Member Functions

 kmp_hw_attr_t ()
void set_core_type (kmp_hw_core_type_t type)
void set_core_eff (int eff)
kmp_hw_core_type_t get_core_type () const
int get_core_eff () const
bool is_core_type_valid () const
bool is_core_eff_valid () const
 operator bool () const
void clear ()
bool contains (const kmp_hw_attr_t &other) const
bool operator== (const kmp_hw_attr_t &rhs) const
bool operator!= (const kmp_hw_attr_t &rhs) const

Public Attributes

int core_type: 8
int core_eff: 8
unsigned valid: 1
unsigned reserved: 15

Static Public Attributes

static const int UNKNOWN_CORE_EFF = -1

Detailed Description

Definition at line 777 of file kmp_affinity.h.

Constructor & Destructor Documentation

◆ kmp_hw_attr_t()

kmp_hw_attr_t::kmp_hw_attr_t ( )
inline

Definition at line 785 of file kmp_affinity.h.

References core_eff, core_type, KMP_HW_CORE_TYPE_UNKNOWN, reserved, UNKNOWN_CORE_EFF, and valid.

Referenced by contains(), operator!=(), and operator==().

Member Function Documentation

◆ clear()

void kmp_hw_attr_t::clear ( )
inline

◆ contains()

bool kmp_hw_attr_t::contains ( const kmp_hw_attr_t & other) const
inline

◆ get_core_eff()

int kmp_hw_attr_t::get_core_eff ( ) const
inline

Definition at line 799 of file kmp_affinity.h.

References core_eff.

Referenced by kmp_hw_thread_t::compare_ids(), and contains().

◆ get_core_type()

kmp_hw_core_type_t kmp_hw_attr_t::get_core_type ( ) const
inline

Definition at line 796 of file kmp_affinity.h.

References core_type.

Referenced by contains().

◆ is_core_eff_valid()

bool kmp_hw_attr_t::is_core_eff_valid ( ) const
inline

Definition at line 803 of file kmp_affinity.h.

References core_eff, and UNKNOWN_CORE_EFF.

Referenced by kmp_hw_thread_t::compare_ids(), and contains().

◆ is_core_type_valid()

bool kmp_hw_attr_t::is_core_type_valid ( ) const
inline

Definition at line 800 of file kmp_affinity.h.

References core_type, and KMP_HW_CORE_TYPE_UNKNOWN.

Referenced by contains().

◆ operator bool()

kmp_hw_attr_t::operator bool ( ) const
inline

Definition at line 804 of file kmp_affinity.h.

References valid.

◆ operator!=()

bool kmp_hw_attr_t::operator!= ( const kmp_hw_attr_t & rhs) const
inline

Definition at line 845 of file kmp_affinity.h.

References kmp_hw_attr_t(), and operator==().

◆ operator==()

bool kmp_hw_attr_t::operator== ( const kmp_hw_attr_t & rhs) const
inline

Definition at line 841 of file kmp_affinity.h.

References core_eff, core_type, kmp_hw_attr_t(), and valid.

Referenced by operator!=().

◆ set_core_eff()

void kmp_hw_attr_t::set_core_eff ( int eff)
inline

Definition at line 792 of file kmp_affinity.h.

References core_eff, and valid.

Referenced by __kmp_stg_parse_hw_subset(), and kmp_topology_t::print().

◆ set_core_type()

void kmp_hw_attr_t::set_core_type ( kmp_hw_core_type_t type)
inline

Definition at line 788 of file kmp_affinity.h.

References core_type, type, and valid.

Referenced by __kmp_stg_parse_hw_subset(), and kmp_topology_t::print().

Member Data Documentation

◆ core_eff

int kmp_hw_attr_t::core_eff

◆ core_type

int kmp_hw_attr_t::core_type

◆ reserved

unsigned kmp_hw_attr_t::reserved

Definition at line 781 of file kmp_affinity.h.

Referenced by kmp_hw_attr_t().

◆ UNKNOWN_CORE_EFF

const int kmp_hw_attr_t::UNKNOWN_CORE_EFF = -1
static

Definition at line 783 of file kmp_affinity.h.

Referenced by clear(), is_core_eff_valid(), and kmp_hw_attr_t().

◆ valid

unsigned kmp_hw_attr_t::valid

The documentation for this struct was generated from the following file: