LevelZero.NET
1.0.0
dotnet add package LevelZero.NET --version 1.0.0
NuGet\Install-Package LevelZero.NET -Version 1.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="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="LevelZero.NET" Version="1.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 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: LevelZero.NET, 1.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@1.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=1.0.0
#tool nuget:?package=LevelZero.NET&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
LevelZero.NET
Managed .NET wrapper for Intel Level Zero GPU compute, with a built-in SPIR-V kernel catalog for swarm optimization, spiking neural networks, and multi-objective algorithms.
Features
- Zero-config GPU access — discover and use Intel GPUs via Level Zero with a clean managed API
- Built-in SPIR-V kernels — pre-compiled kernels for 11 Intel GPU targets (Tiger Lake through Panther Lake)
- Kernel catalog — automatic device detection and kernel resolution with fallback chain
- Native shim embedding —
LevelZeroShim.dll/libLevelZeroShim.soextracted at runtime, no manual setup - High-level kernel wrappers —
FitnessKernel,PSOVelocityKernel,NeuronUpdateKernel,STDPKernel,NBodyKernel, and more
Installation
dotnet add package LevelZero.NET
Quick Start
using LevelZero;
// Check GPU availability
if (LevelZeroRuntime.IsAvailable())
{
var device = LevelZeroRuntime.GetDefaultDevice();
Console.WriteLine($"GPU: {device}");
// Load a SPIR-V module
byte[] spirv = KernelCatalog.GetKernel("fitness_eval");
using var module = device.LoadModule(spirv);
// Allocate shared memory and launch
using var buffer = device.AllocShared<float>(1024);
device.Launch(module, "fitness_eval", workItems: 1024);
}
Supported GPU Targets
| Codename | Architecture | Examples |
|---|---|---|
| tgllp | Gen12 | Intel Iris Xe (11th Gen) |
| dg1 | Gen12 | Intel Iris Xe MAX |
| acm-g10/g11/g12 | Xe-HPG | Intel Arc A-series |
| pvc | Xe-HPC | Intel Data Center GPU Max |
| mtl | Xe-LPG | Intel Core Ultra |
| arl-h | Xe-LPG+ | Intel Arrow Lake |
| bmg-g21 | Xe2 | Intel Arc B-series (Battlemage) |
| lnl-m | Xe2-LPG | Intel Lunar Lake |
| ptl-h | Xe3-LPG | Intel Panther Lake |
Kernel Catalog
The KernelCatalog resolves SPIR-V binaries using this chain:
- Explicit file path
LEVELZERO_SPIRV_DIRenvironment variable- NuGet package content
- Embedded assembly resources
- Fallback to
tgllpdevice target
Publishing
Tag a release to trigger NuGet publishing:
git tag v1.0.0
git push origin v1.0.0
Requires the NUGET_API_KEY secret configured in the repository settings.
License
MIT
| 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.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 87 | 2/16/2026 |