SWDEV-502532 - Exit graph launch in case of empty graph.

Change-Id: Ifb6ab14ca6810cbc1c9e38c59d1d9e7d367358d9
Tá an tiomantas seo le fáil i:
Jaydeep Patel
2024-12-05 07:35:21 +00:00
tiomanta ag Jaydeepkumar Patel
tuismitheoir e80442fdbf
tiomantas 0d4823ff88
+3
Féach ar an gComhad
@@ -1497,6 +1497,9 @@ hipError_t hipGraphLaunch_common(hip::GraphExec* graphExec, hipStream_t stream)
if (graphExec == nullptr || !hip::GraphExec::isGraphExecValid(graphExec)) {
return hipErrorInvalidValue;
}
if (graphExec->clonedNodes_.empty()) {
return hipSuccess;
}
if (!hip::isValid(stream)) {
return hipErrorContextIsDestroyed;
}