Expand description
Level Zero context + command queue / list scaffold.
Resolves one driver + device by ordinal, creates a ze_context on
it, a compute ze_command_queue, and a default ze_command_list.
Higher layers will allocate memory and kernels on top; this module
is intentionally the minimum to reach a dispatchable state.
Structs§
- Context
- Compute context bound to one Level Zero device: driver, device, context, command queue and command list.
- Device
Buffer - Device or shared allocation from
zeMemAllocDeviceorzeMemAllocShared, freed withzeMemFreeon drop. - Kernel
- Kernel created with
zeKernelCreate, destroyed on drop. - Module
- Module created with
zeModuleCreate, destroyed on drop. - Pipeline
- A SPIR-V module and one kernel from it, kept together — Level Zero destroys
the kernel before the module, and the unified
ComputeDevicetrait hands back a single pipeline object.kernelis declared first so it drops first.