31 const std::string& graph_buf,
32 int network_dimension)
33 : graph_buf_(graph_buf),
34 network_dimension_(network_dimension),
57 int ret = mvncGetGraphOption(
handle_,
59 reinterpret_cast<void**>(&debug_info),
62 std::string result(debug_info);
71 int ret = mvncGetGraphOption(
handle_,
73 reinterpret_cast<void**>(&time_taken),
76 length /=
sizeof(*time_taken);
79 for (
unsigned int i = 0; i < length; ++i)
95 int ret = mvncAllocateGraph(device_handle,
104 int ret = mvncDeallocateGraph(
handle_);
static void tryToThrowMvncException(int code)
const char * what() const noexcept
std::string getDebugInfo()
void allocate(void *device_handle)
#define ROS_ERROR_STREAM(args)
Graph(const Device::Ptr &device, const std::string &graph_file, int network_dimension)