How to start a brand new CUDA project Entry level question

Hi, Guys:

I have installed the CUDA packages on my XP64, and the SDK workks very well.

I am considering to build my very own project, how can I start?

I have tried to copy the sample project from the SDK foldder to other place, but it
does not work.


Create a new empty project (c++)

Add a new source file (name it to *.cu)

Add cuda build rule to the project

You need to set the include directory and linker library correctly, use the environment variables for that.

Compile and run.

the copied sample must be in the same directory to keep all parameters.

can I ask for more details