PAPI 7.1.0.0
Loading...
Searching...
No Matches
roc_dispatch.h File Reference

rocm component dispatch layer. Dispatches profiling to the appropriate backend interface (e.g. rocprofiler). More...

Include dependency graph for roc_dispatch.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int rocd_init_environment (void)
 
int rocd_init (void)
 
int rocd_shutdown (void)
 
int rocd_evt_enum (uint64_t *event_code, int modifier)
 
int rocd_evt_code_to_descr (uint64_t event_code, char *descr, int len)
 
int rocd_evt_name_to_code (const char *name, uint64_t *event_code)
 
int rocd_evt_code_to_name (uint64_t event_code, char *name, int len)
 
int rocd_evt_code_to_info (uint64_t event_code, PAPI_event_info_t *info)
 
int rocd_err_get_last (const char **error_str)
 
int rocd_ctx_open (uint64_t *event_id, int num_events, rocd_ctx_t *ctx)
 
int rocd_ctx_close (rocd_ctx_t ctx)
 
int rocd_ctx_start (rocd_ctx_t ctx)
 
int rocd_ctx_stop (rocd_ctx_t ctx)
 
int rocd_ctx_read (rocd_ctx_t ctx, long long **counters)
 
int rocd_ctx_reset (rocd_ctx_t ctx)
 

Detailed Description

Author
Giuseppe Congiu gcong.nosp@m.iu@i.nosp@m.cl.ut.nosp@m.k.ed.nosp@m.u

Definition in file roc_dispatch.h.

Function Documentation

◆ rocd_ctx_close()

int rocd_ctx_close ( rocd_ctx_t  ctx)

Definition at line 85 of file roc_dispatch.c.

86{
87 return rocp_ctx_close(ctx);
88}
int rocp_ctx_close(rocp_ctx_t rocp_ctx)
Definition: roc_profiler.c:401
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rocd_ctx_open()

int rocd_ctx_open ( uint64_t *  event_id,
int  num_events,
rocd_ctx_t *  ctx 
)

Definition at line 79 of file roc_dispatch.c.

80{
82}
static int num_events
int rocp_ctx_open(uint64_t *events_id, int num_events, rocp_ctx_t *rocp_ctx)
Definition: roc_profiler.c:390
uint64_t * events_id
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rocd_ctx_read()

int rocd_ctx_read ( rocd_ctx_t  ctx,
long long **  counters 
)

Definition at line 103 of file roc_dispatch.c.

104{
105 return rocp_ctx_read(ctx, counters);
106}
int rocp_ctx_read(rocp_ctx_t rocp_ctx, long long **counts)
Definition: roc_profiler.c:434
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rocd_ctx_reset()

int rocd_ctx_reset ( rocd_ctx_t  ctx)

Definition at line 109 of file roc_dispatch.c.

110{
111 return rocp_ctx_reset(ctx);
112}
int rocp_ctx_reset(rocp_ctx_t rocp_ctx)
Definition: roc_profiler.c:445
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rocd_ctx_start()

int rocd_ctx_start ( rocd_ctx_t  ctx)

Definition at line 91 of file roc_dispatch.c.

92{
93 return rocp_ctx_start(ctx);
94}
int rocp_ctx_start(rocp_ctx_t rocp_ctx)
Definition: roc_profiler.c:412
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rocd_ctx_stop()

int rocd_ctx_stop ( rocd_ctx_t  ctx)

Definition at line 97 of file roc_dispatch.c.

98{
99 return rocp_ctx_stop(ctx);
100}
int rocp_ctx_stop(rocp_ctx_t rocp_ctx)
Definition: roc_profiler.c:423
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rocd_err_get_last()

int rocd_err_get_last ( const char **  error_str)

Definition at line 73 of file roc_dispatch.c.

74{
75 return rocc_err_get_last(error_str);
76}
int rocc_err_get_last(const char **err_string)
Definition: roc_common.c:67
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rocd_evt_code_to_descr()

int rocd_evt_code_to_descr ( uint64_t  event_code,
char *  descr,
int  len 
)

Definition at line 49 of file roc_dispatch.c.

50{
51 return rocp_evt_code_to_descr(event_code, descr, len);
52}
int rocp_evt_code_to_descr(uint64_t event_code, char *descr, int len)
Definition: roc_profiler.c:260
char * descr
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rocd_evt_code_to_info()

int rocd_evt_code_to_info ( uint64_t  event_code,
PAPI_event_info_t info 
)

Definition at line 67 of file roc_dispatch.c.

68{
69 return rocp_evt_code_to_info(event_code, info);
70}
int rocp_evt_code_to_info(uint64_t event_code, PAPI_event_info_t *info)
Definition: roc_profiler.c:331
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rocd_evt_code_to_name()

int rocd_evt_code_to_name ( uint64_t  event_code,
char *  name,
int  len 
)

Definition at line 61 of file roc_dispatch.c.

62{
63 return rocp_evt_code_to_name(event_code, name, len);
64}
int rocp_evt_code_to_name(uint64_t event_code, char *name, int len)
Definition: roc_profiler.c:324
const char * name
Definition: rocs.c:225
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rocd_evt_enum()

int rocd_evt_enum ( uint64_t *  event_code,
int  modifier 
)

Definition at line 43 of file roc_dispatch.c.

44{
45 return rocp_evt_enum(event_code, modifier);
46}
int rocp_evt_enum(uint64_t *event_code, int modifier)
Definition: roc_profiler.c:193
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rocd_evt_name_to_code()

int rocd_evt_name_to_code ( const char *  name,
uint64_t *  event_code 
)

Definition at line 55 of file roc_dispatch.c.

56{
57 return rocp_evt_name_to_code(name, event_code);
58}
int rocp_evt_name_to_code(const char *name, uint64_t *event_code)
Definition: roc_profiler.c:276
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rocd_init()

int rocd_init ( void  )

Definition at line 21 of file roc_dispatch.c.

22{
23 int papi_errno = rocc_init();
24 if (papi_errno != PAPI_OK) {
25 return papi_errno;
26 }
27 papi_errno = rocp_init();
28 return papi_errno;
29}
#define PAPI_OK
Definition: f90papi.h:73
int rocc_init(void)
Definition: roc_common.c:29
int rocp_init(void)
Definition: roc_profiler.c:159
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rocd_init_environment()

int rocd_init_environment ( void  )

Definition at line 15 of file roc_dispatch.c.

16{
17 return rocp_init_environment();
18}
int rocp_init_environment(void)
Definition: roc_profiler.c:152
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rocd_shutdown()

int rocd_shutdown ( void  )

Definition at line 32 of file roc_dispatch.c.

33{
34 int papi_errno = rocp_shutdown();
35 if (papi_errno != PAPI_OK) {
36 return papi_errno;
37 }
38 papi_errno = rocc_shutdown();
39 return papi_errno;
40}
int rocc_shutdown(void)
Definition: roc_common.c:59
int rocp_shutdown(void)
Definition: roc_profiler.c:456
Here is the call graph for this function:
Here is the caller graph for this function: