Implementing Guided Auto Parallelism Recommendations

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.

  1. In Solution Explorer, right-click on the GAP-f project and select Properties. The Property Pages dialog box appears.

  2. In Configuration Properties > Fortran > Preprocessor > Preprocessor Definitions, click the dropdown list box and select <Edit>. The Preprocessor Definitions dialog box appears.

  3. In a new line in the text box, type test_gap.

  4. Click the OK button. The preprocessor definition appears in the dropdown list box.

  5. In Configuration Properties > Linker > Command Line > Additional Options text box, type /Qdiag-enable:par.

  6. Click the Apply button. The options appear in the text box.

  7. Click the OK button to close the property pages.

  8. Select Build > Build Solution.

The compiler parallelized and vectorized the loop if the compiler output does not show any recommendations.

Note

Your line and column numbers in the output may be different.

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.


Submit feedback on this help topic