Function QnnDevice_getPlatformInfo¶
Defined in File QnnDevice.h
Function Documentation¶
-
Qnn_ErrorHandle_t QnnDevice_getPlatformInfo(Qnn_LogHandle_t logger, const QnnDevice_PlatformInfo_t **platformInfo)¶
A function to get the collection of devices and cores that a QNN backend is able to recognize and communicate with. Memory is owned by the backend and deallocated with a call to QnnDevice_freePlatformInfo().
- Parameters
logger – [in] A handle to the logger, use NULL handle to disable logging. QnnDevice doesn’t manage the lifecycle of logger and must be freed by using QnnLog_free().
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_ARGUMENT: platformInfo is NULL
QNN_DEVICE_ERROR_UNSUPPORTED_FEATURE: API is not supported
QNN_DEVICE_ERROR_MEM_ALLOC: failure in allocating memory for platformInfo
QNN_DEVICE_ERROR_INVALID_HANDLE: invalid logger
Note
This function may not be supported for offline preparation
Note
Use corresponding API through QnnInterface_t.