Has there been a change with this option? I don’t get the host definitions in visual studio as I used to.
More elaboration on the problem: if a chain of preprocessor definitions includes an equality (e.g. MYDEF=1), only the defs before the equal sign are passed when compiling the host portion of a .cu file.
I installed CUDA 8 yesterday and I had exactly the same problem.
I tried this in VS2013 with no luck:
Project Properties > Configuration Properties > CUDA C/C++ > Host > Use host Preprocessor Definitions = Yes
Also I tried:
Project Properties > Configuration Properties > CUDA C/C++ > Host > Preprocessor Definitions =
And it didn’t work either.
For sure this is a problem that started to appear in CUDA 8, it worked fine in all older CUDA versions.
It used to work fine with Cuda 8.0 RC as well.