SWDEV-444767 - Fix graph tests for context change between Inst & launch with DEBUG_CLR_GRAPH_PACKET_CAPTURE

When graph is Instantiate on device 0 graph and launch on device1 switch to command creation and enqueue during launch.

Change-Id: Ied34dc99b2a776130d1354ed3830c6ccab9068e4


[ROCm/clr commit: 7d09e1abed]
This commit is contained in:
Anusha GodavarthySurya
2024-02-14 17:02:31 +00:00
parent 97ad1412ea
commit 80887e8559
3 changed files with 14 additions and 2 deletions
+3 -1
View File
@@ -42,7 +42,9 @@ inline hipError_t ihipGraphUpload(hipGraphExec_t graphExec, hipStream_t stream)
if (!hip::isValid(stream)) {
return hipErrorContextIsDestroyed;
}
if (!hip::GraphExec::isGraphExecValid(reinterpret_cast<hip::GraphExec*>(graphExec))) {
return hipErrorInvalidValue;
}
return hipSuccess;
}