Specifies the number of threads to use in a parallel region.
IA-32, Intel® 64, IA-64 architectures
Linux and Mac OS X: | -par-num-threads=n |
Windows: | /Qpar-num-threads:n |
n |
Is the number of threads to use. It must be a positive integer. |
OFF |
The number of threads to use is determined by the run-time environment. |
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:
Linux* OS and Mac OS* X: You have specified option -parallel or -openmp (or both).
Windows* OS: You have specified option /Qparallel or /Qopenmp (or both).
You are compiling the main program.
None