MPI_T_PVAR_START(3)
π MPI_T_PVAR_START(3) β an Open MPI moment π
okay bestie, buckle up, because this one is literally the "on/off switch" of the MPI_T world and honestly? iconic. We're talking MPI_T_pvar_start and MPI_T_pvar_stop β the duo that starts and stops a performance variable. Yes, that's the whole vibe. Let's get into it β¨
πΈ NAME πΈ
MPI_T_pvar_start, MPI_T_pvar_stop β start/stop a performance variable, no cap π
π¦ SYNTAX π¦
π C Syntax
#include <mpi.h>
int MPI_T_pvar_start(MPI_T_pvar_session session, MPI_T_pvar_handle handle)
int MPI_T_pvar_stop(MPI_T_pvar_session session, MPI_T_pvar_handle handle)
like, that's it. two functions, four arguments total, absolutely serving minimalism π«Ά
β INPUT PARAMETERS β
sessionβ the performance experiment session. think of it as the group chat your variable is living in π¬handleβ the performance variable handle. this is your little VIP pass to the specific variable you're obsessed with ποΈ
π₯ DESCRIPTION π₯
So MPI_T_pvar_start starts the performance variable whose handle you passed in handle. The way that works is literally just... you hand it the handle, it starts it. main character energy.
And here's the fun part: you can pass the special value MPI_T_PVAR_ALL_HANDLES in handle to start all non-continuous handles in the session specified in session. one call, whole squad activated. ate π
β¨
MPI_T_pvar_stop does the mirror-image thing β it stops the performance variable with the handle specified in handle. Same deal: the special value MPI_T_PVAR_ALL_HANDLES can be passed in handle to stop all non-continuous handles in the session specified in session. whole squad, but going to sleep π΄
β οΈ okay important caveat bestie, do NOT skip this: continuous performance variables can neither be started nor stopped. Like, they're always on. They don't need your help. They're built different. Trying to start/stop one is just not the move π
π ERRORS π
MPI_T_pvar_start and MPI_T_pvar_stop() will fail if:
MPI_T_ERR_NOT_INITIALIZEDβ The MPI Tools interface not initialized. like, you gotta boot it up first, babe π±MPI_T_ERR_INVALID_SESSIONβ Session parameter is not a valid session. that session does not exist, fr fr π»MPI_T_ERR_INVALID_HANDLEβ Invalid handle or handle not associated with the session. wrong VIP pass, wrong party π«MPI_T_ERR_PVAR_NO_STARTSTOPβ The variable cannot be started or stopped. see the continuous-variable thing above, it's giving "not that kind of variable" π
π§ SEE ALSO: π§
MPI_T_pvar_get_infoβ go read this one next, it's the info desk of the pvar world π
π COPYRIGHT π
2003-2026, The Open MPI Community. protect it, cite it, love it π
and that's the tea, bestie π β Open MPI, dated Sep 11, 2026, page MPI_T_PVAR_START(3), signed off with love from your favorite manual page πππ¦
π¦ 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