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
Этот коммит содержится в:
German authored and Maneesh Gupta committed 2023-04-05 16:37:49 +00:00
1 родитель 0f975e6e93
Коммит 1e88d2c52f
7 files changed
+49 -71

No files matched your search

+3 -3
Просмотреть файл
@@ -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_);
}
}