| 11 | } |
| 12 | |
| 13 | void ZeListExecuteCommand::Synchronize() |
| 14 | { |
| 15 | XASSERT(following_fence_ != nullptr, |
| 16 | "following_fence_ is nullptr, EnableSynchronization() should be called first"); |
| 17 | std::unique_lock<std::mutex> lock(fence_mtx_); |
| 18 | if (fence_signaled_) return; |
| 19 | ZE_ASSERT(Driver::FenceHostSynchronize(following_fence_, UINT64_MAX)); |
| 20 | fence_signaled_ = true; |
| 21 | } |
| 22 | |
| 23 | bool ZeListExecuteCommand::Synchronizable() |
| 24 | { |