SWDEV-429053 - Add check for StreamLegacy
Signed-off-by: sdashmiz <shadi.dashmiz@amd.com> Change-Id: I402185a3b81935aaa1c8c4963407b8de21c72d8a
This commit is contained in:
committed by
Maneesh Gupta
orang tua
4f7830c998
melakukan
627ccfa502
@@ -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(); \
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user