240
edits
Changes
→How is it actually used?
2. Set the Balanced Tree project as StartUp Project.
3. Find the Advisor’s directory by executing the following command in cmd.exe: >set advisor
a. In C/C++ > General > Additional Include Directories, add the Advisor’s directory using macro notation: $(ADVISOR_..._DIR)include (or $(ADVISOR_..._DIR)\include if the environment variable does not end with a backslash).
b. In C/C++ > General > Debug Information Format, confirm it is set to Program Database (/Zi).
c. In Linker > Debugging > Generate Debug Info, set it to Optimize for debugging (/DEBUG).
d. In C/C++ > Optimization > Optimization, confirm it is set to Maximize Speed (/O2) or higher.
e. On the same page, set Inline Function Expansion to Only __inline (/Ob1).
f. In C/C++ > Code Generation > Runtime Library, confirm it has been set to Multi-threaded DLL (/MD); another option is to set this field to Multi-threaded Debug DLL (/MDd).
g. Enable OpenMP under C/C++ > Language > OpenMP Support by setting it to Generate Parallel Code (/Qopenmp).
h. Click OK to save the properties.
3. Mark a possible parallel site and task with the following macros:
ANNOTATE_SITE_BEGIN(Site Name1); ANNOTATE_ITERATION_TASK(Task 1.1); ANNOTATE_TASK_BEGIN(Task 1.2); ... ANNOTATE_TASK_END; ANNOTATE_TASK_BEGIN(Task 1.3); . .. ANNOTATE_TASK_END; ANNOTATE_SITE_END;
4. Rebuild the project and you might need to re-run the Survey Analysis and the (optional) Trip Counts and FLOPS Analysis.