SWDEV-326798 - Revert "SWDEV-326798 - Changes in stream sync behavior"

This reverts commit 51adec2730.

Reason for revert: HIP tests on windows fails

Change-Id: I795ed19d76a41e2fd9971414cefa5bd3be45d4bc
Αυτή η υποβολή περιλαμβάνεται σε:
Sourabh Betigeri committed 2023-02-28 02:28:12 -05:00
1 γονέας 51adec2730
υποβολή 08c8972d97
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_;
}