I use VS 2012 as my build environment on Win 7.However my VS never recogonizes the annotations header file,though it loads it.Can anybody suggest a workaround for this issue?
I have no idea what "the annotations header file" is.
This forum is for the discussion of Intel Cilk Plus issues. I suspect you've posted the question in the wrong place.
Sorry for the inconvenience.
Would you be able to create a small test case and share it with me? You can send it to me at ravi DOT vemuri AT intel DOT com
In the meanwhile, please check the following:
Can you also please clarify what you mean by the following: "However my VS never recogonizes the annotations header file,though it loads it"? I am assuming that you mean that the annotations are not detected by Intel(R) Advisor XE product. If you mean something else, please clarify.
Hope it helps.
How did you discover that VS "doesn't recognize" ANNOTATE_SITE_BEGIN? Or in other words, what was exact indication of given problem? I could imagine following cases:
Please let us know if you took in mind one of 3 cases enumerated above (if yes, which one) or if you took in mind something else! Please note, Visual Studio itself doesn't recognize annotations. This is Advisor XE Visual Studio plug-in job to do some auto-detection stuff, and it's not exactly clear from your message ( "VS doesn't recognize ANNOTATE_SITE_BEGIN") what specifically "went wrong" in your environment.
Harsh, are you sure that you've added
in the same compilation unit (says the same .cpp file) as the one where you also added ANNOTATE_SITE_BEGIN?
I just noticed that you've used "additional-annotate.h" header file name in forum topic caption. But there is no such "additional-annotate.h" header files in existence. So, my suggestion just in case you really made this misprint, - don't use wrong "additional-annotate.h" header filename, but use "advisor-annotate.h" instead.
In general most common way to annotate loop in C++ code (as exposed via "Annotations Example" or "Annotation Wizard" features), is:
#include "advisor-annotate.h"// Add to each module that contains Intel Advisor XE annotations
// Don't forget to add reference to advisor-annotate.h (/I"%ADVISOR_XE_2013_DIR%"\include or specify absolute path instead) in your Build Settings or makefile
ANNOTATE_SITE_BEGIN( MySite1 ); // Place before the loop control statement
// for (...) or other loop control statement
ANNOTATE_ITERATION_TASK( MyTask1 ); // Place at the start of loop body. This iterative-task annotation identifies an entire body as a task.
// loop body
ANNOTATE_SITE_END(); // End the parallel code region, after task execution completes
Can you make sure that you are including "advisor-annotate.h" and not "additional-annotate.h"
If that isn't the problem, could you attach the exact compilation output?