Default stream needs to be initialized
Change-Id: I5cbf9076bffb51c0e99601393645f443c1658e13
Ta zmiana jest zawarta w:
%! (template.HTML=
Vlad Sytchenko)złożyło 2020-04-13 15:32:35 -04:00
1 rodzic
ff3c449514
złożenie
a9513154c7
2 plików zmienionych
+5
-1
Żadne pliki nie pasują do Twojego wyszukiwania
@@ -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_;
|
||||
}
|
||||
|
||||
@@ -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_;
|
||||
|
||||
Reference in new issue
Zablokuj użytkownika