PERROR(3PVM)
π PERROR(3PVM) β pvm_perror π
okay bestie, welcome to PVM Version 3.4's lil error-translator page, the one and only PERROR(3PVM). if your PVM call just flopped, this is the routine that tells you why. π«Ά
β¨ NAME β¨
pvm_perror β prints a message describing the last error returned by a PVM call. it's giving translator bestie energy π
πΈ SYNOPSIS πΈ
C:
int info = pvm_perror( char *msg )
Fortran:
call pvmfperror( msg, info )
π PARAMETERS π
msgβ a character string you supply, and it gets prepended to the error message from the last PVM call. like your little personal note on top of the actual tea. πinfoβ integer status code the routine hands back. values less than zero mean something went wrong, no cap. π¨
π¦ DESCRIPTION π¦
so pvm_perror returns the error message of the last PVM call. that's it, that's the job. β¨
and you can use msg to add extra info to that error message β for example, where the error happened. lowkey so useful when you have no idea which call betrayed you. π
heads up bestie: unless it's redirected, allstdoutandstderrmessages get placed in the file/tmp/pvml.<uid>on the master host. so if you're staring at your terminal like "where are my messages π" β they're over there. π
π₯ EXAMPLES π₯
C:
if ( pvm_send( tid, msgtag ) )
pvm_perror();
Fortran:
CALL PVMFSEND( TID, MSGTAG )
IF( INFO .LT. 0 ) CALL PVMFPERROR( 'Step 6', INFO )
see how the Fortran one is like "Step 6"? that's the msg doing its thing, labeling exactly which step ate it. iconic behavior honestly. π
π ERRORS π
no error condition is returned by pvm_perror. literally none. it can't fail at telling you that something else failed. main character energy fr fr. β¨
that's the whole page bestie, go forth and debug slayfully π§π
this was PVM Version 3.4, dated 30 August, 1993 β yes it's vintage, yes it still eats, mwah ππβ
π¦ 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