llvm-c166/offload/plugins-nextgen/level_zero
Łukasz Plewa e935676203
[offload] Add context parameter to olCreateQueue (#213057)
Second patch in the context series.

Outstanding-queue bookkeeping (queues destroyed while still busy) moves
from ol_device_impl_t to ol_context_impl_t, keyed by device. This keeps
backend queue resources from being reused across native contexts and
lets olDestroyContext drain everything it owns.

On the Level Zero side, LevelZeroPluginContextTy owns a ze_context and
an L0QueueCacheTy pooling idle queues per device bound to that
ze_context. L0ContextTy holds a DefaultUserCtx used by the libomptarget
path when no user context is set on the async info. Queue creation,
command-list creation and initAsyncInfoImpl all thread the plugin
context through so queues are bound to the right ze_context.

Assisted-by: Claude

---------

Co-authored-by: blazej-smorawski <blazej.smorawski@intel.com>
2026-08-13 17:29:52 +02:00
..
dynamic_l0 Revert "[offload] Fix compatibility for level_zero 25.22.33944- #2142… (#216010) 2026-08-13 13:25:32 +02:00
include [offload] Add context parameter to olCreateQueue (#213057) 2026-08-13 17:29:52 +02:00
src [offload] Add context parameter to olCreateQueue (#213057) 2026-08-13 17:29:52 +02:00
CMakeLists.txt