#include "kmp_str.h"
#include "kmp_i18n_id.inc"
Go to the source code of this file.
Data Structures | |
struct | kmp_msg |
Defines | |
#define | KMP_CHECK_SYSFAIL(func, error) |
#define | KMP_CHECK_SYSFAIL_ERRNO(func, status) |
#define | KMP_ERR KMP_SYSERRCODE |
#define | KMP_FATAL(...) __kmp_msg( kmp_ms_fatal, KMP_MSG( __VA_ARGS__ ), __kmp_msg_null ) |
#define | KMP_HNT(...) __kmp_msg_format( kmp_i18n_hnt_ ## __VA_ARGS__ ) |
#define | KMP_I18N_STR(id) __kmp_i18n_catgets( kmp_i18n_str_ ## id ) |
#define | KMP_INFORM(...) __kmp_msg( kmp_ms_inform, KMP_MSG( __VA_ARGS__ ), __kmp_msg_null ) |
#define | KMP_MSG(...) __kmp_msg_format( kmp_i18n_msg_ ## __VA_ARGS__ ) |
#define | KMP_SYSERRCODE(code) __kmp_msg_error_code( code ) |
#define | KMP_SYSERRMESG(mesg) __kmp_msg_error_mesg( mesg ) |
#define | KMP_SYSFAIL(func, error) |
#define | KMP_WARNING(...) __kmp_msg( kmp_ms_warning, KMP_MSG( __VA_ARGS__ ), __kmp_msg_null ) |
Typedefs | |
typedef enum kmp_msg_severity | kmp_msg_severity_t |
typedef struct kmp_msg | kmp_msg_t |
typedef enum kmp_msg_type | kmp_msg_type_t |
Enumerations | |
enum | kmp_msg_severity { kmp_ms_inform, kmp_ms_warning, kmp_ms_fatal } |
enum | kmp_msg_type { kmp_mt_dummy = 0, kmp_mt_mesg = 4, kmp_mt_hint = 5, kmp_mt_syserr = -1 } |
Functions | |
void | __kmp_i18n_catclose () |
char const * | __kmp_i18n_catgets (kmp_i18n_id_t id) |
void | __kmp_i18n_catopen () |
void | __kmp_msg (kmp_msg_severity_t severity, kmp_msg_t message,...) |
kmp_msg_t | __kmp_msg_error_code (int code) |
kmp_msg_t | __kmp_msg_error_mesg (char const *mesg) |
kmp_msg_t | __kmp_msg_format (kmp_i18n_id_t id,...) |
Variables | |
kmp_msg_t | __kmp_msg_empty |
kmp_msg_t | __kmp_msg_null |
#define KMP_CHECK_SYSFAIL | ( | func, | |||
error | ) |
{ \ if ( error ) { \ KMP_SYSFAIL( func, error ); \ }; \ }
Definition at line 198 of file kmp_i18n.h.
Referenced by __kmp_create_monitor(), __kmp_disable(), __kmp_enable(), __kmp_gtid_set_specific(), __kmp_launch_monitor(), __kmp_launch_worker(), __kmp_register_atfork(), __kmp_resume(), __kmp_runtime_destroy(), __kmp_runtime_initialize(), __kmp_set_stack_info(), __kmp_suspend(), __kmp_suspend_initialize(), and __kmp_suspend_initialize_thread().
#define KMP_CHECK_SYSFAIL_ERRNO | ( | func, | |||
status | ) |
{ \ if ( status != 0 ) { \ int error = errno; \ KMP_SYSFAIL( func, error ); \ }; \ }
Definition at line 206 of file kmp_i18n.h.
Referenced by __kmp_clear_system_time(), __kmp_elapsed(), __kmp_launch_monitor(), __kmp_launch_worker(), __kmp_read_system_info(), __kmp_read_system_time(), and __kmp_suspend().
#define KMP_ERR KMP_SYSERRCODE |
Definition at line 171 of file kmp_i18n.h.
Referenced by __kmp_affinity_bind_thread(), __kmp_change_thread_affinity_mask(), __kmp_create_monitor(), __kmp_create_worker(), __kmp_do_serial_initialize(), __kmp_env_blk_init(), __kmp_env_exists(), __kmp_env_get(), __kmp_env_set(), __kmp_env_unset(), __kmp_free_handle(), __kmp_get_system_affinity(), __kmp_initialize_system_tick(), __kmp_is_thread_alive(), __kmp_launch_monitor(), __kmp_reap_monitor(), __kmp_reap_worker(), __kmp_set_system_affinity(), __kmp_terminate_thread(), and __kmp_thread_sleep().
#define KMP_FATAL | ( | ... | ) | __kmp_msg( kmp_ms_fatal, KMP_MSG( __VA_ARGS__ ), __kmp_msg_null ) |
Definition at line 188 of file kmp_i18n.h.
Referenced by ___kmp_allocate_align(), __kmp_acquire_drdpa_lock_with_checks(), __kmp_acquire_nested_drdpa_lock_with_checks(), __kmp_acquire_nested_queuing_lock_with_checks(), __kmp_acquire_nested_tas_lock_with_checks(), __kmp_acquire_nested_ticket_lock_with_checks(), __kmp_acquire_queuing_lock_with_checks(), __kmp_acquire_tas_lock_with_checks(), __kmp_acquire_ticket_lock_with_checks(), __kmp_aux_set_library(), __kmp_destroy_drdpa_lock_with_checks(), __kmp_destroy_nested_drdpa_lock_with_checks(), __kmp_destroy_nested_queuing_lock_with_checks(), __kmp_destroy_nested_tas_lock_with_checks(), __kmp_destroy_nested_ticket_lock_with_checks(), __kmp_destroy_queuing_lock_with_checks(), __kmp_destroy_tas_lock_with_checks(), __kmp_destroy_ticket_lock_with_checks(), __kmp_env_get(), __kmp_env_initialize(), __kmp_expand_file_name(), __kmp_get_global_thread_id(), __kmp_gtid_set_specific(), __kmp_lookup_user_lock(), __kmp_parse_nested_num_threads(), __kmp_release_drdpa_lock_with_checks(), __kmp_release_nested_drdpa_lock_with_checks(), __kmp_release_nested_queuing_lock_with_checks(), __kmp_release_nested_tas_lock_with_checks(), __kmp_release_nested_ticket_lock_with_checks(), __kmp_release_queuing_lock_with_checks(), __kmp_release_tas_lock_with_checks(), __kmp_release_ticket_lock_with_checks(), __kmp_runtime_initialize(), __kmp_set_system_affinity(), __kmp_stg_parse_force_reduction(), __kmp_str_buf_detach(), __kmp_str_buf_reserve(), __kmp_str_format(), __kmp_taskq_allocate(), __kmp_test_drdpa_lock_with_checks(), __kmp_test_nested_drdpa_lock_with_checks(), __kmp_test_nested_queuing_lock_with_checks(), __kmp_test_nested_tas_lock_with_checks(), __kmp_test_nested_ticket_lock_with_checks(), __kmp_test_queuing_lock_with_checks(), __kmp_test_tas_lock_with_checks(), __kmp_test_ticket_lock_with_checks(), __kmp_user_set_library(), __kmpc_init_lock(), __kmpc_init_nest_lock(), __kmpc_threadprivate(), allocate(), and kmp_threadprivate_insert().
#define KMP_HNT | ( | ... | ) | __kmp_msg_format( kmp_i18n_hnt_ ## __VA_ARGS__ ) |
Definition at line 168 of file kmp_i18n.h.
Referenced by __kmp_check_stack_overlap(), __kmp_create_monitor(), __kmp_create_worker(), __kmp_dispatch_init(), __kmp_env_set(), __kmp_launch_monitor(), __kmp_register_library_startup(), __kmp_register_root(), __kmp_reserve_threads(), __kmp_stg_parse_bool(), and __kmpc_threadprivate_cached().
#define KMP_I18N_STR | ( | id | ) | __kmp_i18n_catgets( kmp_i18n_str_ ## id ) |
Definition at line 82 of file kmp_i18n.h.
Referenced by __kmp_env_print(), __kmp_parse_nested_num_threads(), __kmp_print_storage_map_gtid(), __kmp_stg_parse_int(), __kmp_stg_parse_size(), __kmp_stg_print_cpuinfo_file(), __kmp_stg_print_force_reduction(), __kmp_stg_print_kmp_dynamic_mode(), __kmp_stg_print_monitor_stacksize(), __kmp_stg_print_num_threads(), __kmp_str_to_size(), and __kmp_str_to_uint().
#define KMP_INFORM | ( | ... | ) | __kmp_msg( kmp_ms_inform, KMP_MSG( __VA_ARGS__ ), __kmp_msg_null ) |
Definition at line 186 of file kmp_i18n.h.
Referenced by __kmp_aux_set_library(), __kmp_change_thread_affinity_mask(), __kmp_get_xproc(), __kmp_parse_nested_num_threads(), __kmp_stg_parse_barrier_branch_bit(), __kmp_stg_parse_barrier_pattern(), __kmp_stg_parse_blocktime(), __kmp_stg_parse_int(), __kmp_stg_parse_omp_schedule(), and __kmp_stg_parse_size().
#define KMP_MSG | ( | ... | ) | __kmp_msg_format( kmp_i18n_msg_ ## __VA_ARGS__ ) |
Definition at line 167 of file kmp_i18n.h.
Referenced by __kmp_affinity_bind_thread(), __kmp_change_thread_affinity_mask(), __kmp_check_stack_overlap(), __kmp_create_monitor(), __kmp_create_worker(), __kmp_dispatch_init(), __kmp_do_serial_initialize(), __kmp_env_blk_init(), __kmp_env_exists(), __kmp_env_get(), __kmp_env_set(), __kmp_env_unset(), __kmp_free_handle(), __kmp_get_system_affinity(), __kmp_initialize_system_tick(), __kmp_is_thread_alive(), __kmp_launch_monitor(), __kmp_reap_monitor(), __kmp_reap_worker(), __kmp_register_library_startup(), __kmp_register_root(), __kmp_reserve_threads(), __kmp_set_system_affinity(), __kmp_stg_parse_barrier_branch_bit(), __kmp_stg_parse_barrier_pattern(), __kmp_stg_parse_blocktime(), __kmp_stg_parse_bool(), __kmp_stg_parse_omp_schedule(), __kmp_terminate_thread(), __kmp_thread_sleep(), and __kmpc_threadprivate_cached().
#define KMP_SYSERRCODE | ( | code | ) | __kmp_msg_error_code( code ) |
Definition at line 169 of file kmp_i18n.h.
#define KMP_SYSERRMESG | ( | mesg | ) | __kmp_msg_error_mesg( mesg ) |
Definition at line 170 of file kmp_i18n.h.
#define KMP_SYSFAIL | ( | func, | |||
error | ) |
__kmp_msg( \ kmp_ms_fatal, \ KMP_MSG( FunctionError, func ), \ KMP_SYSERRCODE( error ), \ __kmp_msg_null \ )
Definition at line 189 of file kmp_i18n.h.
Referenced by __kmp_create_monitor(), __kmp_create_worker(), __kmp_launch_monitor(), __kmp_runtime_destroy(), __kmp_suspend(), and __kmp_suspend_uninitialize_thread().
#define KMP_WARNING | ( | ... | ) | __kmp_msg( kmp_ms_warning, KMP_MSG( __VA_ARGS__ ), __kmp_msg_null ) |
Definition at line 187 of file kmp_i18n.h.
Referenced by __kmp_cleanup_user_locks(), __kmp_dispatch_init(), __kmp_env_initialize(), __kmp_get_xproc(), __kmp_launch_monitor(), __kmp_parse_nested_num_threads(), __kmp_stg_check_rivals(), __kmp_stg_parse_barrier_branch_bit(), __kmp_stg_parse_barrier_pattern(), __kmp_stg_parse_consistency_check(), __kmp_stg_parse_int(), __kmp_stg_parse_kmp_dynamic_mode(), __kmp_stg_parse_lock_kind(), __kmp_stg_parse_omp_schedule(), __kmp_stg_parse_par_range(), __kmp_stg_parse_schedule(), __kmp_stg_parse_size(), __kmp_stg_parse_wait_policy(), __kmp_user_set_library(), __kmpc_barrier(), __kmpc_barrier_master_nowait(), __kmpc_copyprivate(), and __kmpc_end_master().
typedef enum kmp_msg_severity kmp_msg_severity_t |
Definition at line 179 of file kmp_i18n.h.
Definition at line 153 of file kmp_i18n.h.
typedef enum kmp_msg_type kmp_msg_type_t |
Definition at line 145 of file kmp_i18n.h.
enum kmp_msg_severity |
Definition at line 174 of file kmp_i18n.h.
enum kmp_msg_type |
Definition at line 139 of file kmp_i18n.h.
void __kmp_i18n_catclose | ( | ) |
Referenced by __kmp_cleanup().
char const* __kmp_i18n_catgets | ( | kmp_i18n_id_t | id | ) |
Referenced by __kmp_i18n_dump_catalog(), and __kmp_msg_format().
void __kmp_i18n_catopen | ( | ) |
Definition at line 98 of file kmp_i18n.c.
References __kmp_acquire_bootstrap_lock(), __kmp_i18n_do_catopen(), __kmp_release_bootstrap_lock(), KMP_I18N_CLOSED, and status.
void __kmp_msg | ( | kmp_msg_severity_t | severity, | |
kmp_msg_t | message, | |||
... | ||||
) |
Definition at line 920 of file kmp_i18n.c.
References __kmp_abort_process(), __kmp_generate_warnings, __kmp_msg_format(), __kmp_printf(), __kmp_str_buf_cat(), __kmp_str_buf_free(), __kmp_str_buf_init, __kmp_thread_sleep(), args, KMP_DEBUG_ASSERT, KMP_INTERNAL_FREE, kmp_ms_fatal, kmp_ms_inform, kmp_ms_warning, kmp_mt_dummy, kmp_mt_hint, kmp_mt_syserr, kmp_warnings_off, kmp_msg::len, kmp_msg::num, kmp_str_buf::str, kmp_msg::str, and kmp_msg::type.
Referenced by __kmp_affinity_bind_thread(), __kmp_change_thread_affinity_mask(), __kmp_check_stack_overlap(), __kmp_create_monitor(), __kmp_create_worker(), __kmp_dispatch_init(), __kmp_do_serial_initialize(), __kmp_env_blk_init(), __kmp_env_exists(), __kmp_env_get(), __kmp_env_set(), __kmp_env_unset(), __kmp_error_construct(), __kmp_error_construct2(), __kmp_free_handle(), __kmp_get_system_affinity(), __kmp_initialize_system_tick(), __kmp_is_thread_alive(), __kmp_launch_monitor(), __kmp_reap_monitor(), __kmp_reap_worker(), __kmp_register_library_startup(), __kmp_register_root(), __kmp_reserve_threads(), __kmp_set_system_affinity(), __kmp_stg_parse_barrier_branch_bit(), __kmp_stg_parse_barrier_pattern(), __kmp_stg_parse_blocktime(), __kmp_stg_parse_bool(), __kmp_stg_parse_omp_schedule(), __kmp_terminate_thread(), __kmp_thread_sleep(), and __kmpc_threadprivate_cached().
kmp_msg_t __kmp_msg_error_code | ( | int | code | ) |
Definition at line 888 of file kmp_i18n.c.
References kmp_mt_syserr, kmp_msg::len, kmp_msg::num, kmp_msg::str, sys_error(), and kmp_msg::type.
kmp_msg_t __kmp_msg_error_mesg | ( | char const * | mesg | ) |
Definition at line 904 of file kmp_i18n.c.
References __kmp_str_format(), kmp_mt_syserr, kmp_msg::len, kmp_msg::num, kmp_msg::str, and kmp_msg::type.
kmp_msg_t __kmp_msg_format | ( | kmp_i18n_id_t | id, | |
... | ||||
) |
Definition at line 734 of file kmp_i18n.c.
References __kmp_i18n_catgets(), __kmp_str_buf_cat(), __kmp_str_buf_detach(), __kmp_str_buf_init, __kmp_str_buf_vprint(), args, kmp_msg::len, kmp_msg::num, kmp_str_buf::str, kmp_msg::str, kmp_msg::type, and kmp_str_buf::used.
Referenced by __kmp_error_construct(), __kmp_error_construct2(), __kmp_msg(), and __kmp_pragma().
Definition at line 71 of file kmp_i18n.c.
Definition at line 72 of file kmp_i18n.c.
Referenced by __kmp_affinity_bind_thread(), __kmp_change_thread_affinity_mask(), __kmp_check_stack_overlap(), __kmp_create_monitor(), __kmp_create_worker(), __kmp_dispatch_init(), __kmp_do_serial_initialize(), __kmp_env_blk_init(), __kmp_env_exists(), __kmp_env_get(), __kmp_env_set(), __kmp_env_unset(), __kmp_error_construct(), __kmp_error_construct2(), __kmp_free_handle(), __kmp_get_system_affinity(), __kmp_initialize_system_tick(), __kmp_is_thread_alive(), __kmp_launch_monitor(), __kmp_reap_monitor(), __kmp_reap_worker(), __kmp_register_library_startup(), __kmp_register_root(), __kmp_reserve_threads(), __kmp_set_system_affinity(), __kmp_stg_parse_barrier_branch_bit(), __kmp_stg_parse_barrier_pattern(), __kmp_stg_parse_blocktime(), __kmp_stg_parse_bool(), __kmp_stg_parse_omp_schedule(), __kmp_terminate_thread(), __kmp_thread_sleep(), and __kmpc_threadprivate_cached().