HPL_grid_init(3)
π HPL_grid_init(3) π
HPL Library Functions β¨ the one where we build a whole grid of processes
π NAME π
HPL_grid_init β create a process grid. bestie we're literally building the grid. no cap.
β¨ SYNOPSIS β¨
#include "hpl.h"
int HPL_grid_init( MPI_Comm COMM, const HPL_T_ORDER ORDER, const int
NPROW, const int NPCOL, HPL_T_grid * GRID );
π¦ DESCRIPTION π¦
Okay so HPL_grid_init creates a NPROW x NPCOL process grid, and it does it using column- or row-major ordering, starting from an initial collection of processes that get identified by an MPI communicator. That's the whole vibe. π
Successful completion is indicated by the returned error code MPI_SUCCESS. Any other error codes? Those depend on the MPI implementation, so like, ask your MPI, not me. π
Also important: the coordinates of processes that are not part of the grid get set to values outside of [0..NPROW) x [0..NPCOL). So if you're not in the grid, you're literally outside the range. not invited to the party, coordinates say so. π«
πΈ ARGUMENTS πΈ
COMMβ (global/local input)MPI_Commβ On entry,COMMis the MPI communicator identifying the initial collection of processes out of which the grid is formed. it's giving guest list. π«ΆORDERβ (global input)const HPL_T_ORDERβ On entry,ORDERspecifies how the processes should be ordered in the grid, like this:ORDER = HPL_ROW_MAJORβ row-major ordering;ORDER = HPL_COLUMN_MAJORβ column-major ordering;
NPROWβ (global input)const intβ On entry,NPROWspecifies the number of process rows in the grid to be created.NPROWmust be at least one. minimum one, periodt. 1οΈβ£NPCOLβ (global input)const intβ On entry,NPCOLspecifies the number of process columns in the grid to be created.NPCOLmust be at least one. same energy, minimum one. 1οΈβ£GRIDβ (local input/output)HPL_T_grid *β On entry,GRIDpoints to the data structure containing the process grid information to be initialized. it's the little container we're filling up. π
π SEE ALSO π
HPL_pnum(3)HPL_grid_info(3)HPL_grid_exit(3)
and that's the tea, bestie π go forth and grid-ify. mwah π
this was HPL 2.2, dated February 24, 2016 β iconic behavior honestly, we stan a classic πβ¨
π¦ 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