Use the context variant of getNullStream
Do not create a new queue to call finish in hipFree if none was
created earlier elsewhere.
Change-Id: I87bb191e6b186ddbe607ab29d11e3ae5bc2ac8e6
[ROCm/hip commit: 631fd65be4]
这个提交包含在:
1 父节点
c8bce5553d
当前提交
afbb96f6b6
2 个文件已更改
+6
-2
没有与搜索条件相匹配的文件
@@ -103,6 +103,7 @@ amd::HostQueue* getNullStream(Device& dev) {
|
||||
}
|
||||
return stream->second;
|
||||
}
|
||||
|
||||
amd::HostQueue* getNullStream(amd::Context& ctx) {
|
||||
for (auto& it : g_nullStreams) {
|
||||
if (it.first->asContext() == &ctx) {
|
||||
|
||||
在新工单中引用
屏蔽一个用户