Hi,
We can reproduce this issue.
The workaround is to override the project settings for a folder than to a single file.
- Create a new source folder and move the file to that folder.
- Right click on the source folder and change the build settings from properties page.
- Rebuild the project.
And this issue does not exist when using NsightEE plugins which is new included in CUDA 9.0