core: fix initialization in single core, sync GPU mode
This commit is contained in:
parent
a33e7c13fa
commit
a6371fb69d
4 changed files with 13 additions and 0 deletions
|
@ -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<Common::Barrier> gpu_barrier{};
|
||||
std::array<CoreData, Core::Hardware::NUM_CPU_CORES> core_data{};
|
||||
|
||||
bool is_async_gpu{};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue