31#if NCPUS_AT_CONFIGURE_TIME <= 255
38#define PRICPUID PRIu16
41typedef enum VerboseOptions {
60typedef enum VerboseFormat {
70typedef enum InstrumentItems {
83typedef enum DebugOptions {
91typedef enum LewiAffinity {
100typedef enum TalpSummaryType {
109typedef enum TalpModel {
114typedef enum TalpComponent {
123typedef enum PolicyType {
130typedef enum InteractionMode {
142typedef enum OMPTOptions {
150typedef enum OMPTMVersion {
157static inline int min_int(
int a,
int b) {
return a < b ? a : b; }
158static inline int max_int(
int a,
int b) {
return a > b ? a : b; }
159static inline int64_t min_int64(int64_t a, int64_t b) {
return a < b ? a : b; }
160static inline int64_t max_int64(int64_t a, int64_t b) {
return a > b ? a : b; }
161static inline unsigned int min_uint(
unsigned int a,
unsigned int b) {
return a < b ? a : b; }
162static inline double min_double(
double a,
double b) {
return a < b ? a : b; }
163static inline double max_double(
double a,
double b) {
return a > b ? a : b; }
165static inline double min_double_non_zero(
double a,
double b) {
166 if (a == 0.0 && b == 0.0) {
168 }
else if (a == 0.0) {
170 }
else if (b == 0.0) {
173 return min_double(a, b);
183int parse_int(
const char *str,
int *value);
int parse_omptm_version(const char *str, omptm_version_t *value)
Definition: types.c:863
verbose_fmt_t
Definition: types.h:60
@ VBF_MPIRANK
Definition: types.h:64
@ VBF_SPID
Definition: types.h:65
@ VBF_THREAD
Definition: types.h:66
@ VBF_NODE
Definition: types.h:62
@ VBF_CLEAR
Definition: types.h:61
@ VBF_MPINODE
Definition: types.h:63
@ VBF_TSTAMP
Definition: types.h:67
const char * get_omptm_version_choices(void)
Definition: types.c:884
const char * debug_opts_tostr(debug_opts_t value)
Definition: types.c:356
const char * mode_tostr(interaction_mode_t value)
Definition: types.c:732
omptool_opts_t
Definition: types.h:142
@ OMPTOOL_OPTS_LEND
Definition: types.h:146
@ OMPTOOL_OPTS_NONE
Definition: types.h:143
@ OMPTOOL_OPTS_BORROW
Definition: types.h:145
const char * get_lewi_affinity_choices(void)
Definition: types.c:424
bool equivalent_int(const char *str1, const char *str2)
Definition: types.c:95
int parse_bool(const char *str, bool *value)
Definition: types.c:35
int parse_talp_summary(const char *str, talp_summary_t *value)
Definition: types.c:447
const char * get_verbose_opts_choices(void)
Definition: types.c:174
const char * verbose_opts_tostr(verbose_opts_t value)
Definition: types.c:149
const char * get_instrument_items_choices(void)
Definition: types.c:324
const char * get_talp_summary_choices(void)
Definition: types.c:527
policy_t
Definition: types.h:123
@ POLICY_LEWI_ASYNC
Definition: types.h:126
@ POLICY_NONE
Definition: types.h:124
@ POLICY_LEWI_MASK
Definition: types.h:127
@ POLICY_LEWI
Definition: types.h:125
const char * lewi_affinity_tostr(lewi_affinity_t value)
Definition: types.c:414
bool equivalent_instrument_items(const char *str1, const char *str2)
Definition: types.c:328
const char * talp_summary_tostr(talp_summary_t summary)
Definition: types.c:502
int parse_policy(const char *str, policy_t *value)
Definition: types.c:682
bool equivalent_mode(const char *str1, const char *str2)
Definition: types.c:746
talp_summary_t
Definition: types.h:100
@ SUMMARY_NONE
Definition: types.h:101
@ SUMMARY_POP_RAW
Definition: types.h:104
@ SUMMARY_POP_METRICS
Definition: types.h:103
@ SUMMARY_ALL
Definition: types.h:102
@ SUMMARY_PROCESS
Definition: types.h:106
@ SUMMARY_NODE
Definition: types.h:105
const char * talp_model_tostr(talp_model_t value)
Definition: types.c:556
int parse_talp_model(const char *str, talp_model_t *value)
Definition: types.c:545
const char * omptool_opts_tostr(omptool_opts_t value)
Definition: types.c:828
bool equivalent_talp_summary(const char *str1, const char *str2)
Definition: types.c:531
int parse_lewi_affinity(const char *str, lewi_affinity_t *value)
Definition: types.c:396
instrument_items_t
Definition: types.h:70
@ INST_TALP
Definition: types.h:76
@ INST_OMPT
Definition: types.h:78
@ INST_LEWI
Definition: types.h:74
@ INST_DROM
Definition: types.h:75
@ INST_CBCK
Definition: types.h:80
@ INST_ALL
Definition: types.h:72
@ INST_BARR
Definition: types.h:77
@ INST_CPUS
Definition: types.h:79
@ INST_MPI
Definition: types.h:73
@ INST_NONE
Definition: types.h:71
int parse_instrument_items(const char *str, instrument_items_t *value)
Definition: types.c:260
int parse_debug_opts(const char *str, debug_opts_t *value)
Definition: types.c:345
lewi_affinity_t
Definition: types.h:91
@ LEWI_AFFINITY_MASK
Definition: types.h:94
@ LEWI_AFFINITY_NEARBY_FIRST
Definition: types.h:95
@ LEWI_AFFINITY_NEARBY_ONLY
Definition: types.h:96
@ LEWI_AFFINITY_AUTO
Definition: types.h:92
@ LEWI_AFFINITY_NONE
Definition: types.h:93
@ LEWI_AFFINITY_SPREAD_IFEMPTY
Definition: types.h:97
int parse_int(const char *str, int *value)
Definition: types.c:81
const char * get_omptool_opts_choices(void)
Definition: types.c:845
bool equivalent_policy(const char *str1, const char *str2)
Definition: types.c:707
bool equivalent_negated_bool(const char *str1, const char *str2)
Definition: types.c:73
int parse_omptool_opts(const char *str, omptool_opts_t *value)
Definition: types.c:800
const char * get_policy_choices(void)
Definition: types.c:703
bool equivalent_verbose_fmt(const char *str1, const char *str2)
Definition: types.c:243
omptm_version_t
Definition: types.h:150
@ OMPTM_ROLE_SHIFT
Definition: types.h:154
@ OMPTM_NONE
Definition: types.h:151
@ OMPTM_OMP5
Definition: types.h:152
@ OMPTM_FREE_AGENTS
Definition: types.h:153
const char * get_debug_opts_choices(void)
Definition: types.c:373
int parse_negated_bool(const char *str, bool *value)
Definition: types.c:58
const char * instrument_items_tostr(instrument_items_t value)
Definition: types.c:299
debug_opts_t
Definition: types.h:83
@ DBG_CLEAR
Definition: types.h:84
@ DBG_RETURNSTOLEN
Definition: types.h:85
@ DBG_WARNMPI
Definition: types.h:88
@ DBG_LPOSTMORTEM
Definition: types.h:87
@ DBG_WERROR
Definition: types.h:86
const char * get_mpiset_choices(void)
Definition: types.c:781
const char * get_talp_model_choices(void)
Definition: types.c:566
const char * get_talp_component_choices(void)
Definition: types.c:663
bool equivalent_talp_component(const char *str1, const char *str2)
Definition: types.c:667
int parse_mpiset(const char *str, mpi_set_t *value)
Definition: types.c:760
bool equivalent_lewi_affinity(const char *str1, const char *str2)
Definition: types.c:428
int parse_verbose_opts(const char *str, verbose_opts_t *value)
Definition: types.c:116
mpi_set_t
Definition: types.h:135
@ MPISET_NONE
Definition: types.h:136
@ MPISET_ALL
Definition: types.h:137
@ MPISET_BARRIER
Definition: types.h:138
@ MPISET_COLLECTIVES
Definition: types.h:139
bool equivalent_omptool_opts(const char *str1, const char *str2)
Definition: types.c:849
bool equivalent_mpiset(const char *str1, const char *str2)
Definition: types.c:785
bool equivalent_bool(const char *str1, const char *str2)
Definition: types.c:50
int parse_verbose_fmt(const char *str, verbose_fmt_t *value)
Definition: types.c:195
uint8_t cpuid_t
Definition: types.h:32
int parse_mode(const char *str, interaction_mode_t *value)
Definition: types.c:721
const char * verbose_fmt_tostr(verbose_fmt_t value)
Definition: types.c:222
const char * omptm_version_tostr(omptm_version_t value)
Definition: types.c:874
bool equivalent_talp_model(const char *str1, const char *str2)
Definition: types.c:570
bool equivalent_verbose_opts(const char *str1, const char *str2)
Definition: types.c:178
verbose_opts_t
Definition: types.h:41
@ VB_DROM
Definition: types.h:49
@ VB_CLEAR
Definition: types.h:42
@ VB_SHMEM
Definition: types.h:45
@ VB_AFFINITY
Definition: types.h:52
@ VB_BARRIER
Definition: types.h:53
@ VB_TALP
Definition: types.h:54
@ VB_MPI_API
Definition: types.h:46
@ VB_API
Definition: types.h:43
@ VB_MICROLB
Definition: types.h:44
@ VB_ALL
Definition: types.h:56
@ VB_MPI_INT
Definition: types.h:47
@ VB_OMPT
Definition: types.h:51
@ VB_ASYNC
Definition: types.h:50
@ VB_STATS
Definition: types.h:48
@ VB_UNDEF
Definition: types.h:57
@ VB_INSTR
Definition: types.h:55
talp_model_t
Definition: types.h:109
@ TALP_MODEL_HYBRID_V2
Definition: types.h:111
@ TALP_MODEL_HYBRID_V1
Definition: types.h:110
talp_component_t
Definition: types.h:114
@ TALP_COMPONENT_DEFAULT
Definition: types.h:116
@ TALP_COMPONENT_OPENMP
Definition: types.h:118
@ TALP_COMPONENT_GPU
Definition: types.h:119
@ TALP_COMPONENT_MPI
Definition: types.h:117
@ TALP_COMPONENT_NONE
Definition: types.h:115
@ TALP_COMPONENT_HWC
Definition: types.h:120
interaction_mode_t
Definition: types.h:130
@ MODE_ASYNC
Definition: types.h:132
@ MODE_POLLING
Definition: types.h:131
const char * mpiset_tostr(mpi_set_t value)
Definition: types.c:771
const char * get_verbose_fmt_choices(void)
Definition: types.c:239
@ DLB_CPUID_INVALID
Definition: types.h:33
bool equivalent_debug_opts(const char *str1, const char *str2)
Definition: types.c:377
int parse_talp_component(const char *str, talp_component_t *value)
Definition: types.c:587
const char * policy_tostr(policy_t policy)
Definition: types.c:693
const char * talp_component_tostr(talp_component_t value)
Definition: types.c:641
const char * get_mode_choices(void)
Definition: types.c:742
bool equivalent_omptm_version_opts(const char *str1, const char *str2)
Definition: types.c:888