Campy 0.0.1-alpha

.NET Framework
This is a prerelease version of Campy.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Campy --version 0.0.1-alpha
NuGet\Install-Package Campy -Version 0.0.1-alpha
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="Campy" Version="0.0.1-alpha" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Campy --version 0.0.1-alpha
#r "nuget: Campy, 0.0.1-alpha"
#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.
// Install Campy as a Cake Addin
#addin nuget:?package=Campy&version=0.0.1-alpha&prerelease

// Install Campy as a Cake Tool
#tool nuget:?package=Campy&version=0.0.1-alpha&prerelease

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

Product Compatible and additional computed target framework versions.
.NET Framework net is compatible. 
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Campy:

Repository Stars
kaby76/Campy
A compiler for NET CIL for GP-GPU computing in .NET languages.
Version Downloads Last updated
0.0.16 1,448 1/14/2019
0.0.15 1,046 9/27/2018
0.0.14 934 9/2/2018
0.0.13 1,108 7/6/2018
0.0.12 894 6/14/2018
0.0.11 987 6/8/2018
0.0.10 991 5/29/2018
0.0.9 1,059 5/3/2018
0.0.8 987 4/18/2018
0.0.7 883 4/4/2018
0.0.6 1,005 3/21/2018
0.0.5 1,050 3/10/2018
0.0.4 1,111 3/9/2018
0.0.3 995 3/9/2018
0.0.3-alpha 835 10/9/2017
0.0.2-alpha 731 9/19/2017
0.0.1-alpha 940 9/6/2017

* 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] + " ");
           System.Console.WriteLine();
       }
   }
}


For further information, see https://github.com/kaby76/campy and http://campynet.com/.