SWDEV-326798 - Revert "SWDEV-326798 - Changes in stream sync behavior"
This reverts commit1932e88970. Reason for revert: HIP tests on windows fails Change-Id: I795ed19d76a41e2fd9971414cefa5bd3be45d4bc [ROCm/clr commit:08c8972d97]
This commit is contained in:
1 förälder
1932e88970
incheckning
02a3fcff26
4 files changed
+14
-19
No files matched your search
@@ -26,7 +26,7 @@
|
||||
namespace hip {
|
||||
|
||||
// ================================================================================================
|
||||
hip::Stream* Device::NullStream(bool skip_alloc, bool wait) {
|
||||
hip::Stream* Device::NullStream(bool skip_alloc) {
|
||||
if (null_stream_ == nullptr && !skip_alloc) {
|
||||
null_stream_ = new Stream(this, Stream::Priority::Normal, 0, true);
|
||||
}
|
||||
@@ -34,10 +34,8 @@ hip::Stream* Device::NullStream(bool skip_alloc, bool wait) {
|
||||
if (null_stream_ == nullptr) {
|
||||
return nullptr;
|
||||
}
|
||||
if (wait == true) {
|
||||
// Wait for all active streams before executing commands on the default
|
||||
iHipWaitActiveStreams(null_stream_);
|
||||
}
|
||||
// Wait for all active streams before executing commands on the default
|
||||
iHipWaitActiveStreams(null_stream_);
|
||||
return null_stream_;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user