The Guided Auto Parallelism (GAP) feature helps you locate portions of your serial code that can be parallelized. When you enable analysis using GAP, the compiler guides you to places in your code where you can increase efficiency through automatic parallelization and vectorization.
You can start analysis from the Eclipse* IDE in the following ways:
Running a one time analysis for the current project.
Select Intel Tools > Guided Auto Parallelism > Quick Analysis.
You can access the Intel Tools menu from the main menu bar, or from the project's context menu.
The default configuration settings are defined in Intel Guided Auto Parallelism Preferences. To access the GAP preference page, select Window > Preferences > C/C++ > Intel Guided Auto Parallelism.
Running analysis as part of a normal project build.
Select Project > Properties > C/C++ Build > Settings > Compilation Diagnostics and enable analysis by selecting one of the values from the Enable Guided Auto Parallelism Analysis dropdown menu. In this mode, GAP-related settings in Intel Guided Auto Parallelism Preferences are ignored, in favor of other GAP-related settings available in the property page.
To receive advice, be sure that auto-parallelization is enabled and that the optimization level is set to -O2 (the default setting) or above. To enable auto-parallelization Select Project > Properties > C/C++ Build Settings > Optimization and enable auto-parallelization optimization using the Parallelization property page. To set the optimization level, select Project > properties > C/C++ Build > settings > General.
Use the Guided Auto Parallelism context menu item to run analysis on the following:
single file: Select a file and right-click.
function: Right-click within the function scope.
range of lines: Select one or more lines for analysis and right-click.
Eclipse takes the highlighted selection and passes the corresponding line number or routine name parameter to the compiler.
Select a project, folder, files, or any combination thereof.
To illustrate how the various Guided Auto Parallelism settings work together, consider the following scenarios:
Scenario: The GAP analysis setting in the property pages is set to Enabled.
Result: Analysis always occurs for the project, whenever a regular project build occurs. in The property pages define the analysis settings, and the compiler ignores aAnalysis settings in Intel Guided Auto Parallelism Preferences.
Scenario: The GAP analysis setting in the property pages is set to Disabled and you choose to run GAP from the Intel Tools menu.
Result: Analysis occurs for this one run. The default values for this analysis are taken from Intel Guided Auto Parallelism Preferences and can be overridden in the dialog box. Options specified in the property pages are also used but will be overridden by any specified analysis option.
Scenario: The GAP analysis setting in the property pages is set to Disabled and you set GAP options in Intel Guided Auto Parallelism Preferences.
Result: No analysis occurs, unless you explicitly run the analysis from the Intel Tools menu.
Copyright © 1996-2010, Intel Corporation. All rights reserved.