I currently have cuda setup with a portion of the code in visual studio c++ files, another portion in *.cu files on host side and some *.cu files on the device side (containing global functions). Now all the *.cu files obviously compile using nvcc, while the cpp files are compiled by visual studio. All is running great but I am curious whetther it would be possible to rename all my *.cu files on host side to cpp and have them compiled by VS; with only the device functions compiled by nvcc.
How would I then call the kernel functions since I cant include a *.cu file in the VS compiler. Is it even possible?