MPI_T_CATEGORY_GET_PVARS(3)
π MPI_T_category_get_pvars β the Open MPI tea β
okay so bestie, welcome to the MPI_T_category_get_pvars man page (that's the MPI_T_CATEGORY_GET_PVARS(3) one, from the Open MPI manual, if we're being official about it β¨). It's a tiny little function and honestly it's giving "small but mighty" β let's get into it π«Ά
β¨ SYNTAX β¨
π C Syntax
#include <mpi.h>
int MPI_T_category_get_pvars(int cat_index, int len, int indices[])
like, that's the whole vibe right there π
πΈ INPUT PARAMETERS πΈ
cat_indexβ the index of the category you're asking about. which category? this one, bestie π―lenβ the length of theindicesarray. yes, you gotta tell it how big your array is, it's not a mind reader π
π¦ OUTPUT PARAMETERS π¦
indicesβ an integer array of sizelen, and it comes back filled with performance variable indices. that's the whole point, that's the moment π
π DESCRIPTION π
so MPI_T_category_get_pvars is literally the "who's in this category" function. you hand it a category, and it tells you which performance variables live inside it π β¨
and the key detail: a category contains zero or more performance variables. zero! could be empty! could be a whole crowd! no cap, plan accordingly π
π ERRORS π
no bestie, MPI_T_category_get_pvars is not invincible β it will fail if:
MPI_T_ERR_NOT_INITIALIZEDβ the MPI Tools interface isn't initialized yet. you gotta set it up first, babes π€MPI_T_ERR_INVALID_INDEXβ the category index is invalid. wrong index, wrong timeline, it's giving nothing π₯
ok real talk, if you see one of those error codes, it's not a vibe check you passed π check your init and check your index.
π COPYRIGHT π
2003-2026, The Open MPI Community β iconic, protected, periodt π
and that's the page! special shoutout to the Open MPI crew for this one, dated Sep 11, 2026, page MPI_T_CATEGORY_GET_PVARS(3) β mwah, love that for us ππ§ββοΈ
π¦ where this page comes from
- arch rolling: openmpi 5.0.11-1 Β· BSD-3-Clause AND LicenseRef-MPICH
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms