Giter Site home page Giter Site logo

ilgpu.samples's Introduction

ILGPU Programming Examples

The sample projects demonstrate the basic usage of ILGPU to help you get started with high performance GPU programming.

One key feature of ILGPU is the ability to execute the code on the CPU in a way that emulates how the GPU works. Therefore, instead of having to resort to Graphics/CUDA debugging facilities, you can directly use all of Visual Studio's CPU debugging features.

Note that this is not possible when your code is executed on the GPU; in order to execute your code on the CPU, you have to create a CPU context instead of a GPU context (e.g. by replacing new CudaAccelerator with new CPUAccelerator).

Build Instructions

After cloning the repository, the folder structure should look as follows:

  • .git
  • Src
  • LICENSE.txt
  • ...

Just cloning the repository should be sufficient as all dependencies are usually restored by NuGet. Please refer to the ILGPU readme for further dependencies, like the CUDA runtime.

Samples

Simple and Advanced

These samples explain the basic and more advanced capabilities of ILGPU, respectively.

ILGPU.Lightning

These samples show how to leverage ILGPU.Lightning for even more comfortable GPU programming.

Remarks

There are a few settings that you should remember to change for your own projects:

  • In the project properties, set the target framework to .NET Framework 4.7 or .NET Core 2.0.
  • Make sure that Prefer 32-bit is disabled in the project settings and/or that the target platform is set to X64.

ilgpu.samples's People

Contributors

m4rs-mt avatar moftz avatar kant2002 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.