mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 00:24:58 +08:00
Previously std::once_flag was assigned per map: std::unordered_map<ContextId, std::unique_ptr<SipKernel>> which was incorrect and caused the situation in which SipKernel is allocated only on 1 context and was skipped for other contexts, so we ended up with only one allocation regardless of the number of contexts. This change assigns std::once_flag for each allocated SipKernel. Related-To: NEO-7630 Signed-off-by: Fabian Zwolinski <fabian.zwolinski@intel.com>