GETINST(3PVM)

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

✨ NAME ✨

okay bestie, gather round β€” this is the GETINST(3PVM) page, and the star is pvm_getinst β€” Returns the instance number in a group of a PVM process. πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

C    int inum = pvm_getinst( char *group, int tid )

Fortran   call pvmfgetinst( group, tid, inum )

πŸŽ€ PARAMETERS πŸŽ€

  • group β€” Character string group name of an existing group.
  • tid β€” Integer task identifier of a PVM process.
  • inum β€” Integer instance number returned by the routine. Instance numbers start at 0 and count up. Values less than zero indicate an error. 🚨

🌸 DESCRIPTION 🌸

So like, pvm_getinst takes a group name group and a PVM task identifier tid, and returns the unique instance number that corresponds to the input. It can be called by any task whether in the group or not. No gatekeeping, periodt. πŸ’…

If pvm_getinst is successful, inum will be >= 0. If some error occurs then inum will be < 0. Vibe check: negative means something went wrong. 😭

✨ EXAMPLES ✨

C:

inum = pvm_getinst( "worker", pvm_mytid() );
--------
inum = pvm_getinst( "worker", tid[i] );

Fortran:

CALL PVMFGETINST( 'GROUP3', TID, INUM )

πŸ’€ ERRORS πŸ’€

These error conditions can be returned by pvm_getinst:

  • PvmSysErr β€” pvmd was not started or has crashed. πŸ’€
  • PvmBadParam β€” giving an invalid tid value.
  • PvmNoGroup β€” giving a non-existent group name.
  • PvmNotInGroup β€” specifying a group in which the tid is not a member.

πŸ”₯ SEE ALSO πŸ”₯

  • pvm_joingroup(3PVM)
  • pvm_gettid(3PVM)

that's the whole page, bestie 🫢 this cutie is from PVM Version 3.4, dated 30 August, 1993, and it's the GETINST(3PVM) manual page. slay, bye! πŸ’–βœ¨

πŸ“¦ where this page comes from