MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ record_scans()

template<ComputeData InputType = Eigen::MatrixXd, ComputeData OutputType = std::vector<std::vector<double>>>
void MayaFlux::Yantra::IntervalExtractor< InputType, OutputType >::record_scans ( const std::vector< ChannelCall > & calls,
const IntervalExtractorConfig & cfg )
inlineprivate

Records one scan per column that ran, each with its own settings.

A gated column reads its gate's scores from the gate column's own buffer.

Definition at line 758 of file IntervalExtractor.hpp.

759 {
761 for (size_t channel = 0; channel < calls.size(); ++channel) {
762 if (!calls[channel].ran) {
763 continue;
764 }
765 const auto& settings = cfg.settings_of(channel);
767 ? m_context->shared_buffer_address(0, binding_of(settings.gate_channel, Scores))
768 : uint64_t { 0 };
770 m_context->shared_buffer_address(0, binding_of(channel, Scores)),
771 gate,
772 m_context->shared_buffer_address(0, binding_of(channel, State)),
773 m_context->shared_buffer_address(0, binding_of(channel, Runs)),
774 m_context->shared_buffer_address(0, binding_of(channel, Report)),
776 }
777 if (!stages.empty()) {
778 m_context->record_stages(stages);
779 }
780 }
std::unique_ptr< ShaderExecutionContext<> > m_context
static size_t binding_of(size_t channel, Slot slot)
static bool gated_by_other(const IntervalScanSettings &settings, size_t channel)
Finds where each score sequence is engaged, on the GPU, as a stream.
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.
Kinesis::Discrete::IntervalScanConfig interval_scan_config(const IntervalScanSettings &settings, uint32_t length)
The host scan configuration of one column's settings over a stream of the given length.

Referenced by MayaFlux::Yantra::IntervalExtractor< Eigen::MatrixXd, std::vector< std::vector< double > > >::record_all(), and MayaFlux::Yantra::IntervalExtractor< Eigen::MatrixXd, std::vector< std::vector< double > > >::record_resident().

Here is the caller graph for this function: