LLVM OpenMP 20.0.0git
Macros | Functions | Variables
kmp_affinity.cpp File Reference
#include "kmp.h"
#include "kmp_affinity.h"
#include "kmp_i18n.h"
#include "kmp_io.h"
#include "kmp_str.h"
#include "kmp_wrapper_getpid.h"
#include <ctype.h>

Go to the source code of this file.

Macros

#define KMP_AFF_WARNING(s, ...)   KMP_WARNING(__VA_ARGS__)
 

Functions

void __kmp_cleanup_hierarchy ()
 
void __kmp_get_hierarchy (kmp_uint32 nproc, kmp_bstate_t *thr_bar)
 
const char__kmp_hw_get_catalog_string (kmp_hw_t type, bool plural)
 
const char__kmp_hw_get_keyword (kmp_hw_t type, bool plural)
 
const char__kmp_hw_get_core_type_string (kmp_hw_core_type_t type)
 

Variables

kmp_topology_t__kmp_topology = nullptr
 
kmp_hw_subset_t__kmp_hw_subset = nullptr
 
static hierarchy_info machine_hierarchy
 
static int nCoresPerPkg
 
static int nPackages
 
static int __kmp_nThreadsPerCore
 
static int __kmp_ncores
 

Macro Definition Documentation

◆ KMP_AFF_WARNING

#define KMP_AFF_WARNING (   s,
  ... 
)    KMP_WARNING(__VA_ARGS__)

Definition at line 196 of file kmp_affinity.cpp.

Function Documentation

◆ __kmp_cleanup_hierarchy()

void __kmp_cleanup_hierarchy ( )

Definition at line 39 of file kmp_affinity.cpp.

References hierarchy_info::fini(), and machine_hierarchy.

Referenced by __kmp_cleanup().

◆ __kmp_get_hierarchy()

void __kmp_get_hierarchy ( kmp_uint32  nproc,
kmp_bstate_t thr_bar 
)

◆ __kmp_hw_get_catalog_string()

const char * __kmp_hw_get_catalog_string ( kmp_hw_t  type,
bool  plural 
)

◆ __kmp_hw_get_core_type_string()

const char * __kmp_hw_get_core_type_string ( kmp_hw_core_type_t  type)

◆ __kmp_hw_get_keyword()

const char * __kmp_hw_get_keyword ( kmp_hw_t  type,
bool  plural 
)

Variable Documentation

◆ __kmp_hw_subset

kmp_hw_subset_t* __kmp_hw_subset = nullptr

◆ __kmp_ncores

int __kmp_ncores
static

Definition at line 101 of file kmp_affinity.cpp.

Referenced by __kmp_do_middle_initialize().

◆ __kmp_nThreadsPerCore

int __kmp_nThreadsPerCore
static

Definition at line 99 of file kmp_affinity.cpp.

◆ __kmp_topology

kmp_topology_t* __kmp_topology = nullptr

◆ machine_hierarchy

hierarchy_info machine_hierarchy
static

Definition at line 37 of file kmp_affinity.cpp.

Referenced by __kmp_cleanup_hierarchy(), and __kmp_get_hierarchy().

◆ nCoresPerPkg

int nCoresPerPkg
static

Definition at line 98 of file kmp_affinity.cpp.

◆ nPackages

int nPackages
static

Definition at line 98 of file kmp_affinity.cpp.