powered by
mpi.universe.size returns the total number of CPUs available in a cluster. Some MPI implements may not have this MPI call available.
mpi.universe.size
mpi.universe.size()
http://www.lam-mpi.org/, http://www-unix.mcs.anl.gov/mpi/www/www3/