LevelZero.NET
2.0.0
dotnet add package LevelZero.NET --version 2.0.0
NuGet\Install-Package LevelZero.NET -Version 2.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="LevelZero.NET" Version="2.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="LevelZero.NET" Version="2.0.0" />
<PackageReference Include="LevelZero.NET" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add LevelZero.NET --version 2.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: LevelZero.NET, 2.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package LevelZero.NET@2.0.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=LevelZero.NET&version=2.0.0
#tool nuget:?package=LevelZero.NET&version=2.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
HFLabs.LevelZero.NET (v2.0)
HFLabs.LevelZero.NET provides high-performance, zero-allocation managed .NET bindings and runtime abstractions for the Intel oneAPI Level Zero API (ze_api.h).
It enables C# developers to allocate shared/device GPU memory, record and dispatch low-latency command lists, load pre-compiled .zebin / SPIR-V compute kernels, and orchestrate heterogeneous hardware acceleration without writing C++ shims.
🚀 Key Features
- Zero-Allocation Managed Abstractions: Clean, safe C# wrappers over unmanaged Level Zero driver handles, command queues, and shared memory allocations (
SharedBuffer<T>). - Multi-Architecture Native Support: Pre-compiled
.zebinmachine code catalogs for 11 Intel GPU device targets:tgllp(Tiger Lake LP / Iris Xe)dg1(Iris Xe MAX)acm-g10,acm-g11,acm-g12(Intel Arc A-Series / Alchemist)mtl(Meteor Lake / Core Ultra 100 series Arc iGPU)arl-h(Arrow Lake - H / Core Ultra 200 series)lnl-m(Lunar Lake - M / Core Ultra 200V series Xe2)bmg-g21(Intel Arc B-Series / Battlemage)ptl-h(Panther Lake - H / Xe3)pvc(Ponte Vecchio / Intel Data Center GPU Max 1100 & 1550)
- High-Performance Memory Management: Native USM (Unified Shared Memory) support for host, device, and shared buffer allocations with zero-copy memory transfers.
- Transformer & Compute Kernel Integration: Out-of-the-box support for accelerated matrix multiplication (GEMM), attention mechanisms (SDPA), normalization (RMSNorm), and evolutionary swarm computing.
💻 Code Example: Device Discovery & Kernel Dispatch
using LevelZero;
using LevelZero.Kernels;
// 1. Initialize Runtime and Default Intel GPU
using ComputeDevice device = LevelZeroRuntime.GetDefaultDevice();
Console.WriteLine($"Discovered GPU: {device.Name}");
// 2. Allocate Unified Shared Memory (USM)
float[] hostData = new float[1024];
using SharedBuffer<float> buffer = device.AllocShared(hostData);
// 3. Load pre-compiled SPIR-V or native .zebin kernel module
byte[] kernelBytes = File.ReadAllBytes("my_kernel.zebin");
using ComputeModule module = device.LoadModule(kernelBytes, LevelZeroModuleFormat.Zebin);
// 4. Dispatch kernel across compute units
// (Memory is unified; results are immediately accessible on CPU upon queue synchronization)
buffer.CopyTo(hostData);
📦 Related Packages
HFLabs.LevelZero.Kernels.<target>— Dedicated binary packages containing pre-compiled.zebinand.spvmodules for specific Intel architectures (e.g.HFLabs.LevelZero.Kernels.tgllp,HFLabs.LevelZero.Kernels.acm-g10).HFLabs.ML.Agentic— Zero-dependency multi-agent orchestration, MCP, and A2A protocols for .NET.l0llm— Self-contained command line LLM inference engine and OpenAI-compatible REST server.
📄 Licensing & Commercial Use
- Community / Research License: Free for open-source development, academic research, and evaluation.
- Commercial License: Required for embedding in proprietary or commercial desktop/server software. Contact HFLabs for commercial licensing and custom kernel engineering services.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.