From a6371fb69dc87a65b766a2a274e6cf25459b8975 Mon Sep 17 00:00:00 2001 From: Liam Date: Thu, 16 Jun 2022 23:42:39 -0400 Subject: core: fix initialization in single core, sync GPU mode --- src/core/cpu_manager.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/core/cpu_manager.h') diff --git a/src/core/cpu_manager.h b/src/core/cpu_manager.h index 681bdaf19..f0751fc58 100644 --- a/src/core/cpu_manager.h +++ b/src/core/cpu_manager.h @@ -43,6 +43,10 @@ public: is_async_gpu = is_async; } + void OnGpuReady() { + gpu_barrier->Sync(); + } + void Initialize(); void Shutdown(); @@ -81,6 +85,7 @@ private: std::jthread host_thread; }; + std::unique_ptr gpu_barrier{}; std::array core_data{}; bool is_async_gpu{}; -- cgit v1.2.3