HPL_grid_info(3)
π 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,GRIDpoints 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,NPROWspecifies the number of process rows in the grid.NPROWis at least one. so like, never zero, we always have at least a row. periodt. πNPCOL(global output) βint *β On exit,NPCOLspecifies the number of process columns in the grid.NPCOLis at least one. same energy, at least one column, always. πMYROW(global output) βint *β On exit,MYROWspecifies my row process coordinate in the grid.MYROWis greater than or equal to zero and less thanNPROW. so it's a real coordinate, fully in bounds, main character energy confirmed. βMYCOL(global output) βint *β On exit,MYCOLspecifies my column process coordinate in the grid.MYCOLis greater than or equal to zero and less thanNPCOL. 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
- fedora 43: hpl-doc 2.2-22.fc43 Β· LicenseRef-Callaway-BSD-with-advertising
- fedora 44: hpl-doc 2.2-23.fc44 Β· LicenseRef-Callaway-BSD-with-advertising
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms