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

Running Guided Auto Parallelism

$
0
0

In this step, you will generate a guided auto parallelism report.

  1. In Solution Explorer, open the Source Files folder and right-click on scalar_dep.cpp.

  2. Select Intel Compiler > Guided Auto Parallelism > Run Analysis on file "scalar_dep.cpp".

    The Analysis with Multi-file optimization dialog box appears. Click Run Analysis.

  3. Find the following in the Output window. The report starts with GAP REPORT LOG OPENED and ends at END OF GAP REPORT LOG.

    remark #30761: Add -Qparallel option if you want the compiler to generate
    recommendations for improving auto-parallelization.
    
    scalar_dep.cpp(79) remark #30515: (VECT) Assign a value to the variable(s)
    "b" at the beginning of the body of the loop in line 79. This will allow
    the loop to be parallelized. [VERIFY] Make sure that, in the original
    program, the variable(s) "b" read in any iteration of the loop has been
    defined earlier in the same iteration.

    Note

    You may get different remark and line numbers.

In the next step, you will analyze the contents of the report to learn what you can do to add parallelism to your source code.

Next: Analyzing Guided Auto-parallelization Reports

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>