LLVM OpenMP 20.0.0git
|
#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 |
#define KMP_AFF_WARNING | ( | s, | |
... | |||
) | KMP_WARNING(__VA_ARGS__) |
Definition at line 196 of file kmp_affinity.cpp.
void __kmp_cleanup_hierarchy | ( | ) |
Definition at line 39 of file kmp_affinity.cpp.
References hierarchy_info::fini(), and machine_hierarchy.
Referenced by __kmp_cleanup().
void __kmp_get_hierarchy | ( | kmp_uint32 | nproc, |
kmp_bstate_t * | thr_bar | ||
) |
Definition at line 78 of file kmp_affinity.cpp.
References __kmp_type_convert(), hierarchy_info::base_num_threads, hierarchy_info::depth, hierarchy_info::init(), KMP_DEBUG_ASSERT, machine_hierarchy, hierarchy_info::numPerLevel, hierarchy_info::resize(), hierarchy_info::skipPerLevel, TCR_1, and hierarchy_info::uninitialized.
Referenced by __kmp_init_hierarchical_barrier_thread().
Definition at line 104 of file kmp_affinity.cpp.
References KMP_ASSERT2, KMP_BUILTIN_UNREACHABLE, KMP_HW_CORE, KMP_HW_DIE, KMP_HW_L1, KMP_HW_L2, KMP_HW_L3, KMP_HW_LAST, KMP_HW_LLC, KMP_HW_MODULE, KMP_HW_NUMA, KMP_HW_PROC_GROUP, KMP_HW_SOCKET, KMP_HW_THREAD, KMP_HW_TILE, KMP_HW_UNKNOWN, KMP_I18N_STR, and type.
Referenced by kmp_topology_t::print().
const char * __kmp_hw_get_core_type_string | ( | kmp_hw_core_type_t | type | ) |
Definition at line 172 of file kmp_affinity.cpp.
References KMP_ASSERT2, KMP_BUILTIN_UNREACHABLE, KMP_HW_CORE_TYPE_UNKNOWN, KMP_HW_MAX_NUM_CORE_TYPES, and type.
Referenced by kmp_hw_subset_t::dump(), kmp_hw_thread_t::print(), and kmp_topology_t::print().
Definition at line 138 of file kmp_affinity.cpp.
References KMP_ASSERT2, KMP_BUILTIN_UNREACHABLE, KMP_HW_CORE, KMP_HW_DIE, KMP_HW_L1, KMP_HW_L2, KMP_HW_L3, KMP_HW_LAST, KMP_HW_LLC, KMP_HW_MODULE, KMP_HW_NUMA, KMP_HW_PROC_GROUP, KMP_HW_SOCKET, KMP_HW_THREAD, KMP_HW_TILE, KMP_HW_UNKNOWN, and type.
Referenced by __kmp_stg_parse_hw_subset_name(), __kmp_stg_print_hw_subset(), kmp_topology_t::dump(), and kmp_hw_subset_t::dump().
kmp_hw_subset_t* __kmp_hw_subset = nullptr |
Definition at line 34 of file kmp_affinity.cpp.
Referenced by __kmp_env_initialize(), __kmp_stg_parse_hw_subset(), and __kmp_stg_print_hw_subset().
|
static |
Definition at line 101 of file kmp_affinity.cpp.
Referenced by __kmp_do_middle_initialize().
|
static |
Definition at line 99 of file kmp_affinity.cpp.
kmp_topology_t* __kmp_topology = nullptr |
Definition at line 32 of file kmp_affinity.cpp.
Referenced by __kmp_atfork_child(), __kmp_set_nesting_mode_threads(), kmp_hw_thread_t::compare_ids(), hierarchy_info::deriveLevels(), hierarchy_info::init(), kmp_hw_thread_t::print(), and kmp_hw_subset_t::sort().
|
static |
Definition at line 37 of file kmp_affinity.cpp.
Referenced by __kmp_cleanup_hierarchy(), and __kmp_get_hierarchy().
|
static |
Definition at line 98 of file kmp_affinity.cpp.
|
static |
Definition at line 98 of file kmp_affinity.cpp.