Default stream needs to be initialized
Change-Id: I5cbf9076bffb51c0e99601393645f443c1658e13
[ROCm/hip commit: 5d8d752da5]
This commit is contained in:
1 parent
f64137d2b0
commit
c42667abfa
2 file changed
+5
-1
No files matched your search
@@ -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_;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user