Skip to main content

Module compute

Module compute 

Source
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.
DeviceBuffer
Device or shared allocation from zeMemAllocDevice or zeMemAllocShared, freed with zeMemFree on 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 ComputeDevice trait hands back a single pipeline object. kernel is declared first so it drops first.