Campy 0.0.1-alpha

An API for the running of C# code on a GPU. For Windows (x64).

This is a prerelease version of Campy.
There is a newer prerelease version of this package available.
See the version list below for details.
Install-Package Campy -Version 0.0.1-alpha
dotnet add package Campy --version 0.0.1-alpha
paket add Campy --version 0.0.1-alpha
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

* Version 0.0.1-alpha
When building with Campy, select Platform = "AnyCPU", config = "Debug" or "Release", "Prefer 32-bit" unchecked.

Make sure you have a recent CUDA GPU, and CUDA Toolkit installed.

Simple example:
namespace ConsoleApp
   class Program
       static void Main(string[] args)
           int[] o = new int[]{1,2,3,4,5};
           Campy.Parallel.For(new Campy.Types.Extent(5), idx => { o[idx] += 1; });
           for (int i = 0; i<5; ++i) System.Console.Write(o[i] + " ");

For further information, see and

Version History

Version Downloads Last updated
0.0.3-alpha 54 10/9/2017
0.0.2-alpha 43 9/19/2017
0.0.1-alpha (current version) 65 9/6/2017