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

◆ submit() [1/2]

template<ComputeData InputType = Eigen::MatrixXd, ComputeData OutputType = std::vector<std::vector<double>>>
bool MayaFlux::Yantra::IntervalExtractor< InputType, OutputType >::submit ( const input_type & data)
inline

Record and submit an extraction without waiting for it.

For a live caller that must not block: the work is on the queue when this returns. Poll ready, then collect the result. Only one submission can be outstanding, and a synchronous extract_intervals is refused while one is.

Returns
False when an earlier submission has not been collected, or the input could not be submitted.

Definition at line 304 of file IntervalExtractor.hpp.

305 {
306 if (m_outstanding) {
307 return false;
308 }
309 try {
310 const auto& cfg = this->template config<IntervalExtractorConfig>();
313 m_outstanding = Outstanding { .calls = std::move(calls), .config = cfg, .fence = m_recording->submit() };
314 return true;
315 } catch (const std::exception& e) {
316 MF_ERROR(Journal::Component::Yantra, Journal::Context::ComputeMatrix, "Interval submit failed: {}", e.what());
317 return false;
318 }
319 }
#define MF_ERROR(comp, ctx,...)
std::shared_ptr< GpuDispatchRecorder > m_recording
std::vector< ChannelCall > record_all(const Columns &columns, const IntervalExtractorConfig &cfg)
std::optional< Outstanding > m_outstanding
Finds where each score sequence is engaged, on the GPU, as a stream.
static std::tuple< NumericChannels, DataStructureInfo > extract_structured_double(T &compute_data)
Extract structured double data from Datum container or direct ComputeData with automatic container ha...

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

Here is the caller graph for this function: