I am having a similar problem in adding a CUDA application to an existing 64-bit C++ project. In my existing project, there is a computation I want to offload to the GPU device.
I have current Visual Studio 2017 (15.3.1) and CUDA 9.0 RC. I have successfully built and run the deviceQuery and bandwidthTest applications, 64-bit, under Windows 7 64-bit.
However, if I try to add a .cu file, created outside Visual Studio, to my 64-bit C++ project, its properties show that it is not a ‘CUDA C/C++’ file, as determined by right-clicking on the file>Properties>Configuration Properties>General>Item Type>. And ‘CUDA C/C++’ is not one of the possibilities in the list of item types.
So there must be some setting for my C++ project to tell it to use the CUDA nvcc compiler for .cu files.
If I create a new project, ‘CUDA 9.0 runtime’ is a choice, but I need to add the CUDA files to my existing project. How can I do this?