Default stream needs to be initialized

Change-Id: I5cbf9076bffb51c0e99601393645f443c1658e13


[ROCm/hip commit: 5d8d752da5]
This commit is contained in:
Vlad Sytchenko committed 2020-04-13 15:32:35 -04:00
1 parent f64137d2b0
commit c42667abfa
2 file changed
+5 -1

No files matched your search

+4
View File
@@ -30,6 +30,10 @@ amd::HostQueue* Device::defaultStream() {
defaultStream_ = new amd::HostQueue(*asContext(), *devices()[0], properties,
amd::CommandQueue::RealTimeDisabled,
amd::CommandQueue::Priority::Normal);
if ((defaultStream_ == nullptr) ||
!defaultStream_->create()) {
return nullptr;
}
}
return defaultStream_;
}