timemory 3.3.0
Modular C++ Toolkit for Performance Analysis and Logging. Profiling API and Tools for C, C++, CUDA, Fortran, and Python. The C++ template API is essentially a framework to creating tools: it is designed to provide a unifying interface for recording various performance measurements alongside data logging and interfaces to other tools.
|
Inserts ROCTX markers with the current timemory prefix. More...
#include "timemory/components/hip/components.hpp"
Public Types | |
using | value_type = void |
using | this_type = roctx_marker |
using | base_type = base< this_type, value_type > |
using | storage_type = empty_storage |
Public Member Functions | |
roctx_marker (hip::stream_t _stream) | |
construct with an specific HIP stream More... | |
void | start () |
start an roctx range. Equivalent to roctxRangeStartEx More... | |
void | stop () |
stop the roctx range. Equivalent to roctxRangeEnd . Depending on settings::roctx_marker_device_sync() this will either call hipDeviceSynchronize() or hipStreamSynchronize(m_stream) before stopping the range. More... | |
void | mark_begin () |
asynchronously add a marker. Equivalent to roctxMarkA More... | |
void | mark_end () |
asynchronously add a marker. Equivalent to roctxMarkA More... | |
void | mark_begin (hip::stream_t _stream) |
asynchronously add a marker for a specific stream. Equivalent to roctxMarkA More... | |
void | mark_end (hip::stream_t _stream) |
asynchronously add a marker for a specific stream. Equivalent to roctxMarkA More... | |
void | set_stream (hip::stream_t _stream) |
set the current HIP stream More... | |
void | set_prefix (const char *_prefix) |
set the label More... | |
auto | get_range_id () |
auto | get_stream () |
void | get () const |
Static Public Member Functions | |
static std::string | label () |
static std::string | description () |
static value_type | record () |
static bool & | use_device_sync () |
template<typename... Args> | |
static opaque | get_opaque (Args &&...) |
Inserts ROCTX markers with the current timemory prefix.
Definition at line 252 of file components.hpp.
Definition at line 256 of file components.hpp.
|
inherited |
Definition at line 66 of file declaration.hpp.
Definition at line 255 of file components.hpp.
using tim::component::roctx_marker::value_type = void |
Definition at line 254 of file components.hpp.
|
inlineexplicit |
construct with an specific HIP stream
Definition at line 274 of file components.hpp.
|
inlinestatic |
Definition at line 259 of file components.hpp.
|
inlineinherited |
Definition at line 69 of file declaration.hpp.
|
inlinestaticinherited |
Definition at line 72 of file declaration.hpp.
|
inline |
Definition at line 329 of file components.hpp.
|
inline |
Definition at line 330 of file components.hpp.
|
inlinestatic |
Definition at line 258 of file components.hpp.
|
inline |
asynchronously add a marker. Equivalent to roctxMarkA
Definition at line 299 of file components.hpp.
References tim::invoke::mark(), and TIMEMORY_JOIN.
|
inline |
asynchronously add a marker for a specific stream. Equivalent to roctxMarkA
Definition at line 311 of file components.hpp.
References tim::invoke::mark(), and TIMEMORY_JOIN.
|
inline |
asynchronously add a marker. Equivalent to roctxMarkA
Definition at line 305 of file components.hpp.
References tim::invoke::mark(), and TIMEMORY_JOIN.
|
inline |
asynchronously add a marker for a specific stream. Equivalent to roctxMarkA
Definition at line 318 of file components.hpp.
References tim::invoke::mark(), and TIMEMORY_JOIN.
|
inlinestatic |
Definition at line 263 of file components.hpp.
|
inline |
|
inline |
set the current HIP stream
Definition at line 325 of file components.hpp.
|
inline |
start an roctx range. Equivalent to roctxRangeStartEx
Definition at line 279 of file components.hpp.
|
inline |
stop the roctx range. Equivalent to roctxRangeEnd
. Depending on settings::roctx_marker_device_sync()
this will either call hipDeviceSynchronize()
or hipStreamSynchronize(m_stream)
before stopping the range.
Definition at line 285 of file components.hpp.
References use_device_sync().
|
inlinestatic |
Definition at line 265 of file components.hpp.
References tim::nvtx_marker_device_sync.
Referenced by stop().