good job on the SDK, intel! I am using the 2013 SDK version with the plugin for Visual Studio 2010.
in my cl code, I want to be able to do this:
How do I define NAMEOFDEFINE?
I tried -D NAMEOFDEFINE, -DNAMEOFDEFINE, -D NAMEOFDEFINE = 1, -DNAMEOFDEFINE=1 both in the project's Intel SDK property sheet's "additional build option" field and in the command line's "additional options" field, but to no avail. If I specify it in the project settings, it does show up in the individual cl file's settings as well, as expected. However, when I offline-compile the file, the output window log echos the used build options ("Using build options:"), but only the -I includes are listed, not my custom -D parameter.
What am I missing? Looking forward to your insights.
Please add this line:
after this line (88):
In the file IntelOpenCL.targets located in “C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations”
Please make sure you don’t erase any line from the original file and keep the indentation.
This should fix the issue for every project you create after this fix is applied.
This fix will be included in the next Intel® SDK for OpenCL* Applications.