PAPI 7.1.0.0
Loading...
Searching...
No Matches
cupti_dispatch.h
Go to the documentation of this file.
1
7#ifndef __CUPTI_DISPATCH_H__
8#define __CUPTI_DISPATCH_H__
9
10#include "cupti_utils.h"
11
12extern unsigned int _cuda_lock;
13
14typedef void *cuptid_ctl_t;
15typedef void *cuptid_info_t;
18
19int cuptid_shutdown(void);
20void cuptid_disabled_reason_get(const char **msg);
21int cuptid_init(void);
28int cuptid_control_read(cuptid_ctl_t ctl, long long *values);
32
36int cuptid_event_table_find_name(ntv_event_table_t evt_table, const char *evt_name, ntv_event_t *found_rec);
37int cuptid_event_table_insert_record(ntv_event_table_t evt_table, const char *evt_name, unsigned int evt_code, int evt_pos);
38int cuptid_event_table_get_item(ntv_event_table_t evt_table, unsigned int evt_idx, ntv_event_t *record);
39
40#endif /* __CUPTI_DISPATCH_H__ */
static const char * event_names[2]
Definition: Gamum.c:27
static long count
int cuptid_event_table_create(ntv_event_table_t *evt_table)
int cuptid_control_destroy(cuptid_ctl_t *ctl)
int cuptid_event_table_select_by_idx(ntv_event_table_t src, int count, int *idcs, ntv_event_table_t *pevt_names)
int cuptid_event_table_insert_record(ntv_event_table_t evt_table, const char *evt_name, unsigned int evt_code, int evt_pos)
int cuptid_event_enum(ntv_event_table_t all_evt_names)
int cuptid_control_create(ntv_event_table_t event_names, cuptid_info_t thread_info, cuptid_ctl_t *pcupti_ctl)
int cuptid_control_start(cuptid_ctl_t ctl)
int cuptid_init(void)
int cuptid_event_table_get_item(ntv_event_table_t evt_table, unsigned int evt_idx, ntv_event_t *record)
void * cuptid_info_t
cuptiu_event_t * ntv_event_t
int cuptid_control_stop(cuptid_ctl_t ctl)
int cuptid_event_table_find_name(ntv_event_table_t evt_table, const char *evt_name, ntv_event_t *found_rec)
unsigned int _cuda_lock
Definition: cupti_common.c:21
void cuptid_event_table_destroy(ntv_event_table_t *evt_table)
int cuptid_control_read(cuptid_ctl_t ctl, long long *values)
int cuptid_shutdown(void)
int cuptid_event_name_to_descr(char *evt_name, char *descr)
void * cuptid_ctl_t
cuptiu_event_table_t * ntv_event_table_t
int cuptid_thread_info_destroy(cuptid_info_t *info)
int cuptid_thread_info_create(cuptid_info_t *info)
int cuptid_control_reset(cuptid_ctl_t ctl)
void cuptid_disabled_reason_get(const char **msg)
char * evt_name(evstock *stock, int index)
Definition: eventstock.c:193
static long long values[NUM_EVENTS]
Definition: init_fini.c:10
char * descr