SWDEV-380703 - sync all streams individually

Avoid syncing blocking streams with the default stream,
since that introduces extra command dependencies and
doesn't allow to destroy memory after last submission

Change-Id: I618e9bd2091c4cf9157125612d8c4759030c5a80


[ROCm/clr commit: 1e88d2c52f]
This commit is contained in:
German
2023-03-22 19:14:15 -04:00
committad av Maneesh Gupta
förälder 235eb22491
incheckning 56dedad98b
7 ändrade filer med 49 tillägg och 71 borttagningar
+3 -3
Visa fil
@@ -26,8 +26,8 @@
namespace hip {
// ================================================================================================
hip::Stream* Device::NullStream(bool skip_alloc) {
if (null_stream_ == nullptr && !skip_alloc) {
hip::Stream* Device::NullStream() {
if (null_stream_ == nullptr) {
null_stream_ = new Stream(this, Stream::Priority::Normal, 0, true);
}
@@ -138,7 +138,7 @@ Device::~Device() {
}
if (null_stream_!= nullptr) {
null_stream_->release();
hip::Stream::Destroy(null_stream_);
}
}