Inserts NVTX markers with the current timemory prefix. The default color scheme is a round-robin of red, blue, green, yellow, purple, cyan, pink, and light_green. These colors.
More...
#include "timemory/components/cuda/components.hpp"
Inserts NVTX markers with the current timemory prefix. The default color scheme is a round-robin of red, blue, green, yellow, purple, cyan, pink, and light_green. These colors.
Definition at line 396 of file components.hpp.
◆ base_type
◆ storage_type
◆ this_type
◆ value_type
◆ nvtx_marker() [1/4]
tim::component::nvtx_marker::nvtx_marker |
( |
| ) |
|
|
default |
◆ nvtx_marker() [2/4]
tim::component::nvtx_marker::nvtx_marker |
( |
const nvtx::color::color_t & |
_color | ) |
|
|
inlineexplicit |
◆ nvtx_marker() [3/4]
tim::component::nvtx_marker::nvtx_marker |
( |
cuda::stream_t |
_stream | ) |
|
|
inlineexplicit |
construct with an specific CUDA stream
Definition at line 425 of file components.hpp.
◆ nvtx_marker() [4/4]
tim::component::nvtx_marker::nvtx_marker |
( |
const nvtx::color::color_t & |
_color, |
|
|
cuda::stream_t |
_stream |
|
) |
| |
|
inline |
construct with an specific color and CUDA stream
Definition at line 430 of file components.hpp.
◆ description()
static std::string tim::component::nvtx_marker::description |
( |
| ) |
|
|
inlinestatic |
Definition at line 403 of file components.hpp.
405 return "Generates high-level region markers for CUDA profilers";
◆ get()
void tim::component::empty_base::get |
( |
| ) |
const |
|
inlineinherited |
◆ get_color()
auto tim::component::nvtx_marker::get_color |
( |
| ) |
|
|
inline |
◆ get_opaque()
template<typename... Args>
static opaque tim::component::empty_base::get_opaque |
( |
Args && |
... | ) |
|
|
inlinestaticinherited |
◆ get_range_id()
auto tim::component::nvtx_marker::get_range_id |
( |
| ) |
|
|
inline |
◆ get_stream()
auto tim::component::nvtx_marker::get_stream |
( |
| ) |
|
|
inline |
◆ label()
static std::string tim::component::nvtx_marker::label |
( |
| ) |
|
|
inlinestatic |
◆ mark_begin() [1/2]
void tim::component::nvtx_marker::mark_begin |
( |
| ) |
|
|
inline |
◆ mark_begin() [2/2]
void tim::component::nvtx_marker::mark_begin |
( |
cuda::stream_t |
_stream | ) |
|
|
inline |
◆ mark_end() [1/2]
void tim::component::nvtx_marker::mark_end |
( |
| ) |
|
|
inline |
◆ mark_end() [2/2]
void tim::component::nvtx_marker::mark_end |
( |
cuda::stream_t |
_stream | ) |
|
|
inline |
◆ record()
static value_type tim::component::nvtx_marker::record |
( |
| ) |
|
|
inlinestatic |
◆ set_color()
void tim::component::nvtx_marker::set_color |
( |
nvtx::color::color_t |
_color | ) |
|
|
inline |
◆ set_prefix()
void tim::component::nvtx_marker::set_prefix |
( |
const char * |
_prefix | ) |
|
|
inline |
◆ set_stream()
void tim::component::nvtx_marker::set_stream |
( |
cuda::stream_t |
_stream | ) |
|
|
inline |
set the current CUDA stream
Definition at line 498 of file components.hpp.
498{ m_stream = _stream; }
◆ start()
void tim::component::nvtx_marker::start |
( |
| ) |
|
|
inline |
start an nvtx range. Equivalent to nvtxRangeStartEx
Definition at line 447 of file components.hpp.
447{ m_range_id = nvtx::range_start(get_attribute()); }
◆ stop()
void tim::component::nvtx_marker::stop |
( |
| ) |
|
|
inline |
stop the nvtx range. Equivalent to nvtxRangeEnd
. Depending on settings::nvtx_marker_device_sync()
this will either call cudaDeviceSynchronize()
or cudaStreamSynchronize(m_stream)
before stopping the range.
Definition at line 453 of file components.hpp.
461 cuda::stream_sync(m_stream);
463 nvtx::range_stop(m_range_id);
◆ thread_init()
static void tim::component::nvtx_marker::thread_init |
( |
| ) |
|
|
inlinestatic |
Definition at line 415 of file components.hpp.
415{ nvtx::name_thread(threading::get_id()); }
◆ use_device_sync()
static bool & tim::component::nvtx_marker::use_device_sync |
( |
| ) |
|
|
inlinestatic |
The documentation for this struct was generated from the following file: