LLVM OpenMP 20.0.0git
Classes | Macros | Typedefs | Functions | Variables
ompt-multiplex.h File Reference
#include <dlfcn.h>
#include <errno.h>
#include <execinfo.h>
#include <inttypes.h>
#include <omp-tools.h>
#include <omp.h>
#include <stdio.h>
#include <string.h>

Go to the source code of this file.

Classes

struct  ompt_multiplex_callbacks_s
 
struct  ompt_multiplex_callback_implementation_status_s
 
struct  ompt_multiplex_data_pair_s
 

Macros

#define _GNU_SOURCE
 
#define CLIENT_TOOL_VERBOSE_INIT_VAR   "OMP_TOOL_VERBOSE_INIT"
 
#define OMPT_API_ROUTINE   static
 
#define OMPT_STR_MATCH(haystack, needle)   (!strcasecmp(haystack, needle))
 
#define OMPT_VERBOSE_INIT_PRINT(...)
 
#define OMPT_VERBOSE_INIT_CONTINUED_PRINT(...)
 
#define OMPT_LOAD_CLIENT_FOREACH_OMPT_EVENT(macro)
 
#define ompt_event_macro(event, callback, eventid)   callback ompt_##event
 
#define ompt_event_macro(event, callback, eventid)   int ompt_##event
 
#define ompt_event_macro(event_name, callback_type, event_id)
 
#define ompt_event_macro(event_name, callback_type, event_id)
 
#define ompt_event_macro(event_name, callback_type, event_id)    ompt_multiplex_implementation_status.ompt_##event_name = -1
 
#define ompt_start_tool   ompt_multiplex_own_start_tool
 

Typedefs

typedef struct ompt_multiplex_callbacks_s ompt_multiplex_callbacks_t
 
typedef struct ompt_multiplex_callback_implementation_status_s ompt_multiplex_callback_implementation_status_t
 
typedef struct ompt_multiplex_data_pair_s ompt_multiplex_data_pair_t
 

Functions

void setup_verbose_init ()
 
static ompt_multiplex_data_pair_tompt_multiplex_allocate_data_pair (ompt_data_t *data_pointer)
 
static void ompt_multiplex_free_data_pair (ompt_data_t *data_pointer)
 
static ompt_data_t * ompt_multiplex_get_own_ompt_data (ompt_data_t *data)
 
static ompt_data_t * ompt_multiplex_get_client_ompt_data (ompt_data_t *data)
 
static ompt_data_t * ompt_multiplex_get_own_thread_data (ompt_data_t *data)
 defined(OMPT_MULTIPLEX_CUSTOM_GET_CLIENT_THREAD_DATA) ||
 
static ompt_data_t * ompt_multiplex_get_own_parallel_data (ompt_data_t *data)
 
static ompt_data_t * ompt_multiplex_get_own_task_data (ompt_data_t *data)
 
static ompt_data_t * ompt_multiplex_get_client_thread_data (ompt_data_t *data)
 
static ompt_data_t * ompt_multiplex_get_client_parallel_data (ompt_data_t *data)
 
static ompt_data_t * ompt_multiplex_get_client_task_data (ompt_data_t *data)
 
static void ompt_multiplex_callback_mutex_acquire (ompt_mutex_t kind, unsigned int hint, unsigned int impl, ompt_wait_id_t wait_id, const void *codeptr_ra)
 
static void ompt_multiplex_callback_mutex_acquired (ompt_mutex_t kind, ompt_wait_id_t wait_id, const void *codeptr_ra)
 
static void ompt_multiplex_callback_mutex_released (ompt_mutex_t kind, ompt_wait_id_t wait_id, const void *codeptr_ra)
 
static void ompt_multiplex_callback_nest_lock (ompt_scope_endpoint_t endpoint, ompt_wait_id_t wait_id, const void *codeptr_ra)
 
static void ompt_multiplex_callback_sync_region (ompt_sync_region_t kind, ompt_scope_endpoint_t endpoint, ompt_data_t *parallel_data, ompt_data_t *task_data, const void *codeptr_ra)
 
static void ompt_multiplex_callback_sync_region_wait (ompt_sync_region_t kind, ompt_scope_endpoint_t endpoint, ompt_data_t *parallel_data, ompt_data_t *task_data, const void *codeptr_ra)
 
static void ompt_multiplex_callback_flush (ompt_data_t *thread_data, const void *codeptr_ra)
 
