SWDEV-429053 - Add check for StreamLegacy

Signed-off-by: sdashmiz <shadi.dashmiz@amd.com>
Change-Id: I402185a3b81935aaa1c8c4963407b8de21c72d8a
This commit is contained in:
sdashmiz
2024-01-12 10:51:14 -05:00
committed by Maneesh Gupta
orang tua 4f7830c998
melakukan 627ccfa502
7 mengubah file dengan 29 tambahan dan 24 penghapusan
+2 -2
Melihat File
@@ -230,7 +230,7 @@ const char* ihipGetErrorName(hipError_t hip_error);
#define STREAM_CAPTURE(name, stream, ...) \
hip::getStreamPerThread(stream); \
if (stream != nullptr && \
if (stream != nullptr && stream != hipStreamLegacy && \
reinterpret_cast<hip::Stream*>(stream)->GetCaptureStatus() == \
hipStreamCaptureStatusActive) { \
hipError_t status = hip::capture##name(stream, ##__VA_ARGS__); \
@@ -242,7 +242,7 @@ const char* ihipGetErrorName(hipError_t hip_error);
}
#define PER_THREAD_DEFAULT_STREAM(stream) \
if (stream == nullptr) { \
if (stream == nullptr || stream == hipStreamLegacy) { \
stream = getPerThreadDefaultStream(); \
}