| 1299 | } |
| 1300 | |
| 1301 | hipError_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 | |
| 1315 | hipError_t hipGraphAddKernelNode(hipGraphNode_t* pGraphNode, hipGraph_t graph, |
| 1316 | const hipGraphNode_t* pDependencies, size_t numDependencies, |
no outgoing calls
no test coverage detected