ginkgo/core/log/profiler_hook.hpp Source File#
|
Reference API
|
profiler_hook.hpp
Definition executor.hpp:615
Definition lin_op.hpp:385
Definition lin_op.hpp:117
Definition executor.hpp:258
Definition polymorphic_object.hpp:52
Definition array.hpp:166
Definition logger.hpp:76
Definition profiler_hook.hpp:289
virtual void write_nested(const nested_summary_entry &root, std::chrono::nanoseconds overhead)=0
Definition profiler_hook.hpp:274
virtual void write(const std::vector< summary_entry > &entries, std::chrono::nanoseconds overhead)=0
Definition profiler_hook.hpp:309
TableSummaryWriter(std::ostream &output=std::cerr, std::string header="Runtime summary")
void write(const std::vector< summary_entry > &entries, std::chrono::nanoseconds overhead) override
void write_nested(const nested_summary_entry &root, std::chrono::nanoseconds overhead) override
Definition profiler_hook.hpp:57
static std::shared_ptr< ProfilerHook > create_nvtx(uint32 color_argb=color_yellow_argb)
void set_object_name(ptr_param< const PolymorphicObject > obj, std::string name)
void on_linop_apply_completed(const LinOp *A, const LinOp *b, const LinOp *x) const override
void on_polymorphic_object_move_completed(const Executor *exec, const PolymorphicObject *from, const PolymorphicObject *to) const override
void on_polymorphic_object_copy_started(const Executor *exec, const PolymorphicObject *from, const PolymorphicObject *to) const override
void on_copy_completed(const gko::Executor *from, const gko::Executor *to, const gko::uintptr &, const gko::uintptr &, const gko::size_type &) const override
static std::shared_ptr< ProfilerHook > create_summary(std::shared_ptr< Timer > timer=std::make_shared< CpuTimer >(), std::unique_ptr< SummaryWriter > writer=std::make_unique< TableSummaryWriter >(), bool debug_check_nesting=false)
profiling_scope_guard user_range(const char *name) const
static std::shared_ptr< ProfilerHook > create_nested_summary(std::shared_ptr< Timer > timer=std::make_shared< CpuTimer >(), std::unique_ptr< NestedSummaryWriter > writer=std::make_unique< TableSummaryWriter >(), bool debug_check_nesting=false)
void on_polymorphic_object_copy_completed(const Executor *exec, const PolymorphicObject *from, const PolymorphicObject *to) const override
void on_criterion_check_completed(const stop::Criterion *criterion, const size_type &num_iterations, const LinOp *residual, const LinOp *residual_norm, const LinOp *implicit_sq_resnorm, const LinOp *solution, const uint8 &stopping_id, const bool &set_finalized, const array< stopping_status > *status, const bool &one_changed, const bool &all_stopped) const override
static std::shared_ptr< ProfilerHook > create_roctx()
void on_copy_started(const gko::Executor *from, const gko::Executor *to, const gko::uintptr &, const gko::uintptr &, const gko::size_type &) const override
static std::shared_ptr< ProfilerHook > create_for_executor(std::shared_ptr< const Executor > exec)
static std::shared_ptr< ProfilerHook > create_custom(hook_function begin, hook_function end)
void on_linop_advanced_apply_completed(const LinOp *A, const LinOp *alpha, const LinOp *b, const LinOp *beta, const LinOp *x) const override
static std::shared_ptr< ProfilerHook > create_vtune()
void on_allocation_completed(const gko::Executor *exec, const gko::size_type &, const gko::uintptr &) const override
static constexpr uint32 color_yellow_argb
Definition profiler_hook.hpp:210
static std::shared_ptr< ProfilerHook > create_tau(bool initialize=true)
void set_synchronization(bool synchronize)
void on_free_completed(const gko::Executor *exec, const gko::uintptr &) const override
void on_criterion_check_started(const stop::Criterion *criterion, const size_type &num_iterations, const LinOp *residual, const LinOp *residual_norm, const LinOp *solution, const uint8 &stopping_id, const bool &set_finalized) const override
void on_iteration_complete(const LinOp *solver, const LinOp *right_hand_side, const LinOp *solution, const size_type &num_iterations, const LinOp *residual, const LinOp *residual_norm, const LinOp *implicit_sq_residual_norm, const array< stopping_status > *status, bool stopped) const override
void on_linop_factory_generate_started(const LinOpFactory *factory, const LinOp *input) const override
void on_linop_factory_generate_completed(const LinOpFactory *factory, const LinOp *input, const LinOp *output) const override
void on_linop_advanced_apply_started(const LinOp *A, const LinOp *alpha, const LinOp *b, const LinOp *beta, const LinOp *x) const override
void on_operation_completed(const Executor *exec, const Operation *operation) const override
bool needs_propagation() const override
void on_criterion_check_completed(const stop::Criterion *criterion, const size_type &num_iterations, const LinOp *residual, const LinOp *residual_norm, const LinOp *solution, const uint8 &stopping_id, const bool &set_finalized, const array< stopping_status > *status, const bool &one_changed, const bool &all_stopped) const override
void on_polymorphic_object_move_started(const Executor *exec, const PolymorphicObject *from, const PolymorphicObject *to) const override
void on_linop_apply_started(const LinOp *A, const LinOp *b, const LinOp *x) const override
void on_allocation_started(const gko::Executor *exec, const gko::size_type &) const override
void on_free_started(const gko::Executor *exec, const gko::uintptr &) const override
void on_operation_launched(const Executor *exec, const Operation *operation) const override
Definition profiler_hook.hpp:400
profiling_scope_guard()
~profiling_scope_guard()
profiling_scope_guard(const char *name, profile_event_category category, ProfilerHook::hook_function begin, ProfilerHook::hook_function end)
Definition utils_helper.hpp:41
Definition criterion.hpp:36
std::unique_ptr< Matrix > initialize(size_type stride, std::initializer_list< typename Matrix::value_type > vals, std::shared_ptr< const Executor > exec, TArgs &&... create_args)
Definition dense.hpp:1564
@ criterion
@ operation
STL namespace.
Definition profiler_hook.hpp:262
std::vector< nested_summary_entry > children
Definition profiler_hook.hpp:270
std::chrono::nanoseconds elapsed
Definition profiler_hook.hpp:266
Definition profiler_hook.hpp:248
Definition version.hpp:25
Generated by