I am trying to create a CUDA + C++ project. Basically a .cpp project that calls for some CUDA kernel. So I simply followed the example here, which basically adds two vectors
In the context menu for your project, click Build Customizations
. Turn on the CUDA 5.5
target.
In the context menu for your .cpp
file, click Rename
and rename it to .cu
.
In the context menu for your .cu
file (that you just renamed), select Properties
. Then go to General
and make sure Item Type
is set to CUDA C/C++
.
Rebuild.
When you start a new CUDA project, you can select Templates > NVIDIA > CUDA 5.5 > CUDA 5.5 Runtime
to get a project that should compile without any modifications.