Default stream needs to be initialized

Change-Id: I5cbf9076bffb51c0e99601393645f443c1658e13


[ROCm/hip commit: 5d8d752da5]
Этот коммит содержится в:
Vlad Sytchenko
2020-04-10 22:49:13 -04:00
родитель f64137d2b0
Коммит c42667abfa
2 изменённых файлов: 5 добавлений и 1 удалений
+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_;
}
+1 -1
Просмотреть файл
@@ -85,7 +85,7 @@ namespace hip {
/// VDI context
amd::Context* context_;
/// VDI host queue for default streams
amd::HostQueue* defaultStream_;
amd::HostQueue* defaultStream_ = nullptr;
/// Device's ID
/// Store it here so we don't have to loop through the device list every time
int deviceId_;