title: How to make CUDA dll that can be used in C# application?
body: <p>It would be good if you could give me a brief tutorial instead of a few words. </p>
  
  <p>My CUDA application is working as I wanted. Now, the problem is how to export CUDA code to C# as I would like to make front end and everything else in C#. </p>
  
  <p>From this link:</p>
  
  <p><a href="http://www.codeproject.com/Articles/9826/How-to-create-a-DLL-library-in-C-and-then-use-it-w" rel="nofollow">http://www.codeproject.com/Articles/9826/How-to-create-a-DLL-library-in-C-and-then-use-it-w</a></p>
  
  <p>I know how to make a library in C language that can be imported into C# application as Win32 dll.</p>
  
  <p>But my question is, <strong>how to make CUDA application dll (or some other extension) that can be shipped to C# and used from C# application?</strong>
  It would be good if there is somewhere tutorial for CUDA like the one for C library to C# app(above link).</p>
  
  <p>I am using Win7 64 bit, Visual Studio 2010 Ultimate, Cuda Toolikt 5.0 and NSight 2.2.012313</p>