static void ompt_multiplex_callback_cancel (ompt_data_t *task_data, int flags, const void *codeptr_ra)
 
static void ompt_multiplex_callback_implicit_task (ompt_scope_endpoint_t endpoint, ompt_data_t *parallel_data, ompt_data_t *task_data, unsigned int team_size, unsigned int thread_num, int flags)
 
static void ompt_multiplex_callback_lock_init (ompt_mutex_t kind, unsigned int hint, unsigned int impl, ompt_wait_id_t wait_id, const void *codeptr_ra)
 
static void ompt_multiplex_callback_lock_destroy (ompt_mutex_t kind, ompt_wait_id_t wait_id, const void *codeptr_ra)
 
static void ompt_multiplex_callback_work (ompt_work_t wstype, ompt_scope_endpoint_t endpoint, ompt_data_t *parallel_data, ompt_data_t *task_data, uint64_t count, const void *codeptr_ra)
 
static void ompt_multiplex_callback_masked (ompt_scope_endpoint_t endpoint, ompt_data_t *parallel_data, ompt_data_t *task_data, const void *codeptr_ra)
 
static void ompt_multiplex_callback_parallel_begin (ompt_data_t *parent_task_data, const ompt_frame_t *parent_task_frame, ompt_data_t *parallel_data, uint32_t requested_team_size, int flag, const void *codeptr_ra)
 
static void ompt_multiplex_callback_parallel_end (ompt_data_t *parallel_data, ompt_data_t *task_data, int flag, const void *codeptr_ra)
 
static void ompt_multiplex_callback_task_create (ompt_data_t *parent_task_data, const ompt_frame_t *parent_frame, ompt_data_t *new_task_data, int type, int has_dependences, const void *codeptr_ra)
 
static void ompt_multiplex_callback_task_schedule (ompt_data_t *first_task_data, ompt_task_status_t prior_task_status, ompt_data_t *second_task_data)
 
static void ompt_multiplex_callback_dependences (ompt_data_t *task_data, const ompt_dependence_t *deps, int ndeps)
 
static void ompt_multiplex_callback_task_dependence (ompt_data_t *first_task_data, ompt_data_t *second_task_data)
 
static void ompt_multiplex_callback_thread_begin (ompt_thread_t thread_type, ompt_data_t *thread_data)
 
static void ompt_multiplex_callback_thread_end (ompt_data_t *thread_data)
 
static int ompt_multiplex_callback_control_tool (uint64_t command, uint64_t modifier, void *arg, const void *codeptr_ra)
 
static void ompt_multiplex_callback_target (ompt_target_t kind, ompt_scope_endpoint_t endpoint, int device_num, ompt_data_t *task_data, ompt_id_t target_id, const void *codeptr_ra)
 
static void ompt_multiplex_callback_target_data_op (ompt_id_t target_id, ompt_id_t host_op_id, ompt_target_data_op_t optype, void *src_addr, int src_device_num, void *dest_addr, int dest_device_num, size_t bytes, const void *codeptr_ra)
 
static void ompt_multiplex_callback_target_submit (ompt_id_t target_id, ompt_id_t host_op_id, unsigned int requested_num_teams)
 
static void ompt_multiplex_callback_device_initialize (int device_num, const char *type, ompt_device_t *device, ompt_function_lookup_t lookup, const char *documentation)
 
static void ompt_multiplex_callback_device_finalize (int device_num)
 
static void ompt_multiplex_callback_device_load (int device_num, const char *filename, int64_t offset_in_file, void *vma_in_file, size_t bytes, void *host_addr, void *device_addr, uint64_t module_id)
 
static void ompt_multiplex_callback_device_unload (int device_num, uint64_t module_id)
 
static void ompt_multiplex_callback_target_map (ompt_id_t target_id, unsigned int nitems, void **host_addr, void **device_addr, size_t *bytes, unsigned int *mapping_flags, const void *codeptr_ra)
 
static void ompt_multiplex_callback_reduction (ompt_sync_region_t kind, ompt_scope_endpoint_t endpoint, ompt_data_t *parallel_data, ompt_data_t *task_data, const void *codeptr_ra)
 
static void ompt_multiplex_callback_dispatch (ompt_data_t *parallel_data, ompt_data_t *task_data, ompt_dispatch_t kind, ompt_data_t instance)
 
