SWDEV-429053 - Add more check for hipStreamLegacy

Signed-off-by: sdashmiz <shadi.dashmiz@amd.com>
Change-Id: Iaf802372b160b09e5e8451074af1731e4f1d410a
此提交包含在:
sdashmiz
2024-05-31 10:09:20 -04:00
提交者 Shadi Dashmiz
父節點 e3114e8f38
當前提交 7257f56c60
+1 -1
查看文件
@@ -235,7 +235,7 @@ const char* ihipGetErrorName(hipError_t hip_error);
hipStreamCaptureStatusActive) { \
hipError_t status = hip::capture##name(stream, ##__VA_ARGS__); \
return status; \
} else if (stream != nullptr && \
} else if (stream != nullptr && stream != hipStreamLegacy && \
reinterpret_cast<hip::Stream*>(stream)->GetCaptureStatus() == \
hipStreamCaptureStatusInvalidated) { \
return hipErrorStreamCaptureInvalidated; \