|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
A set of (device, runtime) pairs. More...
#include <ExecutionTarget.hpp>
Public Member Functions | |
| constexpr Device | devices () const noexcept |
| Devices that appear in any pair. | |
| constexpr bool | empty () const noexcept |
| constexpr bool | has (Device device, Runtime runtime) const noexcept |
True when the pair (device, runtime) is in the set. | |
| constexpr bool | meets (Target other) const noexcept |
| True when the two targets share a (device, runtime) pair. | |
| constexpr bool | operator== (const Target &) const noexcept=default |
| constexpr Target | operator| (Target other) const noexcept |
| constexpr Runtime | runtimes () const noexcept |
| Runtimes that appear in any pair. | |
| constexpr | Target () noexcept=default |
| constexpr | Target (Device device_set, Runtime runtime_set) noexcept |
Every pairing of a device in device_set with a runtime in runtime_set. | |
Private Attributes | |
| uint64_t | m_pairs { 0 } |
| One byte per device bit; each byte is the runtime set paired with that device. | |
A set of (device, runtime) pairs.
Two targets meet when they share a pair.
Built from a device set and a runtime set, which gives every combination of the two (CPU|GPU with ONNX is CPU+ONNX and GPU+ONNX). Joining with | is a union of pairs, so CPU+Native joined with GPU+Vulkan names exactly those two and does not admit GPU+Native.
Definition at line 76 of file ExecutionTarget.hpp.