Contents

struct

SushiRuntime::Reads

Names the data a task reads, as a list of dependency keys.

Declared in
include/SushiRuntime/api/vocabulary/dependencies.hpp

The ergonomic counterpart to a hand-built std::vector<void*>: pass the Buffers and States a task reads and this collects their read keys, so the caller never spells dependency_key()/read_key() by hand. Used by the explicit-tracking and offload add() overloads to order tasks by data.

Public attributes

std::vector< Core::ResourceRegion > keys

Read regions, in argument order.

std::vector< Core::LivenessObserver > lives

Observers of the typed handles read.

Public member functions

template <class... Handles>
explicit Reads(const Handles &... hs)

Collects the read region and liveness of each handle passed.

Parameters

hs

Buffers, buffer regions, or States the task reads; each contributes one region, in the order given.