LLVM OpenMP 20.0.0git
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
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 766 of file kmp_affinity.h.

Constructor & Destructor Documentation

◆ kmp_hw_attr_t()

kmp_hw_attr_t::kmp_hw_attr_t ( )
inline

Definition at line 774 of file kmp_affinity.h.

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 788 of file kmp_affinity.h.

References core_eff.

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

◆ get_core_type()

kmp_hw_core_type_t kmp_hw_attr_t::get_core_type ( ) const
inline

Definition at line 785 of file kmp_affinity.h.

References core_type.

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

◆ is_core_eff_valid()

bool kmp_hw_attr_t::is_core_eff_valid ( ) const
inline

Definition at line 792 of file kmp_affinity.h.

References core_eff, and UNKNOWN_CORE_EFF.

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

◆ is_core_type_valid()

bool kmp_hw_attr_t::is_core_type_valid ( ) const
inline

Definition at line 789 of file kmp_affinity.h.

References core_type, and KMP_HW_CORE_TYPE_UNKNOWN.

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

◆ operator bool()

kmp_hw_attr_t::operator bool ( ) const
inline

Definition at line 793 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 834 of file kmp_affinity.h.

References operator==().

◆ operator==()

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

Definition at line 830 of file kmp_affinity.h.

References core_eff, core_type, and valid.

Referenced by operator!=().

◆ set_core_eff()

void kmp_hw_attr_t::set_core_eff ( int  eff)
inline

Definition at line 781 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 777 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

Definition at line 768 of file kmp_affinity.h.

Referenced by clear(), get_core_eff(), is_core_eff_valid(), operator==(), and set_core_eff().

◆ core_type

int kmp_hw_attr_t::core_type

Definition at line 767 of file kmp_affinity.h.

Referenced by clear(), get_core_type(), is_core_type_valid(), operator==(), and set_core_type().

◆ reserved

unsigned kmp_hw_attr_t::reserved

Definition at line 770 of file kmp_affinity.h.

◆ UNKNOWN_CORE_EFF

const int kmp_hw_attr_t::UNKNOWN_CORE_EFF = -1
static

Definition at line 772 of file kmp_affinity.h.

Referenced by clear(), and is_core_eff_valid().

◆ valid

unsigned kmp_hw_attr_t::valid

Definition at line 769 of file kmp_affinity.h.

Referenced by clear(), contains(), operator bool(), operator==(), set_core_eff(), and set_core_type().


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