Skip to content

Commit

Permalink
doxygen comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bd4 committed Jun 13, 2024
1 parent 6488701 commit d7d1bab
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions libthapictl/thapi-ctl.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,29 @@
extern "C" {
#endif

/**
* Start tracing host and device events, when application is run with iprof.
*
* Does nothing if not run with iprof. This is detected using the
* THAPI_LTTNG_SESSION_ID environment variable.
*
* @return 0 on success
*/
int thapi_start_tracing();

/**
* Stop tracing host and device events, when application is run with iprof.
*
* NOTE: must not be called until after any device runtime initialization is
* complete, in case dynamic symbols are loaded. For CUDA, calling `cudaFree(0)`
* will force all symbols be loaded and not doing anything else, and make it
* safe to call thapi_stop_tracing.
*
* Does nothing if not run with iprof. This is detected using the
* THAPI_LTTNG_SESSION_ID environment variable.
*
* @return 0 on success
*/
int thapi_stop_tracing();

#ifdef __cplusplus
Expand Down

0 comments on commit d7d1bab

Please sign in to comment.