GETINST(3PVM)
β¨ 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 at0and 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βpvmdwas not started or has crashed. πPvmBadParamβ giving an invalidtidvalue.PvmNoGroupβ giving a non-existent group name.PvmNotInGroupβ specifying a group in which thetidis 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
- debian bookworm: pvm-dev 3.4.6-5
- ubuntu jammy: pvm-dev 3.4.6-3.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms