Open main menu

CDOT Wiki β

Changes

GPU621 Team Tsubame

7 bytes removed, 04:00, 21 November 2016
How is it actually used?
4. Change the following project properties:
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.
5. Comment out the “terminate” section in w3.main.cpp to end the application without waiting for user input.
2. To add annotations, include the <advisor-annotate.h> header file.
3. Mark a possible parallel site and task with the following macros:   ANNOTATE_SITE_BEGIN(Site Name); ... 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.
7. For this example, there should be no dependencies. However, this is one warning: One task in parallel site; right click on the warning and select the What Should I Do Next? option.
NOTE: the What Should I Do Next? option is very useful for opening the documentations on the module you are pointing at.
8. Go back to the Survey Report and uncheck the Deeper Analysis checkbox beside the target site.
NOTE: you can mark multiple sites and nest multiple tasks in each site, but the analyses will run longer.
9. Once you have annotated the sites and their tasks, run the Suitability Analysis.
240
edits