Updated on 2022-03-13 GMT+08:00

Obtaining the Device ID of a Graph

Obtains the ID of the current graph on the device side. This API is defined in graph.h.

Syntax

uint32_t Graph::GetDeviceID();

Return Value

ID of the current graph on the device side

Calling Example

auto graphPtr = Graph::GetInstance(100);
auto deviceId = graphPtr->GetDeviceID();