Skip to main content

ClikaRT::graph::BenchOptions

struct

Header: ClikaRT/graph/bench.h

The knobs of one ModelGraph::bench call. Every field has a default.

Data members​

warmup​

std::int32_t warmup = 3

untimed runs before the measured ones

Declared in ClikaRT/graph/bench.h, line 94

iterations​

std::int32_t iterations = 20

measured runs; every one lands in the report

Declared in ClikaRT/graph/bench.h, line 95

fill​

how synthesized inputs are filled

Declared in ClikaRT/graph/bench.h, line 96

device​

std::optional<Device> device

The device the synthesized inputs are placed on. Unset: the device the graph's first bound input lives on, else the CPU.

Declared in ClikaRT/graph/bench.h, line 99

reuse_output_buffers​

bool reuse_output_buffers = true

Write every run after the first into preallocated output buffers, so the measured runs exclude output allocation. False allocates fresh outputs on every run.

Declared in ClikaRT/graph/bench.h, line 103

batch_axis​

std::optional<std::int32_t> batch_axis

The axis items are counted along for the throughput figure. Unset: the first input's ShapeDomain::batch_axis guess.

Declared in ClikaRT/graph/bench.h, line 106

profile_dir​

std::optional<std::string> profile_dir

When set, a profile of the measured runs is written under this directory.

Declared in ClikaRT/graph/bench.h, line 108