In this step, you will generate a guided auto parallelism report.
In Solution Explorer, open the Source Files folder and right-click on scalar_dep.cpp.
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.
Find the following in the Output window. The report starts with
GAP REPORT LOG OPENED
and ends atEND 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.
Parent topic: Tutorial: Windows* Version
Inglés