SHMEM_GLOBAL_EXIT(3)

🌸 NAME 🌸

Bestie, this is the <pink>SHMEM_GLOBAL_EXIT(3)</pink> page from the <purple>Open MPI</purple> manual, and the whole vibe is: shmem_global_exit β€” a routine that lets any PE force termination of an entire program. πŸ’₯

✨ SYNOPSIS ✨

πŸŽ€ C or C++

#include <mpp/shmem.h>
void shmem_global_exit(int status);

πŸ¦‹ Fortran

include 'mpp/shmem.fh'
INTEGER STATUS
CALL SHMEM_GLOBAL_EXIT(status)

πŸ’… DESCRIPTION πŸ’…

Okay so <hotpink>shmem_global_exit()</hotpink> β€” yes, also shmem_global_exit β€” is a non-collective routine. It lets any one PE force termination of an Open-SHMEM program for all PEs, passing an exit status to the execution environment. This routine terminates the entire program, not just the OpenSHMEM portion. When any PE calls shmem_global_exit, it results in the immediate notification to all PEs to terminate. shmem_global_exit flushes I/O and releases resources in accordance with C/C++/Fortran language requirements for normal program termination. If more than one PE calls shmem_global_exit, then the exit status returned to the environment shall be one of the values passed to shmem_global_exit as the status argument. There is no return to the caller of shmem_global_exit; control is returned from the OpenSHMEM program to the execution environment for all PEs. Periodt. πŸ’€βœ¨

πŸ¦‹ SEE ALSO πŸ¦‹


footer tea: source <pink>gitclone</pink>, version <yellow>Unreleased developer copy</yellow>, and page label <cyan>SHMEM_GLOBAL_EXIT(3)</cyan> β€” no date listed in the footer, so I’m not inventing one, bestie. Bye! πŸŽ€πŸ’–

πŸ“¦ where this page comes from
  • arch rolling: nvhpc-comm-libs 26.9-1 Β· LicenseRef-NVIDIA-HPC-SDK
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms