Uni20
Asynchronous tensor and runtime library.
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Functions
dispatch_diagnostics.hpp File Reference

Opt-in structured diagnostics for kernel-dispatch walks. More...

#include <uni20/linalg/dispatch_error.hpp>
#include <atomic>
#include <functional>
#include <optional>
#include <string>
#include <string_view>
#include <utility>
#include <vector>
Include dependency graph for dispatch_diagnostics.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  uni20::linalg::dispatch_diagnostics::event
 Structured result of one ordered kernel-dispatch walk. More...
 
class  uni20::linalg::dispatch_diagnostics::scoped_sink
 Temporarily replace the diagnostic sink and restore it on destruction. More...
 

Namespaces

namespace  uni20
 
namespace  uni20::linalg
 
namespace  uni20::linalg::dispatch_diagnostics
 

Typedefs

using uni20::linalg::dispatch_diagnostics::sink = std::function< void(event const &)>
 Callable receiving structured dispatch events after backend walks.
 

Functions

sink uni20::linalg::dispatch_diagnostics::current_sink ()
 Return a copy of the active diagnostic sink.
 
bool uni20::linalg::dispatch_diagnostics::enabled () noexcept
 Return whether runtime kernel-dispatch diagnostics are enabled.
 
void uni20::linalg::dispatch_diagnostics::reset_sink ()
 Disable runtime kernel-dispatch diagnostics.
 
void uni20::linalg::dispatch_diagnostics::set_sink (sink replacement)
 Replace the process-wide kernel-dispatch diagnostic sink.
 

Detailed Description

Opt-in structured diagnostics for kernel-dispatch walks.