Amplifier.NET alternatives and similar packages
Based on the "Compilers, Transpilers and Languages" category.
Alternatively, view Amplifier.NET alternatives based on common mentions on social networks and blogs.
-
Iron python
Implementation of the Python programming language for .NET Framework; built on top of the Dynamic Language Runtime (DLR). -
Testura.Code
Testura.Code is a wrapper around the Roslyn API and used for generation, saving and compiling C# code. It provides methods and helpers to generate classes, methods, statements and expressions.
CodeRabbit: AI Code Reviews for Developers

* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Amplifier.NET or a related project?
README
Amplifier.NET
Amplifier allows .NET developers to easily run complex applications with intensive mathematical computation on Intel CPU/GPU, NVIDIA, AMD without writing any additional C kernel code. Write your function in .NET and Amplifier will take care of running it on your favorite hardware.
Below is the sample Kernel you can write in CSharp
[OpenCLKernel]
void add_float([Global]float[] a, [Global] float[] b, [Global]float[] r)
{
int i = get_global_id(0);
b[i] = 0.5f * b[i];
r[i] = a[i] + b[i];
}
[OpenCLKernel]
void Fill([Global] float[] x, float value)
{
int i = get_global_id(0);
x[i] = value;
}
Now this kernel will be converted to C99 format which is specific instruction for OpenCL. Let's do some magic to execute the kernel using OpenCL
Create an instance of OpenCL compiler. You can list all the available devices.
var compiler = new OpenCLCompiler(); Console.WriteLine("\nList Devices----"); foreach (var item in compiler.Devices) { Console.WriteLine(item); }
Select a device by id and load the Sample kernel created.
compiler.UseDevice(0); compiler.CompileKernel(typeof(SimpleKernels));
Console.WriteLine("\nList Kernels----"); foreach (var item in compiler.Kernels) { Console.WriteLine(item); }
3. Declare variable and do some operation which will run on any hardware selected like Intel CPU/GPU, NVIDIA, AMD etc.
```csharp
Array a = new float[] { 1, 2, 3, 4 };
Array b = new float[4];
Array r = new float[4];
var exec = compiler.GetExec<float>();
exec.Fill(b, 0.5f);
exec.add_float(a, b, r);
Console.WriteLine("\nResult----");
for(int i = 0;i<r.Length;i++)
{
Console.Write(r.GetValue(i) + " ");
}
Result:
Documentation
- Base: https://deepakkumar1984.github.io/Amplifier.NET/
- Articles: https://deepakkumar1984.github.io/Amplifier.NET/articles/intro.html
- API Reference: https://deepakkumar1984.github.io/Amplifier.NET/api/Amplifier.html
Any contribution is welcome
Please fork the code and suggest improvements by raising PR. Raise issues so that I can make this library robust.