MPI_T_ENUM_GET_INFO(3)
β¨ NAME β¨
MPI_T_enum_get_info β Query information about an enumerator. Okay so this is the Open MPI manual page for MPI_T_ENUM_GET_INFO(3), and yes bestie, itβs giving βtiny tool-interface function with big main character energy.β π
π οΈ SYNTAX π οΈ
C Syntax
#include <mpi.h>
int MPI_T_enum_get_info(MPI_T_enum enumtype, int *num, char *name, int *name_len)
π₯ INPUT PARAMETERS π₯
enumtypeβ Enumerator to be queried. This is the enum bestie youβre asking about. β¨
π INPUT/OUTPUT PARAMETERS π
name_lenβ Length of the string and/or buffer forname.
π€ OUTPUT PARAMETERS π€
numβ number of discrete values represented by this enumeration.nameβ Buffer to return the string containing the name of the category.
π¬ DESCRIPTION π¬
MPI_T_enum_get_info can be used to query information about an enumerator. The function returns the number of discrete values represented by this enumerator in the num parameter. Thatβs literally the vibe: ask the enumerator, get the count. π₯
ποΈ NOTES ποΈ
This MPI tool interface function returns the name of the enumeration as a string. It takes two arguments for the string: name, which specifies a buffer where the name should be stored, and name_len, which must initially specify the size of the buffer pointed to by name. This function will copy at most name_len - 1 characters of the name and sets name_len to the number of characters returned + 1. If name_len is NULL or the value specified in name_len is 0, the name buffer is ignored and the name of the enumeration is not returned. No cap, thatβs the buffer behavior. π
bestie PSA: that name_len situation is lowkey the whole point β donβt skip it. π«Ά
π¨ ERRORS π¨
MPI_T_enum_get_info will fail if:
MPI_T_ERR_NOT_INITIALIZED: The MPI Tools interface not initializedMPI_T_ERR_INVALID_INDEX: The enumeration is invalid or has been deleted
Periodt. π
Β©οΈ COPYRIGHT Β©οΈ
2003-2026, The Open MPI Community
xoxo, your Unix bestie π β this iconic MPI_T_ENUM_GET_INFO(3) page is from Open MPI, dated Sep 11, 2026. Slay. π¦
π¦ 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