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

◆ stage_words()

void MayaFlux::Yantra::WordPairExecutionContext::stage_words ( uint32_t binding,
std::span< const double > values,
size_t padded_count = 0,
bool complement = false )
inline

Encode values and stage them as the data of a binding.

Parameters
bindingBinding that receives the words.
valuesDoubles to encode.
padded_countWord count to stage. Words past values are all ones, the largest key.
complementComplements every encoded word, which reverses an order key's order.

Definition at line 53 of file WordPairExecutionContext.hpp.

54 {
55 set_binding_data(binding, OperationHelper::encode_word_pairs(values, padded_count, m_order_key, complement));
56 }
void set_binding_data(size_t index, std::span< const T > data)
Pre-stage typed data for a specific binding slot, bypassing the default channel-flattening path in pr...
static std::vector< uint8_t > encode_word_pairs(std::span< const double > values, size_t padded_words=0, bool order_key=false, bool complement=false)
Encode doubles as little-endian 64-bit words, two 32-bit lanes each.

References MayaFlux::Yantra::OperationHelper::encode_word_pairs(), m_order_key, and MayaFlux::Yantra::GpuDispatchCore::set_binding_data().

Referenced by MayaFlux::Yantra::lagged_pair_stage(), MayaFlux::Yantra::segmented_argmax_stage(), MayaFlux::Yantra::SegmentedReductionContext::stage(), and MayaFlux::Yantra::word_pair_map_stage().

Here is the call graph for this function:
Here is the caller graph for this function: