cuda-api-wrappers
Thin C++-flavored wrappers for the CUDA Runtime API
cuda::profiling Namespace Reference

Interaction with NVIDIA's profiler, particularly tagging, marking and indications of entities it will pick up and register/display. More...

Namespaces

 mark
 definitions related to marking individual time points in the profiler timeline
 
 range
 definitions related to profiled ranges and the range_t class
 

Classes

struct  color_t
 An RGB colorspace color value, with potential transparency, which may be used to color elements in timelines or other graphical displays of profiling information. More...
 
class  scope
 A class to instantiate in the part of your application which does any work you intend to use the CUDA profiler to profile. More...
 
class  scoped_range_marker
 A RAII/CADRe class whose scope of existence is reflected as a range in the profiler. More...
 

Functions

void start ()
 Start CUDA profiling for the current process.
 
void stop ()
 Stop CUDA profiling for the current process.
 
template<typename CharT >
void name (const ::std::thread &host_thread, const CharT *name)
 Have the profiler refer to a given host thread, using a specified string identifier (rather than its numeric ID). More...
 
template<typename CharT >
void name_this_thread (const CharT *name)
 Have the profiler refer to the current thread using a specified string identifier (rather than its numeric ID). More...
 
template<typename CharT >
void name (const stream_t &stream, const CharT *name)
 Have the profile assign a name to a certain stream.
 
template<typename CharT >
void name (const event_t &event, const CharT *name)
 Have the profile assign a name to a certain event.
 
template<typename CharT >
void name (const device_t &device, const CharT *name)
 Have the profile assign a name to a certain CUDA device.
 

Detailed Description

Interaction with NVIDIA's profiler, particularly tagging, marking and indications of entities it will pick up and register/display.

Function Documentation

◆ name()

template<typename CharT >
void cuda::profiling::name ( const ::std::thread &  host_thread,
const CharT *  name 
)

Have the profiler refer to a given host thread, using a specified string identifier (rather than its numeric ID).

Parameters
[in]host_threadA C++-recognized thread to name in profiling results
[in]nameThe name to use for the specified thread

◆ name_this_thread()

template<typename CharT >
void cuda::profiling::name_this_thread ( const CharT *  name)

Have the profiler refer to the current thread using a specified string identifier (rather than its numeric ID).

Parameters
[in]host_threadA C++-recognized thread to name in profiling results
[in]nameThe name to use for the specified thread