Default stream needs to be initialized

Change-Id: I5cbf9076bffb51c0e99601393645f443c1658e13


[ROCm/clr commit: a9513154c7]
Este commit está contenido en:
Vlad Sytchenko committed 2020-04-13 15:32:35 -04:00
1 padre 60ec8d6047
commit ba0c6101b0
2 files changed
+5 -1

No files matched your search

+4
Ver fichero
@@ -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_;
}