SWDEV-326798 - Changes in stream sync behavior

Change-Id: If6d0b3876a9bf197c7e49273eaa5ca5bfae46d0b
이 커밋은 다음에 포함됨:
Sourabh Betigeri 작성하고 Aakash Sudhanwa가 2023-02-27 16:48:14 -05:00를 커밋함
1 부모 a69db9b426
커밋 51adec2730
4 파일이 변경됨
+19 -14

검색과 일치하는 파일 없음

+5 -3
파일 보기
@@ -26,7 +26,7 @@
namespace hip {
// ================================================================================================
hip::Stream* Device::NullStream(bool skip_alloc) {
hip::Stream* Device::NullStream(bool skip_alloc, bool wait) {
if (null_stream_ == nullptr && !skip_alloc) {
null_stream_ = new Stream(this, Stream::Priority::Normal, 0, true);
}
@@ -34,8 +34,10 @@ hip::Stream* Device::NullStream(bool skip_alloc) {
if (null_stream_ == nullptr) {
return nullptr;
}
// Wait for all active streams before executing commands on the default
iHipWaitActiveStreams(null_stream_);
if (wait == true) {
// Wait for all active streams before executing commands on the default
iHipWaitActiveStreams(null_stream_);
}
return null_stream_;
}