SHMEM_INFO_GET_NAME(3)

✨ NAME ✨

okay so bestie, this is the SHMEM_INFO_GET_NAME(3) page from the Open MPI manual β€” and shmem_info_get_name is literally the routine that returns the vendor defined character string. That's the whole errand. πŸ’–


πŸŽ€ SYNOPSIS πŸŽ€

C or C++:

#include <mpp/shmem.h>
void shmem_info_get_name(char *name);

Fortran:

include 'mpp/shmem.fh'
SHMEM_INFO_GET_NAME(NAME)
CHARACTER *(*)NAME

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so shmem_info_get_name() is out here returning the vendor defined character string of size defined by the constant SHMEM_MAX_NAME_LEN. The program calling this function prepares the memory of size SHMEM_MAX_NAME_LEN, and the implementation copies the string of size at most SHMEM_MAX_NAME_LEN. no cap, that's the vibe.

In C, the string is terminated by a null character. In Fortran, the string of size less than SHMEM_MAX_NAME_LEN is padded with blank characters up to size SHMEM_MAX_NAME_LEN.

⚠️ Heads up, bestie: if the implementation copies a string of size greater than SHMEM_MAX_NAME_LEN, that results in undefined behavior. Not slay. Keep it within bounds. πŸ’€

Multiple invocations of the routine in an OpenSHMEM program always return the same string. For a given library implementation, the major and minor version returned by these calls is consistent with the compile-time constants defined in its shmem.h.


🌈 SEE ALSO 🌈


xoxo, bestie β€” this page is from the gitclone source, Unreleased developer copy version, and it's literally called SHMEM_INFO_GET_NAME(3). πŸ’…βœ¨

πŸ“¦ 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