Using Guided Auto Parallelism in the Eclipse* IDE

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.

Running Analysis on a Project

You can start analysis from the Eclipse* IDE in the following ways:

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.

Running Analysis on a File or within a File

Use the Guided Auto Parallelism context menu item to run analysis on the following:

Select a project, folder, files, or any combination thereof.

Example

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.

See Also


Submit feedback on this help topic

Copyright © 1996-2010, Intel Corporation. All rights reserved.