HPL_pnum(3)

πŸ“¦ version 2.2, in fedora 43, fedora 44

πŸ’– HPL_pnum β€” Rank Determination πŸ’–

okay so bestie, welcome to HPL_pnum(3), one of the lil' gems in the HPL Library Functions section of the HPL 2.2 manual πŸ’… this one's short, sweet, and lowkey iconic β€” it's the glow-up from "where are you in the grid" to "who even are you (numerically)".


✨ SYNOPSIS ✨

#include "hpl.h"

int HPL_pnum( const HPL_T_grid * GRID, const int MYROW, const int MYCOL );

🌸 DESCRIPTION 🌸

HPL_pnum figures out the rank of a process based on its coordinates in the grid. That's it. That's the whole vibe. You hand it where you are in the grid, it hands you back your rank number. fr fr, it's giving "you are your coordinates' main character moment" ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • GRID (local input) β€” const HPL_T_grid * On entry, GRID points to the data structure holding all the process grid information. It's the map, the whole map, nothing but the map πŸ—ΊοΈ
  • MYROW (local input) β€” const int On entry, MYROW is the row coordinate of the process whose rank we're hunting down. Real talk: MYROW must be greater than or equal to zero and less than NPROW. No skipping the rules, bestie πŸ™ˆ
  • MYCOL (local input) β€” const int On entry, MYCOL is the column coordinate of the process whose rank we're after. Same deal, periodt: MYCOL must be greater than or equal to zero and less than NPCOL. Stay in your lane (literally, it's a grid) πŸ’…

πŸ‘‘ SEE ALSO πŸ‘‘

  • HPL_grid_init (3)
  • HPL_grid_info (3)
  • HPL_grid_exit (3)

that's the whole page, no notes. go find your rank, bestie, you've earned it 🫢

HPL 2.2 β€” February 24, 2016 πŸ’– mwah, xoxo, grid out ✨

πŸ“¦ where this page comes from