Error when changing build configuration for a single file

Hi,

We can reproduce this issue.
The workaround is to override the project settings for a folder than to a single file.

  1. Create a new source folder and move the file to that folder.
  2. Right click on the source folder and change the build settings from properties page.
  3. Rebuild the project.

And this issue does not exist when using NsightEE plugins which is new included in CUDA 9.0