|
Uni20
Asynchronous tensor and runtime library.
|
Parser-independent run state. More...
#include <run_context.hpp>
Classes | |
| class | computation_scope |
Public Member Functions | |
| computation_scope | computation () |
| metadata_document const & | finish (run_outcome outcome, metadata_document summary={}) |
| Freeze the final summary, sampling before its rendering or output flush. | |
| bool | finished () const |
| std::vector< std::string > const & | invocation () const |
| template<typename F > | |
| decltype(auto) | measure (F &&function) |
| metadata_document & | metadata () |
| run_context & | operator= (run_context const &)=delete |
| presentation::program_info const & | program () const |
| run_context (presentation::program_info program, run_context_options options={}) | |
| run_context (run_context const &)=delete | |
| metadata_document | snapshot () const |
Parser-independent run state.
Snapshots own their metadata and remain stable after edits.
Timing uses process CPU and monotonic elapsed time. Computation scopes are non-nested, single-caller intervals; they must include asynchronous completion, not just submission.
|
explicit |
|
delete |
|
inline |
| metadata_document const & uni20::run_context::finish | ( | run_outcome | outcome, |
| metadata_document | summary = {} |
||
| ) |
Freeze the final summary, sampling before its rendering or output flush.
The scientific outcome is independent of any subsequent output-session failure.
|
inline |
|
inline |
|
inline |
| metadata_document & uni20::run_context::metadata | ( | ) |
|
delete |
|
inline |
|
inline |