HP Fortran Programmer's Guide (September 2007)
Compiling and linking
Using environment variables
Chapter 296
MP_NUMBER_OF_THREADS environment variable
The MP_NUMBER_OF_THREADS environment variable sets the number of processors that are to
execute a program that has been compiled for parallel execution. If you do not set this
variable, it defaults to the number of processors on the executing machine.
The following command lines set MP_NUMBER_OF_THREADS to specify that programs compiled
for parallel execution can execute on two processors:
$ export MP_NUMBER_OF_THREADS=2 # ksh syntax
% setenv MP_NUMBER_OF_THREADS 2 # csh syntax
For information about parallel execution, see “Compiling for parallel execution” on page 154.