GSIZE(3PVM)

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

πŸ’– GSIZE β€” the pvm_gsize page, aka GSIZE(3PVM) from the PVM Version 3.4 manual πŸ’–

okay bestie, sit down, hydrate, because we're doing group math today and it's actually so chill 🫢


✨ NAME ✨

pvm_gsize β€” literally just tells you how many members are in the group rn. That's it. That's the whole job. πŸ‘‘


✨ SYNOPSIS ✨

C    int size = pvm_gsize( char *group )
Fortran   call pvmfgsize( group, size )

✨ PARAMETERS ✨

  • group β€” a character string, the group name of an existing group. Like, it has to exist, okay? Don't be out here naming groups that aren't real. πŸ™ˆ
  • size β€” an integer coming back at you with the number of members presently in the group. And listen β€” values less than zero mean an error happened. Negative size = it's giving red flag, not a group with negative people. πŸ’€

✨ DESCRIPTION ✨

The routine pvm_gsize returns the size of the group named group. If there is an error, size will be negative. Simple as. ✨

Since groups can change dynamically in PVM 3.0, this routine can only guarantee to return the instantaneous size of a given group. Translation: it's a snapshot, not a promise. People can join, people can leave, and your number is only true for the exact moment you asked. Vibe check in real time, no cap. πŸ¦‹


✨ EXAMPLES ✨

C:

size = pvm_gsize( "worker" );

Fortran:

CALL PVMFGSIZE( 'group2', SIZE )

look at her go. iconic. ate and left no crumbs. πŸ’…


✨ ERRORS ✨

These error conditions can be returned by pvm_gsize:

  • PvmSysErr β€” pvmd was not started or has crashed. Yeah. The daemon ghosted you. 😭
  • PvmBadParam β€” giving an invalid group name. You typed the group name wrong, bestie, it's not that deep but it is an error. πŸ“

✨ SEE ALSO ✨

  • pvm_joingroup(3PVM) β€” go read this one too, it's the whole reason groups even get members in the first place. 🌈

and that's the page!! you now know how to count a group, which is honestly a superpower. mwah πŸ’–

this lil love letter to group counting comes to you straight from the PVM Version 3.4 manual, dated 30 August, 1993 β€” yes she's vintage, yes she still slays, periodt. πŸ‘‘πŸŒΈ

πŸ“¦ where this page comes from