Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 7/13/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

par-num-threads, Qpar-num-threads

Specifies the number of threads to use in a parallel region. This feature is only available for ifort.

Syntax

Linux:

-par-num-threads=n

macOS:

-par-num-threads=n

Windows:

/Qpar-num-threads:n

Arguments

n

Is the number of threads to use. It must be a positive integer.

Default

OFF

The number of threads to use is determined by the runtime environment.

Description

This option specifies the number of threads to use in a parallel region. It has the same effect as environment variable OMP_NUM_THREADS.

This option overrides the environment variable when both are specified.

This option only has an effect if the following is true:

  • You have specified option [Q]parallel or option [q or Q]openmp (or both).

  • You are compiling the main program.

IDE Equivalent

None

Alternate Options

None

See Also