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 the indices array. yes, you gotta tell it how big your array is, it's not a mind reader 😭

πŸ¦‹ OUTPUT PARAMETERS πŸ¦‹

  • indices β€” an integer array of size len, 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.

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