Class BenchmarkOut

Inheritance Relationships

Base Types

Class Documentation

class BenchmarkOut : public dai::DeviceNodeCRTP<DeviceNode, BenchmarkOut, BenchmarkOutProperties>, public dai::HostRunnable

Public Functions

void setNumMessagesToSend(int num)

Sets number of messages to send, by default send messages indefinitely

Parameters:

num – number of messages to send

void setFps(float fps)

Set FPS at which the node is sending out messages. 0 means as fast as possible

void setRunOnHost(bool runOnHost)

Specify whether to run on host or device By default, the node will run on device.

virtual bool runOnHost() const override

Check if the node is set to run on host

virtual void run() override
inline DeviceNodeCRTP()
inline DeviceNodeCRTP(const std::shared_ptr<Device> &device)
inline DeviceNodeCRTP(std::unique_ptr<Properties> props)
inline DeviceNodeCRTP(std::unique_ptr<Properties> props, bool confMode)
inline DeviceNodeCRTP(const std::shared_ptr<Device> &device, std::unique_ptr<Properties> props, bool confMode)

Public Members

Output out = {*this, {"out", DEFAULT_GROUP, {{{DatatypeEnum::Buffer, true}}}}}

Send messages out as fast as possible

Input input = {*this, {"input", DEFAULT_GROUP, true, 1, {{{DatatypeEnum::Buffer, true}}}, DEFAULT_WAIT_FOR_MESSAGE}}

Message that will be sent repeatedly

Public Static Attributes

static constexpr const char *NAME = "BenchmarkOut"