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

Where and on what an operation can run, as sets of pairs that compose. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  MayaFlux::Yantra::Target
 A set of (device, runtime) pairs. More...

Namespaces

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

Concepts

concept  MayaFlux::Yantra::FlagEnum

Enumerations

enum class  MayaFlux::Yantra::Device : uint8_t {
  MayaFlux::Yantra::NONE = 0 , MayaFlux::Yantra::CPU = 1U << 0 , MayaFlux::Yantra::GPU = 1U << 1 , MayaFlux::Yantra::NPU = 1U << 2 ,
  MayaFlux::Yantra::CUSTOM_0 = 1U << 6 , MayaFlux::Yantra::CUSTOM_1 = 1U << 7
}
 The silicon the work runs on. More...
enum class  MayaFlux::Yantra::Runtime : uint8_t {
  MayaFlux::Yantra::NONE = 0 , MayaFlux::Yantra::NATIVE = 1U << 0 , MayaFlux::Yantra::VULKAN = 1U << 1 , MayaFlux::Yantra::ONNX = 1U << 2 ,
  MayaFlux::Yantra::CUSTOM_0 = 1U << 6 , MayaFlux::Yantra::CUSTOM_1 = 1U << 7
}
 The software stack that executes the work. More...

Functions

template<FlagEnum E>
constexpr bool MayaFlux::Yantra::contains (E set, E members) noexcept
 True when set holds every member of members.
template<FlagEnum E>
constexpr bool MayaFlux::Yantra::intersects (E a, E b) noexcept
 True when the two sets share a member.
template<FlagEnum E>
constexpr E MayaFlux::Yantra::operator& (E a, E b) noexcept
template<FlagEnum E>
constexpr E MayaFlux::Yantra::operator| (E a, E b) noexcept

Variables

constexpr Target MayaFlux::Yantra::targets::cpu { Device::CPU, Runtime::NATIVE }
constexpr Target MayaFlux::Yantra::targets::onnx_cpu { Device::CPU, Runtime::ONNX }
constexpr Target MayaFlux::Yantra::targets::onnx_gpu { Device::GPU, Runtime::ONNX }
template<typename Op>
constexpr Target MayaFlux::Yantra::target_of_v
 The target an operation class declares through static constexpr Target target, or the CPU when it declares none.
constexpr Target MayaFlux::Yantra::targets::vulkan { Device::GPU, Runtime::VULKAN }

Detailed Description

Where and on what an operation can run, as sets of pairs that compose.

@experimental The shape of Target and its use in resolution are not settled.

Definition in file ExecutionTarget.hpp.