LLVM OpenMP 22.0.0git
kmp_hier_t< T > Struct Template Reference

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

Public Types

typedef traits_t< T >::unsigned_t UT
typedef traits_t< T >::signed_t ST

Public Member Functions

void deallocate ()
bool need_to_reallocate (int n, const kmp_hier_layer_e *new_layers, const enum sched_type *new_scheds, const ST *new_chunks) const
void allocate_hier (int n, const kmp_hier_layer_e *new_layers, const enum sched_type *new_scheds, const ST *new_chunks)
int next (ident_t *loc, int gtid, dispatch_private_info_template< T > *pr, kmp_int32 *p_last, T *p_lb, T *p_ub, ST *p_st)
kmp_hier_layer_e get_type (int level) const
enum sched_type get_sched (int level) const
ST get_chunk (int level) const
int get_num_active (int level) const
int get_length (int level) const
kmp_hier_top_unit_t< T > * get_unit (int level, int index)
int get_num_layers () const
int get_top_level_nproc () const
bool is_valid () const

Public Attributes

int top_level_nproc
int num_layers
bool valid
int type_size
kmp_hier_layer_info_t< T > * info
kmp_hier_top_unit_t< T > ** layers

Detailed Description

template<typename T>
struct kmp_hier_t< T >

Definition at line 472 of file kmp_dispatch_hier.h.

Member Typedef Documentation

◆ ST

template<typename T>
typedef traits_t<T>::signed_t kmp_hier_t< T >::ST

Definition at line 475 of file kmp_dispatch_hier.h.

◆ UT

template<typename T>
typedef traits_t<T>::unsigned_t kmp_hier_t< T >::UT

Definition at line 474 of file kmp_dispatch_hier.h.

Member Function Documentation

◆ allocate_hier()

template<typename T>
void kmp_hier_t< T >::allocate_hier ( int n,
const kmp_hier_layer_e * new_layers,
const enum sched_type * new_scheds,
const ST * new_chunks )
inline

◆ deallocate()

template<typename T>
void kmp_hier_t< T >::deallocate ( )
inline

Definition at line 617 of file kmp_dispatch_hier.h.

References __kmp_free, i, info, layers, num_layers, and valid.

Referenced by allocate_hier().

◆ get_chunk()

template<typename T>
ST kmp_hier_t< T >::get_chunk ( int level) const
inline

Definition at line 868 of file kmp_dispatch_hier.h.

References info, KMP_DEBUG_ASSERT, level, and num_layers.

Referenced by __kmp_dispatch_init_hierarchy().

◆ get_length()

template<typename T>
int kmp_hier_t< T >::get_length ( int level) const
inline

Definition at line 880 of file kmp_dispatch_hier.h.

References info, KMP_DEBUG_ASSERT, level, and num_layers.

Referenced by allocate_hier(), and get_unit().

◆ get_num_active()

template<typename T>
int kmp_hier_t< T >::get_num_active ( int level) const
inline

Definition at line 874 of file kmp_dispatch_hier.h.

References info, KMP_DEBUG_ASSERT, level, and num_layers.

Referenced by __kmp_dispatch_init_hierarchy().

◆ get_num_layers()

template<typename T>
int kmp_hier_t< T >::get_num_layers ( ) const
inline

Definition at line 894 of file kmp_dispatch_hier.h.

References num_layers.

◆ get_sched()

template<typename T>
enum sched_type kmp_hier_t< T >::get_sched ( int level) const
inline

Definition at line 862 of file kmp_dispatch_hier.h.

References info, KMP_DEBUG_ASSERT, level, and num_layers.

Referenced by __kmp_dispatch_init_hierarchy().

◆ get_top_level_nproc()

template<typename T>
int kmp_hier_t< T >::get_top_level_nproc ( ) const
inline

Definition at line 898 of file kmp_dispatch_hier.h.

References top_level_nproc.

◆ get_type()

template<typename T>
kmp_hier_layer_e kmp_hier_t< T >::get_type ( int level) const
inline

Definition at line 856 of file kmp_dispatch_hier.h.

References info, KMP_DEBUG_ASSERT, level, and num_layers.

Referenced by __kmp_dispatch_init_hierarchy().

◆ get_unit()

template<typename T>
kmp_hier_top_unit_t< T > * kmp_hier_t< T >::get_unit ( int level,
int index )
inline

Definition at line 886 of file kmp_dispatch_hier.h.

References get_length(), KMP_DEBUG_ASSERT, layers, level, and num_layers.

Referenced by __kmp_dispatch_init_hierarchy().

◆ is_valid()

template<typename T>
bool kmp_hier_t< T >::is_valid ( ) const
inline

Definition at line 900 of file kmp_dispatch_hier.h.

References valid.

◆ need_to_reallocate()

template<typename T>
bool kmp_hier_t< T >::need_to_reallocate ( int n,
const kmp_hier_layer_e * new_layers,
const enum sched_type * new_scheds,
const ST * new_chunks ) const
inline

Definition at line 634 of file kmp_dispatch_hier.h.

References i, info, layers, num_layers, type, type_size, and valid.

Referenced by allocate_hier().

◆ next()

Member Data Documentation

◆ info

◆ layers

template<typename T>
kmp_hier_top_unit_t<T>** kmp_hier_t< T >::layers

Definition at line 615 of file kmp_dispatch_hier.h.

Referenced by allocate_hier(), deallocate(), get_unit(), and need_to_reallocate().

◆ num_layers

◆ top_level_nproc

template<typename T>
int kmp_hier_t< T >::top_level_nproc

◆ type_size

template<typename T>
int kmp_hier_t< T >::type_size

Definition at line 613 of file kmp_dispatch_hier.h.

Referenced by allocate_hier(), and need_to_reallocate().

◆ valid

template<typename T>
bool kmp_hier_t< T >::valid

Definition at line 612 of file kmp_dispatch_hier.h.

Referenced by allocate_hier(), deallocate(), is_valid(), and need_to_reallocate().


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