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

Change-Id: Ifb6ab14ca6810cbc1c9e38c59d1d9e7d367358d9
Этот коммит содержится в:
Jaydeep Patel authored and Jaydeepkumar Patel committed 2024-12-07 12:27:53 -05:00
1 родитель e80442fdbf
Коммит 0d4823ff88
1 file changed
+3
+3
Просмотреть файл
@@ -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;
}