CUDA and MS Visual C# 2008

Is CUDA now compatible with MS visual C# 2008 ( not MS Visual C++ 2008) ? Also if yes could you tell me the exact procedure to get CUDA working with Visual C# 2008 ?

Regards

AJ

It depends on what you mean by ‘compatible’. You have always been able to access CUDA with C# by using P/Invoke on the driver or runtime DLL’s.

If by ‘compatible’ you mean “Can I write my kernels in C#?”, then no, you can’t do that.

If you want a bit of help with it, check out the GASS CUDA.NET library.

As a beginner to CUDA , how can I use the CUDA functionality to my advantage

You’ll have to be more specific than that.

In general though, if you are just starting to work with CUDA, it’s probably best to work with the C code directly. VS 2005 and 2008 (and their respective C++ Express editions) works nicely with CUDA. There should be numerous tutorials elsewhere on this topic.

Once you’ve got a good grasp of how CUDA works, and you’d like to integrate it into your C# program, then you can look up various methods for using CUDA from C#.