Hardware & Native Substrate Production Runtime (.NET 10 • C ABI) 418 Pre-Compiled Kernels (38 × 11 Targets)

LevelZero.NET &
Kernel Atlas

Intel GPU compute from .NET, one DLL, no driver SDK to install.

LevelZero.NET is a high-performance .NET wrapper for Intel Level Zero GPU compute, carrying a verified catalog of 38 pre-built compute kernels for the workloads that recur across HF Labs' own systems: swarm optimization, spiking neural networks, local LLM inference, and GraphRAG knowledge ranking. Everything ships in a single DLL: managed API, an HFLabs-authored native C ABI shim, and 418 pre-compiled kernel modules (38 distinct kernels compiled for each of 11 Intel GPU targets, from 11th-gen Iris Xe through Battlemage and Panther Lake). You still need Intel's own Level Zero driver on the target machine, but nothing else. The vendor loader itself is not redistributed.

One Single DLL Deployment Footprint Managed API, native shim & embedded pre-built kernels in one assembly
418 Kernel Binaries Precompiled Modules 38 distinct OpenCL C kernels precompiled across 11 Intel GPU hardware targets (38 × 11 = 418)
38 Verified Kernels Kernel Atlas Hardware tiles across Swarm (15), LLM (15), SNN (3) & Ranker / RAG (5)
Unified Shared Memory Memory Substrate Zero-copy SharedBuffer<T> exposed directly as typed Span<T>
Auto-Probing + Override Target Detection DeviceCapabilityDetector selects hardware target automatically with runtime pin support
Zero Boilerplate

Immediate Execution, Typed Span<T> Memory

ComputeDevice handles driver initialization, context, queue and command-list setup for you. SharedBuffer<T> wraps unified shared memory allocations behind a typed Span<T>, so kernel I/O reads like ordinary array access.

⚙️
Automatic Initialization & Teardown: Direct driver discovery and context cleanup via standard .NET IDisposable patterns.
⚡
Zero-Copy Memory Transfers: Unified Shared Memory (USM) pointers mapped straight into high-performance managed spans.
🎯
Automatic Hardware Target Detection: DeviceCapabilityDetector probes installed Intel silicon and dispatches the exact matching precompiled binary automatically.
OptimizationKernelUsage.cs
using var device = LevelZeroRuntime.GetDefaultDevice();
using var fitness = FitnessKernel.Create(device);

// Execute 1,000 10-dimensional particle fitness evaluations in parallel on Intel GPU
float[] results = fitness.Evaluate(positions, count: 1000, dimensions: 10);
HW-Accelerated SPIR-V Intel Level Zero Driver

LEVEL ZERO KERNEL ATLAS

38 verified compute kernels — LevelZero.NET Kernel Catalog (HFLabs)

SWARM / OPTIMIZATION #01

ACO TRANSITION

SOURCE: aco_transition.cl • KERNEL: aco_transition
Inspect Kernel Spec →
SWARM / OPTIMIZATION #02

CMA-ES COVARIANCE UPDATE

SOURCE: cma_es_covariance.cl • KERNEL: cma_covariance_update
Inspect Kernel Spec →
SWARM / OPTIMIZATION #03

DE MUTATION

SOURCE: de_mutation.cl • KERNEL: de_mutation
Inspect Kernel Spec →
SWARM / OPTIMIZATION #04

DOMINANCE MATRIX

SOURCE: dominance_matrix.cl • KERNEL: dominance_matrix
Inspect Kernel Spec →
SWARM / OPTIMIZATION #05

EXCHANGE WEIGHTS

SOURCE: exchange_weights.cl • KERNEL: exchange_weights
Inspect Kernel Spec →
SWARM / OPTIMIZATION #06

FIREFLY ATTRACTION

SOURCE: firefly_attraction.cl • KERNEL: firefly_attraction
Inspect Kernel Spec →
SWARM / OPTIMIZATION #07

FITNESS EVALUATION

SOURCE: fitness_eval.cl • KERNEL: fitness_eval
Inspect Kernel Spec →
SWARM / OPTIMIZATION #08

ISD - DISTANCES

SOURCE: isd_distances.cl • KERNEL: isd_distances
Inspect Kernel Spec →
SWARM / OPTIMIZATION #09

MONTE CARLO HYPERVOLUME

SOURCE: mc_hypervolume.cl • KERNEL: mc_hypervolume
Inspect Kernel Spec →
SWARM / OPTIMIZATION #10

N-BODY REPULSION

SOURCE: nbody_repulsion.cl • KERNEL: nbody_repulsion
Inspect Kernel Spec →
SWARM / OPTIMIZATION #11

