Skip to main content

ClikaRT::EagerScope

class

Header: ClikaRT/compute/scope.h

While alive, forces EAGER execution on the calling thread: every op runs its kernel and produces a real value before dispatch returns, even when nested inside a TracingScope. Use it to guard a region that must compute concrete values (a metric, a running average, a control-flow decision read back to the host) so a caller who wrapped the surrounding code in a TracingScope cannot turn those ops into un-materialized placeholders. Outside any scope execution is already eager, so this is a no-op there. Non-copyable, non-movable.

Member functions

EagerScope()

EagerScope()

Enter: forces eager execution on this thread (overriding an outer tracing scope) until exit.

Declared in ClikaRT/compute/scope.h, line 71

~EagerScope()

~EagerScope()

Exit: restores the surrounding mode.

Declared in ClikaRT/compute/scope.h, line 73

EagerScope(EagerScope)

EagerScope(const EagerScope&) =delete

Declared in ClikaRT/compute/scope.h, line 74

operator=()

EagerScope& operator=(const EagerScope&) =delete

Declared in ClikaRT/compute/scope.h, line 75