DELHOSTS(3PVM)

πŸ“¦ version 3.4.6, in debian bookworm, ubuntu jammy

okay so bestie, welcome to DELHOSTS(3PVM) β€” the page where pvm_delhosts does a little host cleanup in your PVM virtual machine. No cap, this one is useful and also lowkey dangerous. 🫢

🌸 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. πŸ’€ So like, it’s giving β€œcleanup with consequences,” periodt.

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. One host at a time, bestie. ✨

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 application tolerant of host failure. So yes, PVM has your back, but your app dev still has homework. 😭

πŸ’… 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) β€” go read those too, bestie. iykyk. πŸ“š


mwah πŸ’… this DELHOSTS(3PVM) page is from PVM Version 3.4, dated 30 August, 1993. byeee 🫢

πŸ“¦ where this page comes from