Contents

struct

SushiRuntime::In

template <typename T>

Wraps a Buffer captured for read so add() registers it and passes its pointer.

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

See also

include/SushiRuntime/api/vocabulary/README.md

Public attributes

const T * ptr

Element pointer handed to the kernel.

void * key

Read dependency key for this argument.

Core::LivenessObserver life

Observer of the captured buffer's lifetime.

Static public attributes

static constexpr bool reads = true

Contributes a read key.

static constexpr bool writes = false

Contributes no write key.

Public member functions

In(const Buffer< T > &b)

Captures b as a read-only kernel argument.

Parameters

b

Buffer to read; must outlive every run that uses the task.