SWDEV-502532 - Exit graph launch in case of empty graph.
Change-Id: Ifb6ab14ca6810cbc1c9e38c59d1d9e7d367358d9
[ROCm/clr commit: 0d4823ff88]
This commit is contained in:
committed by
Jaydeepkumar Patel
orang tua
dc3ca8aab7
melakukan
a7406bbd5d
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user