NUMBER_OF_PROCESSORS

Inquiry Intrinsic Function (Specific): Returns the total number of processors (peers) available to the program. This is a specific function that has no generic function associated with it. It must not be passed as an actual argument.

Syntax

result = NUMBER_OF_PROCESSORS ([dim])

dim
(Optional) Has no effect on currently available configurations of Compaq systems. This option is provided for compatibility with the High Performance Fortran (HPF) language specification. If dim is specified, it must have the value of 1.

Results:

The result is of type default integer scalar. The result value is the total number of processors (peers) available to the program.

For single-processor workstations, the result value is 1.