Function QnnDevice_getInfo

Function Documentation

Qnn_ErrorHandle_t QnnDevice_getInfo(Qnn_DeviceHandle_t device, const QnnDevice_PlatformInfo_t **platformInfo)

A function to get platform info associated with a device handle.

Parameters
  • device[in] A device handle.

  • platformInfo[out] Information about the platform. Memory for this information is owned and managed by QNN backend.

Returns

Error code:

  • QNN_SUCCESS: no error is encountered

  • QNN_DEVICE_ERROR_INVALID_HANDLE: device is not a valid handle

  • QNN_DEVICE_ERROR_INVALID_ARGUMENT: platformInfo is NULL

  • QNN_DEVICE_ERROR_UNSUPPORTED_FEATURE: API is not supported

Note

Use corresponding API through QnnInterface_t.