HPL_grid_info(3)

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

πŸ’– HPL_grid_info(3) πŸ’–

okay bestie so this is a page from the HPL Library Functions manual, and it's about HPL_grid_info β€” the little function that tells you where you are and how big the party is. let's get into it 🫢


✨ NAME ✨

HPL_grid_info β€” retrieve grid information.

like. it gets you the grid info. that's the whole vibe. πŸ”₯


🌸 SYNOPSIS 🌸

#include "hpl.h"

int HPL_grid_info( const HPL_T_grid * GRID, int * NPROW, int * NPCOL,
int * MYROW, int * MYCOL );

πŸ¦‹ DESCRIPTION πŸ¦‹

HPL_grid_info returns the grid shape and the coordinates in the grid of the calling process. so like, who am I and where am I standing in this whole arrangement β€” that's what it's giving. ✨

Successful completion is indicated by the returned error code MPI_SUCCESS. any other error codes? those depend on your MPI implementation, so it's giving "depends on the vibes of whoever wrote your MPI." πŸ™ˆ


πŸ‘‘ ARGUMENTS πŸ‘‘

  • GRID (local input) β€” const HPL_T_grid * β€” On entry, GRID points to the data structure containing the process grid information. it's the source of truth, the blueprint, the map. no cap. πŸ—ΊοΈ
  • NPROW (global output) β€” int * β€” On exit, NPROW specifies the number of process rows in the grid. NPROW is at least one. so like, never zero, we always have at least a row. periodt. πŸ’…
  • NPCOL (global output) β€” int * β€” On exit, NPCOL specifies the number of process columns in the grid. NPCOL is at least one. same energy, at least one column, always. 🌈
  • MYROW (global output) β€” int * β€” On exit, MYROW specifies my row process coordinate in the grid. MYROW is greater than or equal to zero and less than NPROW. so it's a real coordinate, fully in bounds, main character energy confirmed. ⭐
  • MYCOL (global output) β€” int * β€” On exit, MYCOL specifies my column process coordinate in the grid. MYCOL is greater than or equal to zero and less than NPCOL. yes bestie, your column, also in bounds, also valid. πŸŽ€

πŸ”₯ SEE ALSO πŸ”₯

  • HPL_pnum (3)
  • HPL_grid_init (3)
  • HPL_grid_exit (3)

and that's the whole page fr fr. this one's from HPL 2.2, dated February 24, 2016 β€” old enough to be iconic, still out here telling processes exactly who they are and where they belong. πŸ’œπŸ’–βœ¨

πŸ“¦ where this page comes from