Stream thread-safe checkpoint.
这个提交包含在:
1 父节点
82f57ca610
当前提交
ecd56e1400
2 个文件已更改
+29
-8
没有与搜索条件相匹配的文件
+2
-2
@@ -288,7 +288,7 @@ void ihipStream_t::enqueueBarrier(hsa_queue_t* queue, ihipSignal_t *depSignal)
|
||||
//
|
||||
bool ihipStream_t::preKernelCommand()
|
||||
{
|
||||
_mutex.lock(); // will be unlocked in postKernelCommand
|
||||
_criticalData.lock();// will be unlocked in postKernelCommand
|
||||
|
||||
bool addedSync = false;
|
||||
// If switching command types, we need to add a barrier packet to synchronize things.
|
||||
@@ -323,7 +323,7 @@ void ihipStream_t::postKernelCommand(hc::completion_future &kernelFuture)
|
||||
{
|
||||
_last_kernel_future = kernelFuture;
|
||||
|
||||
_mutex.unlock();
|
||||
_criticalData.unlock(); // paired with lock from preKernelCommand
|
||||
};
|
||||
|
||||
|
||||
|
||||
在新工单中引用
屏蔽一个用户