In this step, you will implement the report recommendations by defining a directive in the compiler options and then compiling the source code. The recommendations are implemented in the source code if you define the directive TEST_GAP in the compiler options.
In Solution Explorer, right-click on the GAP-c project and select Properties. The Property Pages dialog box appears.
In Configuration Properties > C/C++ > Preprocessor > Preprocessor Definitions, click the dropdown list box and select <Edit>. The Preprocessor Definitions dialog box appears.
In a new line in the text box, type TEST_GAP.
Click the OK button. The preprocessor definition appears in the dropdown list box.
In Configuration Properties > Linker > Command Line > Additional Options text box, type /Qpar-report1.
Click the Apply button. The options appear in the text box.
Click the OK button to close the property pages.
Select Build > Build Solution.
The compiler parallelized and vectorized the loop if you see the following compiler output:
main.cpp(29) (col. 2): remark: LOOP WAS AUTO-PARALLELIZED.
For more information on using these compiler options, see the Compiler Options section in the Compiler User Guide and Reference.
This step is the last step in the tutorial.