MCPcopy Create free account
hub / github.com/ROCm/clr / hipGraphDestroy

Function hipGraphDestroy

hipamd/src/hip_graph.cpp:1301–1313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1299}
1300
1301hipError_t hipGraphDestroy(hipGraph_t graph) {
1302 HIP_INIT_API(hipGraphDestroy, graph);
1303 if (graph == nullptr) {
1304 HIP_RETURN(hipErrorInvalidValue);
1305 }
1306 hip::Graph* g = reinterpret_cast<hip::Graph*>(graph);
1307 // if graph is not valid its destroyed already
1308 if (!hip::Graph::isGraphValid(g)) {
1309 HIP_RETURN(hipErrorIllegalState);
1310 }
1311 delete g;
1312 HIP_RETURN(hipSuccess);
1313}
1314
1315hipError_t hipGraphAddKernelNode(hipGraphNode_t* pGraphNode, hipGraph_t graph,
1316 const hipGraphNode_t* pDependencies, size_t numDependencies,

Calls

no outgoing calls

Tested by

no test coverage detected