int ompt_multiplex_own_get_task_info (int ancestor_level, int *type, ompt_data_t **task_data, ompt_frame_t **task_frame, ompt_data_t **parallel_data, int *thread_num)
 
int ompt_multiplex_client_get_task_info (int ancestor_level, int *type, ompt_data_t **task_data, ompt_frame_t **task_frame, ompt_data_t **parallel_data, int *thread_num)
 
ompt_data_t * ompt_multiplex_own_get_thread_data ()
 
ompt_data_t * ompt_multiplex_client_get_thread_data ()
 
int ompt_multiplex_own_get_parallel_info (int ancestor_level, ompt_data_t **parallel_data, int *team_size)
 
int ompt_multiplex_client_get_parallel_info (int ancestor_level, ompt_data_t **parallel_data, int *team_size)
 
OMPT_API_ROUTINE int ompt_multiplex_own_set_callback (ompt_callbacks_t which, ompt_callback_t callback)
 
OMPT_API_ROUTINE int ompt_multiplex_client_set_callback (ompt_callbacks_t which, ompt_callback_t callback)
 
ompt_interface_fn_t ompt_multiplex_own_lookup (const char *name)
 
ompt_interface_fn_t ompt_multiplex_client_lookup (const char *name)
 
int ompt_multiplex_initialize (ompt_function_lookup_t lookup, int initial_device_num, ompt_data_t *data)
 
void ompt_multiplex_finalize (ompt_data_t *fns)
 
ompt_start_tool_result_tompt_multiplex_own_start_tool (unsigned int omp_version, const char *runtime_version)
 
ompt_start_tool_result_tompt_start_tool (unsigned int omp_version, const char *runtime_version)
 

Variables

static ompt_set_callback_t ompt_multiplex_set_callback
 
static ompt_get_task_info_t ompt_multiplex_get_task_info
 
static ompt_get_thread_data_t ompt_multiplex_get_thread_data
 
static ompt_get_parallel_info_t ompt_multiplex_get_parallel_info
 
static FILE * verbose_file
 
static int verbose_init
 
ompt_start_tool_result_tompt_multiplex_own_fns = NULL
 
ompt_start_tool_result_tompt_multiplex_client_fns = NULL
 
ompt_function_lookup_t ompt_multiplex_lookup_function
 
ompt_multiplex_callbacks_t ompt_multiplex_own_callbacks
 
ompt_multiplex_callbacks_t ompt_multiplex_client_callbacks
 
ompt_multiplex_callback_implementation_status_t ompt_multiplex_implementation_status
 

Macro Definition Documentation

◆ _GNU_SOURCE

#define _GNU_SOURCE

Definition at line 20 of file ompt-multiplex.h.

◆ CLIENT_TOOL_VERBOSE_INIT_VAR

#define CLIENT_TOOL_VERBOSE_INIT_VAR   "OMP_TOOL_VERBOSE_INIT"

Definition at line 54 of file ompt-multiplex.h.

◆ OMPT_API_ROUTINE

#define OMPT_API_ROUTINE   static

Definition at line 77 of file ompt-multiplex.h.

◆ ompt_event_macro [1/5]

#define ompt_event_macro (   event,
  callback,
  eventid 
)    callback ompt_##event

Definition at line 163 of file ompt-multiplex.h.

◆ ompt_event_macro [2/5]

#define ompt_event_macro (   event,
  callback,
  eventid 
)    int ompt_##event

Definition at line 163 of file ompt-multiplex.h.

◆ ompt_event_macro [3/5]

