Default stream needs to be initialized

Change-Id: I5cbf9076bffb51c0e99601393645f443c1658e13
Tá an tiomantas seo le fáil i:
Vlad Sytchenko tiomanta 2020-04-13 15:32:35 -04:00
1 tuismitheoir ff3c449514
tiomantas a9513154c7
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_;
}
+1 -1
Féach ar an gComhad
@@ -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_;