SWDEV-326798 - Changes in stream sync behavior
Change-Id: If6d0b3876a9bf197c7e49273eaa5ca5bfae46d0b
이 커밋은 다음에 포함됨:
1 부모
a69db9b426
커밋
51adec2730
4 파일이 변경됨
+19
-14
검색과 일치하는 파일 없음
@@ -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_;
|
||||
}
|
||||
|
||||
|
||||
새 이슈에서 참조
사용자 차단