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

◆ Target() [2/2]

MayaFlux::Yantra::Target::Target ( Device device_set,
Runtime runtime_set )
inlineconstexprnoexcept

Every pairing of a device in device_set with a runtime in runtime_set.

Definition at line 80 of file ExecutionTarget.hpp.

81 {
82 for (unsigned device = 0; device < 8; ++device) {
83 if (((static_cast<unsigned>(device_set) >> device) & 1U) != 0U) {
84 m_pairs |= uint64_t { static_cast<uint8_t>(runtime_set) } << (device * 8U);
85 }
86 }
87 }
uint64_t m_pairs
One byte per device bit; each byte is the runtime set paired with that device.

References m_pairs, and Target().

Here is the call graph for this function: