Contents

struct

SushiRuntime::API::InOut

template <typename T>

A kernel argument captured for read-modify-write tracking.

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

Template parameters

T

Element type of the wrapped buffer.

Public attributes

T * ptr

Element pointer handed to the kernel.

void * key

Dependency key counted as both read and write.

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 = true

Contributes a write key.

Public member functions

InOut(Buffer< T > &b)

Captures b as a read-and-write kernel argument.

Parameters

b

Buffer read and written in place; must outlive every run that uses the task.