Expand description
Minimal ze_loader driver: zeInit, driver walk, device walk,
zeDeviceGetProperties. Enough for the planner; kernel launch lives
in higher layers.
drop(sym) on a libloading::Symbol is intentional — it releases the
borrow on the Library so the next lib.get(...) can proceed. Symbol is
Copy and doesn’t impl Drop, but the borrow lives in its lifetime
parameter, which drop does end. We silence the spurious lint module-wide.
Everything is loaded via libloading so the crate compiles on hosts
without Level Zero installed; the backend simply reports unavailable.
Structs§
- Enumerated
Device - Loaded
- ZeCommand
List Desc - ZeCommand
Queue Desc - ZeContext
Desc - ZeDevice
MemAlloc Desc - ZeDevice
Properties - ZeDevice
Uuid - ZeGroup
Count - ZeHost
MemAlloc Desc - ZeKernel
Desc - ZeModule
Desc
Constants§
- ZE_
COMMAND_ QUEUE_ MODE_ DEFAULT - ZE_
COMMAND_ QUEUE_ PRIORITY_ NORMAL - ZE_
DEVICE_ TYPE_ CPU - ZE_
DEVICE_ TYPE_ FPGA - ZE_
DEVICE_ TYPE_ GPU - ZE_
DEVICE_ TYPE_ MCA - ZE_
DEVICE_ TYPE_ VPU - ZE_
MAX_ DEVICE_ NAME - ZE_
MODULE_ FORMAT_ IL_ SPIRV - ZE_
MODULE_ FORMAT_ NATIVE - ZE_
RESULT_ SUCCESS - ZE_
STRUCTURE_ TYPE_ COMMAND_ LIST_ DESC - ZE_
STRUCTURE_ TYPE_ COMMAND_ QUEUE_ DESC - ZE_
STRUCTURE_ TYPE_ CONTEXT_ DESC - ZE_
STRUCTURE_ TYPE_ DEVICE_ MEM_ ALLOC_ DESC - ZE_
STRUCTURE_ TYPE_ DEVICE_ PROPERTIES - ZE_
STRUCTURE_ TYPE_ HOST_ MEM_ ALLOC_ DESC - ZE_
STRUCTURE_ TYPE_ KERNEL_ DESC - ZE_
STRUCTURE_ TYPE_ MODULE_ DESC
Functions§
Type Aliases§
- ZeCommand
List Append Launch Kernel Fn - ZeCommand
List Append Memory Copy Fn - ZeCommand
List Close Fn - ZeCommand
List Create Fn - ZeCommand
List Destroy Fn - ZeCommand
List Handle - ZeCommand
List Reset Fn - ZeCommand
Queue Create Fn - ZeCommand
Queue Destroy Fn - ZeCommand
Queue Execute Command Lists Fn - ZeCommand
Queue Handle - ZeCommand
Queue Synchronize Fn - ZeContext
Create Fn - ZeContext
Destroy Fn - ZeContext
Handle - ZeDevice
Handle - ZeDriver
Handle - ZeKernel
Create Fn - ZeKernel
Destroy Fn - ZeKernel
Handle - ZeKernel
SetArgument Value Fn - ZeKernel
SetGroup Size Fn - ZeMem
Alloc Device Fn - ZeMem
Alloc Shared Fn - ZeMem
Free Fn - ZeModule
Create Fn - ZeModule
Destroy Fn - ZeModule
Handle - ZeResult