Auto-parallelization

In addition to the low-level "hand-thread" approach based on threading API for Win32* and Itanium™-based Windows* 2000, the Intel® C++ Compiler with the auto-parallelization feature and a high-level symmetric multi-rpocessing (SMP) programming model enable the user with an easy way to exploit the parallelism on SMP systems.

Enabling Auto-parallelizer

To enable auto-parallelizer, use the -parallel option. The -parallel option detects parallel loops capable of being executed safely in parallel and automatically generates multithreaded code for these loops. Automatic parallelization relieves the user from having to deal with the low-level details of iteration partitioning, data sharing, thread scheduling and synchronizations. It also provides the benefit of the performance available from multiprocessor systems.

Guidelines for Effective Auto-parallelization Usage

Enhance the power and effectiveness of the auto-parallelizer by following these coding guidelines:

Auto-parallelization Environment Variables

Option Description Default
OMP_NUM_THREADS Controls the number of threads used. Number of processors currently installed in the system.
OMP_SCHEDULE Specifies the type of run time scheduling. STATIC