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:
committad av
Maneesh Gupta
förälder
235eb22491
incheckning
56dedad98b
@@ -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_);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Referens i nytt ärende
Block a user