# Function QnnSystemDlc\_composeGraphs

- Defined in [File QnnSystemDlc.h](https://docs.qualcomm.com/doc/80-63442-10/topic/api-rst_file_include_QNN_System_QnnSystemDlc_h.html#file-include-qnn-system-qnnsystemdlc-h)

## Function Documentation

- [Qnn\_ErrorHandle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/typedef_QnnCommon_8h_1a8e21e7c6a7471103b59098ef81c28570.html#_CPPv417Qnn_ErrorHandle_t) QnnSystemDlc\_composeGraphs([QnnSystemDlc\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/typedef_QnnCommon_8h_1aa806208ef431f9851e86ed0f4f174d27.html#_CPPv421QnnSystemDlc_Handle_t) dlcHandle, const [QnnSystemDlc\_GraphConfigInfo\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/structQnnSystemDlc__GraphConfigInfo__t.html#_CPPv430QnnSystemDlc_GraphConfigInfo_t) \*\*graphConfigs, const uint32\_t numGraphConfigs, [Qnn\_BackendHandle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/typedef_QnnCommon_8h_1aa406469e77ca2c62a1892093d796ce6a.html#_CPPv419Qnn_BackendHandle_t) backend, [Qnn\_ContextHandle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/typedef_QnnCommon_8h_1ae2751b09a1186e90f79e7b89d1903c8f.html#_CPPv419Qnn_ContextHandle_t) context, [QnnInterface\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/structQnnInterface__t.html#_CPPv414QnnInterface_t) backendInterface, [QnnSystemContext\_GraphInfoVersion\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/api-rst_file_include_QNN_System_QnnSystemContext_h.html#_CPPv435QnnSystemContext_GraphInfoVersion_t) graphVersion, [QnnSystemContext\_GraphInfo\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/structQnnSystemContext__GraphInfo__t.html#_CPPv428QnnSystemContext_GraphInfo_t) \*\*graphs, uint32\_t \*numGraphs)

    - A function to compose graphs from a DLC on a particular backend, **backend**, through an backendInterface **backendInterface**. Memory allocated in **graphs** is owned by clients and may be released with calls to free().

- Parameters

    - - **dlcHandle** – **[in]** the DLC to retrieve graphs from
- **graphConfigs** – **[in]** the graph configuration information for a particular graph
- **numGraphConfigs** – **[in]** number of graph configurations
- **backend** – **[in]** the backend on which to compose the graphs
- **context** – **[in]** the context on which to compose the graphs
- **backendInterface** – **[in]** the interface used to compose the graph.
- **graphVersion** – **[in]** version of the graph info structure to be returned
- **graphs** – **[out]** An array of graph information representing what was created with the backend
- **numGraphs** – **[out]** the number of created graphs

- Returns

    - Error code

- QNN\_SUCCESS: Successfully composed graphs
- QNN\_SYSTEM\_DLC\_ERROR\_INVALID\_ARGUMENT: Argument is NULL
- QNN\_COMMON\_ERROR\_MEM\_ALLOC: Error encountered in allocating memory for
- QNN\_SYSTEM\_DLC\_ERROR\_INVALID\_HANDLE: Invalid Dlc handle to free
- QNN\_SYSTEM\_DLC\_ERROR\_UNSUPPORTED\_FEATURE: DLC features not supported

Last Published: Jun 04, 2026