Q. Use of Intrinsic Functions in FORTRAN?
HPF initiates some new intrinsic functions also to those defined in F90. The two mainly often used in parallel programming are system inquiry functions PROCESSORS_SHAPE and NUMBER_OF_PROCESSORS. These functions give the information about number of physical processors on that running program executes plus processor configuration. General syntax of is
NUMBER_OF_PROCESSORS is
NUMBER_OF_PROCESSORS (dim)
Where dim is the optional argument. It returns number of processors in underlying array or if the optional argument is present size of this array along a specified dimension.
General syntax of PROCESSORS_SHAPE is
PROCESSORS_SHAPE()
It returns one dimensional array whose ith element provides size of underlying processor array in its ith dimension.