17 constexpr char const* getFormatString(std::uint32_t format)
noexcept
26 default:
return "UNKNOWN";
30 constexpr char const* getPayloadLocationString(std::uint32_t payloadLocation)
noexcept
32 switch (payloadLocation)
36 default:
return "UNKNOWN";
45 auto const span = uuids::span<std::uint8_t,
sizeof info.
config.
common.
id>{
47 auto const id = uuids::uuid(span);
48 os <<
"- Flow [" << uuids::to_string(
id) <<
']' <<
'\n'
49 <<
'\t' << fmt::format(
"{: >20}: {}",
"Version", info.
version) <<
'\n'
50 <<
'\t' << fmt::format(
"{: >20}: {}",
"Struct size", info.
size) <<
'\n'
51 <<
'\t' << fmt::format(
"{: >20}: {}",
"Format", getFormatString(info.
config.
common.
format)) <<
'\n'
58 <<
'\t' << fmt::format(
"{: >20}: {:0>8x}",
"Flags", info.
config.
common.
flags) <<
'\n';
75 <<
'\t' << fmt::format(
"{: >20}: {}",
"Head index", info.
runtime.
headIndex) <<
'\n'
MXL_EXPORT std::ostream & operator<<(std::ostream &os, mxlFlowInfo const &info)
@ MXL_PAYLOAD_LOCATION_HOST_MEMORY
@ MXL_PAYLOAD_LOCATION_DEVICE_MEMORY
struct mxlFlowInfo_t mxlFlowInfo
uint32_t maxSyncBatchSizeHint
uint32_t maxCommitBatchSizeHint
uint32_t eventPayloadSize
mxlCommonFlowConfigInfo common
mxlDiscreteFlowConfigInfo discrete
mxlContinuousFlowConfigInfo continuous
mxlEventFlowConfigInfo event
Event queue geometry when common.format is MXL_DATA_FORMAT_EVENT.
mxlFlowRuntimeInfo runtime