PERROR(3PVM)

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

✨ PERROR(3PVM) ✨

okay bestie, welcome to pvm_perror from PVM Version 3.4 β€” this is the one that tells you what just went wrong πŸ’…


πŸ’– NAME πŸ’–

pvm_perror β€” prints a message describing the last error returned by a PVM call.


πŸŽ€ SYNOPSIS πŸŽ€

C:

int info = pvm_perror( char *msg )

Fortran:

call pvmfperror( msg, info )

πŸ¦‹ PARAMETERS πŸ¦‹

  • msg β€” a character string that you supply, bestie. It gets prepended to the error message of the last PVM call. So you can be like "hey this happened at step 6" and it'll show up right before the actual error. iconic.
  • info β€” the integer status code the routine hands back to you. Values less than zero mean an error. anything < 0 = not slay.

🌸 DESCRIPTION 🌸

So the whole vibe of pvm_perror is: it returns the error message of the last PVM call. That's it, that's the job. 🫢

You get to use msg to add extra info onto that error message β€” like where in your code it happened. main character energy for your debugging tbh.

lowkey important: unless it's redirected, all stdout and stderr messages go into the file /tmp/pvml.<uid> on the master host. no cap. so if you're wondering where your prints went… they're in there. πŸ”

🌈 EXAMPLES 🌈

C:

if ( pvm_send( tid, msgtag ) )
     pvm_perror();

Fortran:

CALL PVMFSEND( TID, MSGTAG )
IF( INFO .LT. 0 ) CALL PVMFPERROR( 'Step 6', INFO )

πŸ’€ ERRORS πŸ’€

ngl there are no errors here β€” pvm_perror doesn't return any error condition. it's the one telling you about errors. it's giving therapist. 😭


⭐ SEE ALSO ⭐

(nothing listed in the original, bestie β€” this page is a solo act πŸ‘‘)


and that's the whole page!! PERROR(3PVM) was written by the PVM crew and shipped as part of PVM Version 3.4, dated 30 August, 1993 β€” like, vintage vintage. periodt. πŸŽ€βœ¨πŸ’œ

πŸ“¦ where this page comes from