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

◆ devices()

Device MayaFlux::Yantra::Target::devices ( ) const
inlinenodiscardconstexprnoexcept

Devices that appear in any pair.

Definition at line 111 of file ExecutionTarget.hpp.

112 {
113 uint8_t result = 0;
114 for (unsigned device = 0; device < 8; ++device) {
115 if (((m_pairs >> (device * 8U)) & 0xFFU) != 0U) {
116 result |= static_cast<uint8_t>(1U << device);
117 }
118 }
119 return static_cast<Device>(result);
120 }
Device
The silicon the work runs on.
uint64_t m_pairs
One byte per device bit; each byte is the runtime set paired with that device.

References m_pairs.