PAIRWISE DISTANCE

SOURCE: pairwise_distance.cl • KERNEL: pairwise_distance
Inspect Kernel Spec →
SWARM / OPTIMIZATION #12

PIXEL WORKER PIPE

SOURCE: pixel_worker_pipe.cl • KERNEL: pixel_worker_pipe
Inspect Kernel Spec →
SWARM / OPTIMIZATION #13

PSO VELOCITY

SOURCE: pso_velocity.cl • KERNEL: pso_velocity_update
Inspect Kernel Spec →
SWARM / OPTIMIZATION #14

BENCHMARK FITNESS SUITE

SOURCE: benchmark_suite.cl • KERNEL: benchmark_suite
Inspect Kernel Spec →
SWARM / OPTIMIZATION #15

TILE PLACEMENT (NUMA)

SOURCE: tile_placement_numa.cl • KERNEL: tile_placement_numa
Inspect Kernel Spec →
LLM INFERENCE #16

EMBEDDING LOOKUP

SOURCE: embedding_lookup.cl • KERNEL: embedding_lookup
Inspect Kernel Spec →
LLM INFERENCE #17

RMSNORM FUSED

SOURCE: rmsnorm_fused.cl • KERNEL: rmsnorm_fused
Inspect Kernel Spec →
LLM INFERENCE #18

GEMM (TQLLP)

SOURCE: gemm_tqllp.cl • KERNEL: gemm_tqllp
Inspect Kernel Spec →
LLM INFERENCE #19

ROPE FUSED

SOURCE: rope_fused.cl • KERNEL: rope_fused
Inspect Kernel Spec →
LLM INFERENCE #20

SWIGLU ACTIVATION

SOURCE: swiglu_activation.cl • KERNEL: swiglu_activation
Inspect Kernel Spec →
LLM INFERENCE #21

FUSED SDPA (ATTENTION)

SOURCE: fused_sdpa.cl • KERNEL: fused_sdpa_attention
Inspect Kernel Spec →
LLM INFERENCE #22

FUSED SDPA PREFILL

SOURCE: fused_sdpa_prefill.cl • KERNEL: fused_sdpa_prefill
Inspect Kernel Spec →
LLM INFERENCE #23

LOGITS SAMPLE

SOURCE: logits_sample.cl • KERNEL: logits_sample
Inspect Kernel Spec →
LLM INFERENCE #24

BIAS / ADD INPLACE

SOURCE: bias_add_inplace.cl • KERNEL: bias_add_inplace
Inspect Kernel Spec →
LLM INFERENCE #25

KV CACHE STORE

SOURCE: kv_cache_store.cl • KERNEL: kv_cache_store
Inspect Kernel Spec →
LLM INFERENCE #26

COPY SLICE

SOURCE: copy_slice.cl • KERNEL: copy_slice
Inspect Kernel Spec →
LLM INFERENCE #27

SIGMOID GATE MUL

SOURCE: sigmoid_gate_mul.cl • KERNEL: sigmoid_gate_mul
Inspect Kernel Spec →
LLM INFERENCE #28

DEPTHWISE CONV1D + SSU

SOURCE: depthwise_conv1d_ssu.cl • KERNEL: depthwise_conv1d_ssu
Inspect Kernel Spec →
LLM INFERENCE #29

GATED DELTA RULE

SOURCE: gated_delta_rule.cl • KERNEL: gated_delta_rule
Inspect Kernel Spec →
LLM INFERENCE #30

QUANTIZE ACTIVATIONS (Q8)

SOURCE: quantize_activations.cl • KERNEL: quantize_activations_q8
Inspect Kernel Spec →
SPIKING / SNN #31

SNN CORRELATION

SOURCE: snn_correlation.cl • KERNEL: snn_correlation
Inspect Kernel Spec →
SPIKING / SNN #32

SNN NEURON UPDATE

SOURCE: snn_neuron_update.cl • KERNEL: snn_neuron_update
Inspect Kernel Spec →
SPIKING / SNN #33

STDP PLASTICITY

SOURCE: stdp_plasticity.cl • KERNEL: stdp_plasticity
Inspect Kernel Spec →
RANKER / RAG / CHAINBOOST #34

RANKER PREP SCORES

SOURCE: ranker_prep_scores.cl • KERNEL: ranker_prep_scores
Inspect Kernel Spec →
RANKER / RAG / CHAINBOOST #35

GRAPHRAG VECTOR SEARCH

