Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pvm_config(3pvm) [redhat man page]

CONFIG(3PVM)							  PVM Version 3.4						      CONFIG(3PVM)

NAME
pvm_config - Returns information about the present virtual machine configuration. SYNOPSIS
C int info = pvm_config( int *nhost, int *narch, struct pvmhostinfo **hostp ) struct pvmhostinfo { int hi_tid; char *hi_name; char *hi_arch; int hi_speed; }; Fortran call pvmfconfig( nhost, narch, dtid, name, arch, speed, info ) PARAMETERS
nhost Integer returning the number of hosts (pvmds) in the virtual machine. narch Integer returning the number of different data formats being used. hostp Returns pointer to an array of structures which contain information about each host including its pvmd task ID, name, architecture, and relative speed. dtid Integer returning pvmd task ID for host name Character string returning name of host arch Character string returning architecture name of host speed Integer returning relative speed of host. Default value is 1000. info Integer status code returned by the routine. Values less than zero indicate an error. DESCRIPTION
The routine pvm_config returns information about the present virtual machine. The information returned is similar to that available from the console command conf. The C function returns information about the entire virtual machine in one call. The Fortran function returns information about one host per call and cycles through all the hosts. Thus, if pvmfconfig is called nhost times, the entire virtual machine will be represented. Note that in C the hostp array is allocated and owned by libpvm. It is automatically freed or reused on the next call to pvm_config. Note that in Fortran the reported value of nhost and the host configuration do not change until the function resets at the end of a com- plete cycle. The user can reset pvmfconfig() at any time by calling it with nhost = -1. If pvm_config is successful, info will be 0. If some error occurs then info will be < 0. EXAMPLES
C: struct pvmhostinfo *hostp; int i, nhost, narch; info = pvm_config( &nhost, &narch, &hostp ); for (i = 0; i < nhost; i++) printf("%s ", hostp[i].hi_name); Fortran: Do i=1, NHOST CALL PVMFCONFIG( NHOST,NARCH,DTID(i),HOST(i),ARCH(i),SPEED(i),INFO ) Enddo ERRORS
The following error condition can be returned by pvm_config PvmSysErr pvmd not responding. SEE ALSO
pvm_tasks(3PVM) 31 August, 1994 CONFIG(3PVM)

Check Out this Related Man Page

DELHOSTS(3PVM)							  PVM Version 3.4						    DELHOSTS(3PVM)

NAME
pvm_delhosts - Deletes hosts from the virtual machine. SYNOPSIS
C int info = pvm_delhosts( char **hosts, int nhost, int *infos ) Fortran call pvmfdelhost( host, info ) PARAMETERS
hosts An array of pointers to character strings containing the names of the machines to be deleted. nhost Integer specifying the number of hosts to be deleted. infos Integer array of length nhost which contains the status code returned by the routine for the individual hosts. Values less than zero indicate an error. host Character string containing the name of the machine to be deleted. info Integer status code returned by the routine. Values less than nhost indicate partial failure, values less than 1 indicate total failure. DESCRIPTION
The routine pvm_delhosts deletes the computers pointed to in hosts from the existing configuration of computers making up the virtual machine. All PVM processes and the pvmd running on these computers are killed as the computer is deleted. If pvm_delhosts is successful, info will be nhost. Partial success is indicated by 1<= info < nhost, and total failure by info < 1. The array infos can be checked to determine which host caused the error. The Fortran routine pvmfdelhost deletes a single host from the configuration with each call. If a host fails, the PVM system will continue to function and will automatically delete this host from the virtual machine. An application can be notified of a host failure by calling pvm_notify. It is still the responsibility of the application developer to make his applica- tion tolerant of host failure. EXAMPLES
C: static char *hosts[] = { "sparky", "thud.cs.utk.edu", }; int status[2]; info = pvm_delhosts( hosts, 2, status ); Fortran: CALL PVMFDELHOST( 'azure', INFO ) ERRORS
These error conditions can be returned by pvm_delhosts PvmBadParam giving an invalid argument value. PvmSysErr local pvmd not responding. SEE ALSO
pvm_addhosts(3PVM), pvm_notify(3PVM) 30 August, 1993 DELHOSTS(3PVM)
Man Page