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

◆ submit_resident()

template<ComputeData InputType = Eigen::MatrixXd, ComputeData OutputType = std::vector<std::vector<double>>>
bool MayaFlux::Yantra::IntervalExtractor< InputType, OutputType >::submit_resident ( std::span< const uint32_t > counts)
inline

Record and submit an extraction over scores already on the device, without waiting.

Everything recorded so far on the shared recording goes in the same submission, so a network recorded just before this call and the scans run together. Poll ready and collect as for submit.

Parameters
countsNumber of scores in each bound channel for this call.
Returns
False when an earlier submission has not been collected, or the call could not be recorded.

Definition at line 379 of file IntervalExtractor.hpp.

380 {
381 if (m_outstanding) {
382 return false;
383 }
384 try {
385 const auto& cfg = this->template config<IntervalExtractorConfig>();
387 m_outstanding = Outstanding { .calls = std::move(calls), .config = cfg, .fence = m_recording->submit() };
388 return true;
389 } catch (const std::exception& e) {
390 MF_ERROR(Journal::Component::Yantra, Journal::Context::ComputeMatrix, "Interval submit failed: {}", e.what());
391 return false;
392 }
393 }
#define MF_ERROR(comp, ctx,...)
std::shared_ptr< GpuDispatchRecorder > m_recording
std::vector< ChannelCall > record_resident(std::span< const uint32_t > counts, const IntervalExtractorConfig &cfg)
std::optional< Outstanding > m_outstanding
Finds where each score sequence is engaged, on the GPU, as a stream.