#define ompt_event_macro (   event_name,
  callback_type,
  event_id 
)
Value:
case ompt_##event_name: \
ompt_multiplex_own_callbacks.ompt_##event_name = (callback_type)callback; \
if (ompt_multiplex_implementation_status.ompt_##event_name == -1) \
return ompt_multiplex_implementation_status.ompt_##event_name = \
ompt_multiplex_set_callback( \
ompt_##event_name, \
(ompt_callback_t)&ompt_multiplex_##event_name); \
else \
return ompt_multiplex_implementation_status.ompt_##event_name
ompt_multiplex_callback_implementation_status_t ompt_multiplex_implementation_status
ompt_multiplex_callbacks_t ompt_multiplex_own_callbacks

Definition at line 163 of file ompt-multiplex.h.

◆ ompt_event_macro [4/5]

#define ompt_event_macro (   event_name,
  callback_type,
  event_id 
)
Value:
case ompt_##event_name: \
ompt_multiplex_client_callbacks.ompt_##event_name = \
(callback_type)callback; \
if (ompt_multiplex_implementation_status.ompt_##event_name == -1) \
return ompt_multiplex_implementation_status.ompt_##event_name = \
ompt_multiplex_set_callback( \
ompt_##event_name, \
(ompt_callback_t)&ompt_multiplex_##event_name); \
else \
return ompt_multiplex_implementation_status.ompt_##event_name
ompt_multiplex_callbacks_t ompt_multiplex_client_callbacks

Definition at line 163 of file ompt-multiplex.h.

◆ ompt_event_macro [5/5]

#define ompt_event_macro (   event_name,
  callback_type,
  event_id 
)     ompt_multiplex_implementation_status.ompt_##event_name = -1

Definition at line 163 of file ompt-multiplex.h.

◆ OMPT_LOAD_CLIENT_FOREACH_OMPT_EVENT

#define OMPT_LOAD_CLIENT_FOREACH_OMPT_EVENT (   macro)

Definition at line 120 of file ompt-multiplex.h.

◆ ompt_start_tool

#define ompt_start_tool   ompt_multiplex_own_start_tool

Definition at line 1206 of file ompt-multiplex.h.

◆ OMPT_STR_MATCH

#define OMPT_STR_MATCH (   haystack,
  needle 
)    (!strcasecmp(haystack, needle))

Definition at line 80 of file ompt-multiplex.h.

◆ OMPT_VERBOSE_INIT_CONTINUED_PRINT

#define OMPT_VERBOSE_INIT_CONTINUED_PRINT (   ...)
Value:
if (verbose_init) \
fprintf(verbose_file, __VA_ARGS__)
static int verbose_init
static FILE * verbose_file

Definition at line 90 of file ompt-multiplex.h.

◆ OMPT_VERBOSE_INIT_PRINT

#define OMPT_VERBOSE_INIT_PRINT (   ...)
Value:
if (verbose_init) \
fprintf(verbose_file, __VA_ARGS__)

Definition at line 87 of file ompt-multiplex.h.

Typedef Documentation

◆ ompt_multiplex_callback_implementation_status_t

◆ ompt_multiplex_callbacks_t

◆ ompt_multiplex_data_pair_t

Function Documentation

◆ ompt_multiplex_allocate_data_pair()

static ompt_multiplex_data_pair_t * ompt_multiplex_allocate_data_pair ( ompt_data_t *  data_pointer)
static

◆ ompt_multiplex_callback_cancel()

static void ompt_multiplex_callback_cancel ( ompt_data_t *  task_data,
int  flags,
const void codeptr_ra 
)
static

◆ ompt_multiplex_callback_control_tool()

static int ompt_multiplex_callback_control_tool ( uint64_t  command,
uint64_t  modifier,
void arg,
const void codeptr_ra 
)
static

◆ ompt_multiplex_callback_dependences()

static void ompt_multiplex_callback_dependences ( ompt_data_t *  task_data,
const ompt_dependence_t *  deps,
int  ndeps 
)
static

◆ ompt_multiplex_callback_device_finalize()

static void ompt_multiplex_callback_device_finalize ( int  device_num)
static

◆ ompt_multiplex_callback_device_initialize()

static void ompt_multiplex_callback_device_initialize ( int  device_num,
const char type,
ompt_device_t *  device,
ompt_function_lookup_t  lookup,
const char documentation 
)
static

◆ ompt_multiplex_callback_device_load()

static void ompt_multiplex_callback_device_load ( int  device_num,
const char filename,
int64_t  offset_in_file,
void vma_in_file,
size_t  bytes,
void host_addr,
void device_addr,
uint64_t  module_id 
)
static

◆ ompt_multiplex_callback_device_unload()

static void ompt_multiplex_callback_device_unload ( int  device_num,
uint64_t  module_id 
)
static

◆ ompt_multiplex_callback_dispatch()

static void ompt_multiplex_callback_dispatch ( ompt_data_t *  parallel_data,
ompt_data_t *  task_data,
ompt_dispatch_t  kind,
ompt_data_t  instance 
)
static

◆ ompt_multiplex_callback_flush()

static void ompt_multiplex_callback_flush ( ompt_data_t *  thread_data,
const void codeptr_ra 
)
static

◆ ompt_multiplex_callback_implicit_task()

static void ompt_multiplex_callback_implicit_task ( ompt_scope_endpoint_t  endpoint,
ompt_data_t *  parallel_data,
ompt_data_t *  task_data,
unsigned int  team_size,
unsigned int  thread_num,
int  flags 
)
static

◆ ompt_multiplex_callback_lock_destroy()

static void ompt_multiplex_callback_lock_destroy ( ompt_mutex_t  kind,
ompt_wait_id_t  wait_id,
const void codeptr_ra 
)
static

◆ ompt_multiplex_callback_lock_init()

static void ompt_multiplex_callback_lock_init ( ompt_mutex_t  kind,
unsigned int  hint,
unsigned int  impl,
ompt_wait_id_t  wait_id,
const void codeptr_ra 
)
static

◆ ompt_multiplex_callback_masked()

static void ompt_multiplex_callback_masked ( ompt_scope_endpoint_t  endpoint,
ompt_data_t *  parallel_data,
ompt_data_t *  task_data,
const void codeptr_ra 
)
static

◆ ompt_multiplex_callback_mutex_acquire()

static void ompt_multiplex_callback_mutex_acquire ( ompt_mutex_t  kind,
unsigned int  hint,
unsigned int  impl,
ompt_wait_id_t  wait_id,
const void codeptr_ra 
)
static

◆ ompt_multiplex_callback_mutex_acquired()

static void ompt_multiplex_callback_mutex_acquired ( ompt_mutex_t  kind,
ompt_wait_id_t  wait_id,
const void codeptr_ra 
)
static

◆ ompt_multiplex_callback_mutex_released()

static void ompt_multiplex_callback_mutex_released ( ompt_mutex_t  kind,
ompt_wait_id_t  wait_id,
const void codeptr_ra 
)
static

◆ ompt_multiplex_callback_nest_lock()

static void ompt_multiplex_callback_nest_lock ( ompt_scope_endpoint_t  endpoint,
ompt_wait_id_t  wait_id,
const void codeptr_ra 
)
static

◆ ompt_multiplex_callback_parallel_begin()

static void ompt_multiplex_callback_parallel_begin ( ompt_data_t *  parent_task_data,
const ompt_frame_t *  parent_task_frame,
ompt_data_t *  parallel_data,
uint32_t  requested_team_size,
int  flag,
const void codeptr_ra 
)
static

◆ ompt_multiplex_callback_parallel_end()

static void ompt_multiplex_callback_parallel_end ( ompt_data_t *  parallel_data,
ompt_data_t *  task_data,
int  flag,
const void codeptr_ra 
)
static

◆ ompt_multiplex_callback_reduction()

static void ompt_multiplex_callback_reduction ( ompt_sync_region_t  kind,
ompt_scope_endpoint_t  endpoint,
ompt_data_t *  parallel_data,
ompt_data_t *  task_data,
const void codeptr_ra 
)
static

◆ ompt_multiplex_callback_sync_region()

static void ompt_multiplex_callback_sync_region ( ompt_sync_region_t  kind,
ompt_scope_endpoint_t  endpoint,
ompt_data_t *  parallel_data,
ompt_data_t *  task_data,
const void codeptr_ra 
)
static

◆ ompt_multiplex_callback_sync_region_wait()

static void ompt_multiplex_callback_sync_region_wait ( ompt_sync_region_t  kind,
ompt_scope_endpoint_t  endpoint,
ompt_data_t *  parallel_data,
ompt_data_t *  task_data,
const void codeptr_ra 
)
static

◆ ompt_multiplex_callback_target()

static void ompt_multiplex_callback_target ( ompt_target_t  kind,
ompt_scope_endpoint_t  endpoint,
int  device_num,
ompt_data_t *  task_data,
ompt_id_t  target_id,
const void codeptr_ra 
)
static

◆ ompt_multiplex_callback_target_data_op()

static void ompt_multiplex_callback_target_data_op ( ompt_id_t  target_id,
ompt_id_t  host_op_id,
ompt_target_data_op_t  optype,
void src_addr,
int  src_device_num,
void dest_addr,
int  dest_device_num,
size_t  bytes,
const void codeptr_ra 
)
static

◆ ompt_multiplex_callback_target_map()

static void ompt_multiplex_callback_target_map ( ompt_id_t  target_id,
unsigned int  nitems,
void **  host_addr,
void **  device_addr,
size_t *  bytes,
unsigned int mapping_flags,
const void codeptr_ra 
)
static

◆ ompt_multiplex_callback_target_submit()

static void ompt_multiplex_callback_target_submit ( ompt_id_t  target_id,
ompt_id_t  host_op_id,
unsigned int  requested_num_teams 
)
static

◆ ompt_multiplex_callback_task_create()

static void ompt_multiplex_callback_task_create ( ompt_data_t *  parent_task_data,
const ompt_frame_t *  parent_frame,
ompt_data_t *  new_task_data,
int  type,
int  has_dependences,
const void codeptr_ra 
)
static

◆ ompt_multiplex_callback_task_dependence()

static void ompt_multiplex_callback_task_dependence ( ompt_data_t *  first_task_data,
ompt_data_t *  second_task_data 
)
static

◆ ompt_multiplex_callback_task_schedule()

static void ompt_multiplex_callback_task_schedule ( ompt_data_t *  first_task_data,
ompt_task_status_t  prior_task_status,
ompt_data_t *  second_task_data 
)
static

◆ ompt_multiplex_callback_thread_begin()

static void ompt_multiplex_callback_thread_begin ( ompt_thread_t  thread_type,
ompt_data_t *  thread_data 
)
static

◆ ompt_multiplex_callback_thread_end()

static void ompt_multiplex_callback_thread_end ( ompt_data_t *  thread_data)
static

◆ ompt_multiplex_callback_work()

static void ompt_multiplex_callback_work ( ompt_work_t  wstype,
ompt_scope_endpoint_t  endpoint,
ompt_data_t *  parallel_data,
ompt_data_t *  task_data,
uint64_t  count,
const void codeptr_ra 
)
static

◆ ompt_multiplex_client_get_parallel_info()

int ompt_multiplex_client_get_parallel_info ( int  ancestor_level,
ompt_data_t **  parallel_data,
int team_size 
)

◆ ompt_multiplex_client_get_task_info()

int ompt_multiplex_client_get_task_info ( int  ancestor_level,
int type,
ompt_data_t **  task_data,
ompt_frame_t **  task_frame,
ompt_data_t **  parallel_data,
int thread_num 
)

◆ ompt_multiplex_client_get_thread_data()

ompt_data_t * ompt_multiplex_client_get_thread_data ( )

◆ ompt_multiplex_client_lookup()

ompt_interface_fn_t ompt_multiplex_client_lookup ( const char name)

◆ ompt_multiplex_client_set_callback()

OMPT_API_ROUTINE int ompt_multiplex_client_set_callback ( ompt_callbacks_t  which,
ompt_callback_t  callback 
)

◆ ompt_multiplex_finalize()

void ompt_multiplex_finalize ( ompt_data_t *  fns)

Definition at line 1097 of file ompt-multiplex.h.

References ompt_multiplex_client_fns, and ompt_multiplex_own_fns.

Referenced by ompt_start_tool().

◆ ompt_multiplex_free_data_pair()

static void ompt_multiplex_free_data_pair ( ompt_data_t *  data_pointer)
static

◆ ompt_multiplex_get_client_ompt_data()

static ompt_data_t * ompt_multiplex_get_client_ompt_data ( ompt_data_t *  data)
static

◆ ompt_multiplex_get_client_parallel_data()

static ompt_data_t * ompt_multiplex_get_client_parallel_data ( ompt_data_t *  data)
static

◆ ompt_multiplex_get_client_task_data()

static ompt_data_t * ompt_multiplex_get_client_task_data ( ompt_data_t *  data)
static

◆ ompt_multiplex_get_client_thread_data()

static ompt_data_t * ompt_multiplex_get_client_thread_data ( ompt_data_t *  data)
static

◆ ompt_multiplex_get_own_ompt_data()

static ompt_data_t * ompt_multiplex_get_own_ompt_data ( ompt_data_t *  data)
static

◆ ompt_multiplex_get_own_parallel_data()

static ompt_data_t * ompt_multiplex_get_own_parallel_data ( ompt_data_t *  data)
static

◆ ompt_multiplex_get_own_task_data()

static ompt_data_t * ompt_multiplex_get_own_task_data ( ompt_data_t *  data)
static

◆ ompt_multiplex_get_own_thread_data()

static ompt_data_t * ompt_multiplex_get_own_thread_data ( ompt_data_t *  data)
static

defined(OMPT_MULTIPLEX_CUSTOM_GET_CLIENT_THREAD_DATA) ||

!defined(OMPT_MULTIPLEX_CUSTOM_GET_CLIENT_PARALLEL_DATA) || !defined(OMPT_MULTIPLEX_CUSTOM_GET_CLIENT_TASK_DATA)

Definition at line 227 of file ompt-multiplex.h.

References data, and ompt_multiplex_get_own_ompt_data().

Referenced by ompt_multiplex_callback_flush(), ompt_multiplex_callback_thread_begin(), and ompt_multiplex_callback_thread_end().

◆ ompt_multiplex_initialize()

int ompt_multiplex_initialize ( ompt_function_lookup_t  lookup,
int  initial_device_num,
ompt_data_t *  data 
)

◆ ompt_multiplex_own_get_parallel_info()

int ompt_multiplex_own_get_parallel_info ( int  ancestor_level,
ompt_data_t **  parallel_data,
int team_size 
)

◆ ompt_multiplex_own_get_task_info()

int ompt_multiplex_own_get_task_info ( int  ancestor_level,
int type,
ompt_data_t **  task_data,
ompt_frame_t **  task_frame,
ompt_data_t **  parallel_data,
int thread_num 
)

◆ ompt_multiplex_own_get_thread_data()

ompt_data_t * ompt_multiplex_own_get_thread_data ( )

◆ ompt_multiplex_own_lookup()

ompt_interface_fn_t ompt_multiplex_own_lookup ( const char name)

◆ ompt_multiplex_own_set_callback()

OMPT_API_ROUTINE int ompt_multiplex_own_set_callback ( ompt_callbacks_t  which,
ompt_callback_t  callback 
)

Definition at line 989 of file ompt-multiplex.h.

References ompt_event_macro, and OMPT_LOAD_CLIENT_FOREACH_OMPT_EVENT.

Referenced by ompt_multiplex_own_lookup().

◆ ompt_multiplex_own_start_tool()

ompt_start_tool_result_t * ompt_multiplex_own_start_tool ( unsigned int  omp_version,
const char runtime_version 
)

Referenced by ompt_start_tool().

◆ ompt_start_tool()

ompt_start_tool_result_t * ompt_start_tool ( unsigned int  omp_version,
const char runtime_version 
)

◆ setup_verbose_init()

void setup_verbose_init ( )

Definition at line 97 of file ompt-multiplex.h.

References CLIENT_TOOL_VERBOSE_INIT_VAR, OMPT_STR_MATCH, verbose_file, and verbose_init.

Referenced by ompt_start_tool().

Variable Documentation

◆ ompt_multiplex_client_callbacks

ompt_multiplex_callbacks_t ompt_multiplex_client_callbacks

◆ ompt_multiplex_client_fns

ompt_start_tool_result_t* ompt_multiplex_client_fns = NULL

◆ ompt_multiplex_get_parallel_info

ompt_get_parallel_info_t ompt_multiplex_get_parallel_info
static

◆ ompt_multiplex_get_task_info

ompt_get_task_info_t ompt_multiplex_get_task_info
static

◆ ompt_multiplex_get_thread_data

ompt_get_thread_data_t ompt_multiplex_get_thread_data
static

◆ ompt_multiplex_implementation_status

ompt_multiplex_callback_implementation_status_t ompt_multiplex_implementation_status

Definition at line 176 of file ompt-multiplex.h.

◆ ompt_multiplex_lookup_function

ompt_function_lookup_t ompt_multiplex_lookup_function

◆ ompt_multiplex_own_callbacks

ompt_multiplex_callbacks_t ompt_multiplex_own_callbacks

◆ ompt_multiplex_own_fns

ompt_start_tool_result_t* ompt_multiplex_own_fns = NULL

◆ ompt_multiplex_set_callback

ompt_set_callback_t ompt_multiplex_set_callback
static

Definition at line 31 of file ompt-multiplex.h.

Referenced by ompt_multiplex_initialize().

◆ verbose_file

FILE* verbose_file
static

Definition at line 94 of file ompt-multiplex.h.

Referenced by ompt_start_tool(), and setup_verbose_init().

◆ verbose_init

int verbose_init
static

Definition at line 95 of file ompt-multiplex.h.

Referenced by ompt_start_tool(), and setup_verbose_init().