ILGPU compiles .NET languages to GPU kernels at runtime with no native dependencies in the compiler itself. It includes CPU accelerators for debugging and an algorithms library for common GPU primitives.
Overview
ILGPU is a just-in-time compiler that turns GPU programs written in .NET languages into code for NVIDIA, AMD, Intel, and related backends. The implementation is entirely in C# and targets .NET Core-compatible platforms without bundling native compiler dependencies.
Kernel code can use ordinary C# value-type functions without special annotations in many cases. Hardware features such as shared memory and atomics are exposed, and the integrated multi-threaded CPU accelerator can execute and debug kernels on the host before targeting discrete GPUs.
The separate ILGPU Algorithms package supplies sorting, prefix sums, and other higher-level routines that run on every supported accelerator type, which helps when validating logic on the CPU first.
Compared with C++ AMP and CUDA-style development, ILGPU offers C#-level abstractions, array views instead of manual pointer arithmetic, implicitly grouped kernels, and cross-platform .NET builds where the runtime selects appropriate backends.
Key features
- JIT compilation of .NET GPU kernels
- Pure C# compiler without native deps
- CPU accelerator for debug and test
- ILGPU Algorithms standard routines
- Shared memory and atomics in kernels
- Multi-dimensional index types
- Implicitly grouped kernel model
- NVIDIA, AMD, and Intel GPU targets
Use cases
- GPGPU code in C# or F# applications
- Debugging kernels on CPU accelerators
- Scientific or graphics parallel workloads
- Cross-platform .NET GPU deployment