Default stream needs to be initialized

Change-Id: I5cbf9076bffb51c0e99601393645f443c1658e13


[ROCm/hip commit: 5d8d752da5]
Цей коміт міститься в:
Vlad Sytchenko committed 2020-04-13 15:32:35 -04:00
1 джерело f64137d2b0
коміт c42667abfa
2 files changed
+5 -1

No files matched your search

+4
Переглянути файл
@@ -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_;
}