Quantcast
Channel: Intel® C++ Compiler
Viewing all articles
Browse latest Browse all 1616

Implementing Guided Auto Parallelism Recommendations

$
0
0

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-c project and select Properties. The Property Pages dialog box appears.

  2. In Configuration Properties> > C/C++> 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 OK. The preprocessor definition appears in the dropdown list box.

  5. Select Configuration Properties> C/C++> Diagnostics [Intel C++].

  6. For Optimization Diagnostics Level, select Level 1 (/Qopt-report:1) from the dropdown list.

  7. For Optimization Diagnostics Phase, select Auto-Parallelization (/Qopt-report-phase:par) from the dropdown list.

  8. Click OK to close the property pages.

  9. Select Build > Build Solution.

The compiler parallelized and vectorized the loop if the Compiler Optimization Report window shows the following under Main loop:

LOOP BEGIN at scalar_dep.cpp(71,3)
   remark #17109: LOOP WAS AUTO-PARALLELIZED
LOOP END

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.

Inglés

Viewing all articles
Browse latest Browse all 1616

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>