Default stream needs to be initialized

Change-Id: I5cbf9076bffb51c0e99601393645f443c1658e13


[ROCm/hip commit: 5d8d752da5]
Tá an tiomantas seo le fáil i:
Vlad Sytchenko tiomanta 2020-04-13 15:32:35 -04:00
1 tuismitheoir f64137d2b0
tiomantas c42667abfa
2 comhad athraithe
+5 -1

Níor tháinig aon chomhaid le do chuardach

+4
Féach ar an gComhad
@@ -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_;
}