75 std::optional<std::pair<size_t, size_t>>
pending;
93 report.
pending = std::pair<size_t, size_t> { words[4], words[5] };
102 auto narrowed =
static_cast<float>(value);
103 if (
static_cast<double>(narrowed) < value) {
104 narrowed = std::nextafter(narrowed, std::numeric_limits<float>::infinity());
132 uint64_t scores, uint64_t gate, uint64_t state, uint64_t runs, uint64_t report,
133 uint32_t first_index, uint32_t n,
bool flush)
137 std::source_location::current(),
"{}", reason);
139 const auto seen_end =
static_cast<uint64_t
>(first_index) + n;
147 .first_index = first_index,
153 .run_limit = config.
max_run == 0 ? std::numeric_limits<uint32_t>::max() : config.
max_run - config.
hop - 2 * config.
padding,
166 .stage_fn = [pc](
GpuDispatchCore& core) { core.set_push_constants(pc); },
167 .explicit_groups = std::array<uint32_t, 3> { 1U, 1U, 1U },
Runs of a score sequence that stay above a threshold, found in order as a stream, for MayaFlux::Kines...
Non-template base that owns all type-independent GPU dispatch logic.
@ ComputeMatrix
Compute operations (Yantra - algorithms, matrices, DSP).
@ Yantra
DSP algorithms, computational units, matrix operations, Grammar.
std::string diagnose_interval_scan(const IntervalScanConfig &config)
Why a config cannot be scanned.
float interval_scan_ceil_float(double value) noexcept
constexpr uint32_t interval_scan_state_words
Words of the state buffer.
constexpr uint32_t interval_scan_flag_emit_on_close
DependencyStage interval_scan_stage(const Kinesis::Discrete::IntervalScanConfig &config, uint64_t scores, uint64_t gate, uint64_t state, uint64_t runs, uint64_t report, uint32_t first_index, uint32_t n, bool flush)
One interval_scan dispatch: continue a stream with n scores from device memory.
IntervalScanReport decode_interval_scan_report(std::span< const uint32_t > words)
Decode the report buffer.
constexpr uint32_t interval_scan_flag_flush
constexpr uint32_t interval_scan_report_words
Words of the report buffer: the run count, then the open run and the pending interval.
constexpr size_t interval_scan_runs_words(size_t n) noexcept
Words the run list needs for n scores: a start and an end for each run that can close,...
constexpr uint32_t interval_scan_flag_longest
constexpr uint32_t interval_scan_flag_gated
constexpr const char * interval_scan_shader
Settings of an IntervalScanner.
Plain-data description of the compute shader to dispatch.
One stage in a record_stages call.
Push constants of interval_scan.comp.
std::optional< std::pair< size_t, size_t > > pending
The closed interval waiting for its padded end: its padded start and its end before trailing padding.
uint32_t emitted
Intervals this dispatch appended to the run list.
std::optional< size_t > open_start
Where the run in progress began.
What one dispatch of the scan left, decoded from the report buffer.