SOURCE: graphrag_vector_search.cl • KERNEL: graphrag_vector_search
Inspect Kernel Spec →
RANKER / RAG / CHAINBOOST #36

CHAIN BOOST ACCUMULATE

SOURCE: chain_boost_accumulate.cl • KERNEL: chain_boost_accumulate
Inspect Kernel Spec →
RANKER / RAG / CHAINBOOST #37

HYPERGRAPH SCORE

SOURCE: hypergraph_score.cl • KERNEL: hypergraph_score
Inspect Kernel Spec →
RANKER / RAG / CHAINBOOST #38

SCORE KERNEL

SOURCE: score_kernel.cl • KERNEL: score_kernel
Inspect Kernel Spec →
Dynamic Hardware Routing

Auto Device Detection, with Manual Override

DeviceCapabilityDetector probes the installed GPU and picks the matching kernel target automatically, so FitnessKernel.Create(device) just works. When you need to pin a target, KernelCatalog.SetDeviceTarget("bmg-g21") overrides it at runtime, and KernelCatalog.LoadEmbeddedSpirv can load a specific device's kernel directly.

KernelCatalog.EmbeddedDeviceTargets discovers targets from what's actually embedded in the DLL, rather than a fixed list, so it stays correct as targets are added.

Target Control & Introspection
// 1. Automatic target detection (Default)
using var device = LevelZeroRuntime.GetDefaultDevice();

// 2. Dynamic introspection of embedded hardware targets
IReadOnlyList<string> targets = KernelCatalog.EmbeddedDeviceTargets;

// 3. Runtime explicit hardware pinning override
KernelCatalog.SetDeviceTarget("bmg-g21");

// 4. Direct embedded SPIR-V / Zebin extraction
ReadOnlySpan<byte> binary = KernelCatalog.LoadEmbeddedSpirv("fitness_sphere", "bmg-g21");
Silicon Compatibility

Supported Hardware Matrix

38 distinct compute kernels compiled into native binaries for each of the 11 Intel GPU architectural targets (38 × 11 = 418 kernel modules):

Target ID Microarchitecture Example Silicon / Product Lines Deployment Tier
tgllp Gen12 11th Gen Iris Xe Client Integrated
dg1 Gen12 Iris Xe MAX Client Discrete
acm-g10 / g11 / g12 Xe-HPG Arc A770/A750, A580/A380, A310 Discrete Gaming & Pro
pvc Xe-HPC Data Center GPU Max (Ponte Vecchio) Data Center & HPC
mtl Xe-LPG Core Ultra 100 (Meteor Lake) AI PC Integrated
arl-h Xe-LPG+ Core Ultra 200 (Arrow Lake) High-Performance Mobile
bmg-g21 Xe2-HPG Arc B580/B570 (Battlemage) Next-Gen Discrete
lnl-m Xe2-LPG Core Ultra 200V (Lunar Lake) Ultra-Low Power AI PC
ptl-h Xe3-LPG Core Ultra 300 (Panther Lake) Future Native Substrate
Releases & Distribution

Level Zero Ecosystem Releases

Explore official releases, precompiled standalone binaries, and NuGet packages across the Intel Level Zero compute ecosystem.

RUNTIME ENGINE v2.0.0 • Released

LevelZero.NET

Core managed API, native C ABI shim, typed Unified Shared Memory (SharedBuffer<T>), and embedded catalog of 418 pre-compiled compute kernels across 11 Intel targets.

dotnet add package LevelZero.NET
Download Assets (v2.0.0)
LLM RUNNER & SERVER v2.0.0 • Released

l0llm

Zero-allocation native LLM runner & OpenAI REST server in pure C#. 41.3 tok/s on Iris Xe with zero GC allocations and zero Python/Conda dependencies.

DIAGNOSTICS CLI v2.0.0 • Released

l0check

Fast, standalone CLI tool for inspecting Intel GPU architectures, topology, driver capabilities, and verifying Level Zero compute kernel execution.

AGENTIC SUITE v1.0.0 • Released

ML.Agentic

21 zero-dependency multi-agent building blocks, Model Context Protocol (MCP), and Agent2Agent (A2A) protocol engine with optional Level Zero GPU offload.

Engineering Purpose

Why This Exists

Getting a .NET application onto Intel GPU compute normally means hand-rolling SPIR-V, wiring up the Level Zero loader, and reimplementing device detection per target. LevelZero.NET does that work once, ships it precompiled, and gets out of the way.

It backs HF Labs' own swarm optimizers, spiking-network simulators, local LLM runtime and GraphRAG retrieval, and it's built to be dropped into anything else that needs the same class of parallel kernel.