Custom method in C#


is there any way to execute my custom function in C# parallel with CUDA?


Since you ask about C#, you might want to take a look at this product just announced:

You will still need to create your CUDA work in C/C++, but if you compile into dll form you can invoke them from C#. I found this article showing an example, but your mileage may vary…

You can program to the OpenCL standard (which runs on CUDA, amongst others) using C# and OpenTK . There is such a nice complete cuda 4.2 wrapper as ManagedCuda. You simply add C++ cuda project to your solution, which contains yours c# project, then you just add .