MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
WordPairMap.hpp File Reference

Element-wise IEEE double arithmetic on the GPU, exactly rounded, with no fp64 on the device. More...

Include dependency graph for WordPairMap.hpp:

Go to the source code of this file.

Classes

struct  MayaFlux::Yantra::WordPairOperand
 Where one operand of a WordPairMap stage comes from. More...

Namespaces

namespace  MayaFlux
 Main namespace for the Maya Flux audio engine.
namespace  MayaFlux::Yantra

Functions

std::vector< float > MayaFlux::Yantra::read_float_results (WordPairExecutionContext &context, size_t count)
 Read the float32 results of a ToFloat32 stage recorded on the context.
Portal::Graphics::ShaderSpec MayaFlux::Yantra::word_pair_map_spec (Portal::Graphics::WordPairOp op, uint32_t workgroup=256)
 The spec of a WordPairMap kernel.
DependencyStage MayaFlux::Yantra::word_pair_map_stage (WordPairExecutionContext &context, const GpuComputeConfig &config, Portal::Graphics::WordPairOp op, size_t count, const WordPairOperand &a, const WordPairOperand &b, uint32_t workgroup=256)
 The stage that applies the operation to count elements, each operand from the host or the device.
DependencyStage MayaFlux::Yantra::word_pair_map_stage (WordPairExecutionContext &context, const GpuComputeConfig &config, Portal::Graphics::WordPairOp op, size_t count, uint32_t workgroup=256)
 The stage that applies the operation to count elements whose operands are already on the device.
DependencyStage MayaFlux::Yantra::word_pair_map_stage (WordPairExecutionContext &context, const GpuComputeConfig &config, Portal::Graphics::WordPairOp op, std::span< const double > a, std::span< const double > b, uint32_t workgroup=256)
 The stage that applies the operation to every element of two host sequences.
constexpr size_t MayaFlux::Yantra::word_pair_result_bytes (Portal::Graphics::WordPairOp op) noexcept
 Bytes of one result element: a word pair, or a float32 for ToFloat32.
constexpr bool MayaFlux::Yantra::word_pair_unary (Portal::Graphics::WordPairOp op) noexcept
 True for an operation that takes no second operand.

Detailed Description

Element-wise IEEE double arithmetic on the GPU, exactly rounded, with no fp64 on the device.

The WordPairMap kernel is run on a plain WordPairExecutionContext. This file holds what is specific to it: the spec and the stage.

Definition in file WordPairMap.hpp.