[NEWBIE] Using .cu in C++ application

Hi i am really newbie .

I know how to create simple programs using visual profiler in VS 2005 .

Now i wanna create CUDA function and call it from my c++ application .

Could you tell my how to do it or where can i find tutorial about it ?

Do i have to do DLL ( using visual profiler ) ?

Thank you for help .

Hi.

You don’t have to DLL. What you do is. You write a .cu file with a C/C++ function in it that copy data, calls the kernels and copy data back. Then you have to forward declare this function in the file where you wish to call CUDA. All you have to do now is compile the .cu file to object code, and then link this .obj file with the file where you call the method.

See that it’s a messy explanation, but somewhat ill today, so can’t figure out an easy way to put it.