bproc_numnodes -- Get the count of cluster nodes.
#include <sys/bproc.h> int bproc_numnodes (void );
This function returns the number of nodes the cluster is configured to support. Note that this is the potential size of the cluster, not the current number of available nodes or the count of machines assigned node numbers.
Returns the number of compute nodes the system is configured to support.
BProc system is not loaded, returns 0 and sets
Returns -1 on error, and sets
BProcsystem is loaded but not configured or active.
- Insufficient kernel memory was available.