enum ncDeviceOption_t

Info Value
Header mvnc.h
Version 2.0
See also struct ncDeviceHandle_t, ncDeviceGetOption(), ncDeviceSetOption()

Overview

The ncDeviceOption_t enumeration defines neural compute device options that can be read with ncDeviceGetOption() or set with ncDeviceSetOption().

Constant Option Type Possible Values Description
NC_RO_DEVICE_THERMAL_STATS float[ ] Any Device temperatures in degrees Celsius. These temperatures are the maximum temperatures for the last NC_THERMAL_BUFFER_SIZE seconds. The size of this array is also NC_THERMAL_BUFFER_SIZE.
NC_RO_THERMAL_THROTTLING_LEVEL int 0, 1, 2 0: No limit reached.
1: Lower guard temperature threshold of chip sensor reached; short throttling time is in action between inferences to protect the device.
2: Upper guard temperature of chip sensor reached; long throttling time is in action between inferences to protect the device.
NC_RO_DEVICE_STATE int Values in the ncDeviceState_t enumeration The state of the device and the associated ncDeviceHandle_t struct.
NC_RO_DEVICE_CURRENT_MEMORY_USED int Unbounded positive int The current memory in use on the device in bytes. This value divided by NC_RO_DEVICE_MEMORY_SIZE is the percent of memory in use.
NC_RO_DEVICE_MEMORY_SIZE int Unbounded positive int The total memory available on the device in bytes.
NC_RO_DEVICE_MAX_FIFO_NUM int Unbounded positive int The maximum number of FIFOs that can be allocated for the device.
NC_RO_DEVICE_ALLOCATED_FIFO_NUM int Unbounded positive int The number of FIFOs currently allocated for the device.
NC_RO_DEVICE_MAX_GRAPH_NUM int Unbounded positive int The maximum number of graphs that can be allocated for the device.
NC_RO_ALLOCATED_GRAPH_NUM int Unbounded positive int The number of graphs currently allocated for the device.
NC_RO_DEVICE_OPTION_CLASS_LIMIT int Unbounded positive int The highest option class supported.
NC_RO_DEVICE_FW_VERSION unsigned int[4] [major, minor, hardware type, build number] The version of the firmware currently running on the device.
NC_RO_DEVICE_DEBUG_INFO char[ ] Debug info Not yet implemented.

A null-terminated character array containing more detailed debug info when the result of a function call was NC_MYRIAD_ERROR. The maximum size of this array is NC_DEBUG_BUFFER_SIZE.
NC_RO_DEVICE_MVTENSOR_VERSION unsigned int[2] [major, minor] The version of the mvtensor library that was linked with the API.
NC_RO_DEVICE_NAME char[ ] Device name A null-terminated character array containing the internal name of the device. The maximum size of this array is NC_MAX_NAME_SIZE.
NC_RO_DEVICE_MAX_EXECUTORS_NUM int Unbounded positive int Maximum number of executor threads supported on the device. The graph option NC_RW_GRAPH_EXECUTORS_NUM should not exceed this maximum value.
NC_RO_DEVICE_HW_VERSION int Values in the ncDeviceHwVersion_t enumeration The hardware version of the device.

Notes

  • Options prefixed with ‘NC_RW’ have read/write permission and are both gettable and settable.
  • Options prefixed with ‘NC_RO’ have read-only permission and are only gettable.