Contents

class

SushiBLAS::Internal::StorageKeepAlive

Holds one reference to each distinct Storage a recorded task must keep allocated.

Declared in
include/SushiBLAS/engine/operand_set.hpp

See also

include/SushiBLAS/engine/README.md

Static public attributes

static constexpr std::size_t K_INLINE_CAPACITY = 6

Holds how many storages fit before the list spills to the heap.

Public member functions

void retain(const SushiRuntime::sushi_ptr< Storage > &storage)

Takes a reference to storage unless it is null or already held.

void retain_all(const StorageKeepAlive &other)

Takes a reference to every storage other holds.

std::size_t size() const noexcept

Returns how many distinct storages are held.