ROCm Systems Profiler Causal Profiling Defines

ROCm Systems Profiler Causal Profiling Defines#

rocprofiler-systems: ROCm Systems Profiler Causal Profiling Defines
ROCm Systems Profiler Causal Profiling Defines

Macros

#define ROCPROFSYS_CAUSAL_ENABLED   1
 
#define ROCPROFSYS_CAUSAL_LABEL   __FILE__ ":" ROCPROFSYS_CAUSAL_STR(__LINE__)
 
#define ROCPROFSYS_CAUSAL_PROGRESS    rocprofsys_user_progress(ROCPROFSYS_CAUSAL_LABEL);
 
#define ROCPROFSYS_CAUSAL_PROGRESS_NAMED(LABEL)   rocprofsys_user_progress(LABEL);
 
#define ROCPROFSYS_CAUSAL_BEGIN(LABEL)   rocprofsys_user_push_region(LABEL);
 
#define ROCPROFSYS_CAUSAL_END(LABEL)   rocprofsys_user_pop_region(LABEL);
 

Detailed Description

Macro Definition Documentation

◆ ROCPROFSYS_CAUSAL_BEGIN

#define ROCPROFSYS_CAUSAL_BEGIN (   LABEL)    rocprofsys_user_push_region(LABEL);

Starts a latency progress point (region of interest) with user defined label. Each instance should use a unique label.

Definition at line 63 of file causal.h.

◆ ROCPROFSYS_CAUSAL_ENABLED

#define ROCPROFSYS_CAUSAL_ENABLED   1

Preprocessor switch to enable/disable instrumentation for causal profiling

Definition at line 36 of file causal.h.

◆ ROCPROFSYS_CAUSAL_END

#define ROCPROFSYS_CAUSAL_END (   LABEL)    rocprofsys_user_pop_region(LABEL);

End the latency progress point (region of interest) for the matching user defined label.

Definition at line 68 of file causal.h.

◆ ROCPROFSYS_CAUSAL_LABEL

#define ROCPROFSYS_CAUSAL_LABEL   __FILE__ ":" ROCPROFSYS_CAUSAL_STR(__LINE__)

Default label for a causal progress point

Definition at line 48 of file causal.h.

◆ ROCPROFSYS_CAUSAL_PROGRESS

#define ROCPROFSYS_CAUSAL_PROGRESS    rocprofsys_user_progress(ROCPROFSYS_CAUSAL_LABEL);

Adds a throughput progress point with label <file>:<line>

Definition at line 52 of file causal.h.

◆ ROCPROFSYS_CAUSAL_PROGRESS_NAMED

#define ROCPROFSYS_CAUSAL_PROGRESS_NAMED (   LABEL)    rocprofsys_user_progress(LABEL);

Adds a throughput progress point with user defined label. Each instance should use a unique label.

Definition at line 58 of file causal.h.