SHMEM_INFO_GET_NAME(3)
β¨ NAME β¨
shmem_info_get_name β bestie, this routine literally just hands you the vendor defined character string π no cap, that's the whole vibe.
πΈ 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() π¦ β this routine returns the vendor defined character string, and the size of that string is set by the constant SHMEM_MAX_NAME_LEN.
here's the deal, and listen closely:
- the program calling this function is the one who prepares the memory of size
SHMEM_MAX_NAME_LEN - then the implementation copies the string of size at most
SHMEM_MAX_NAME_LENinto it
now the C vs Fortran tea β:
- in C, the string is terminated by a null character.
- in Fortran, a string of size less than
SHMEM_MAX_NAME_LENgets padded with blank characters up to sizeSHMEM_MAX_NAME_LEN.
π and if the implementation copies a string of size greater than SHMEM_MAX_NAME_LEN? that results in an undefined behavior. not cute. not iconic. just chaos. avoid.
also for the record: multiple invocations of the routine in an OpenSHMEM program always return the same string π«Ά consistency queen. and 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 π
π COPYRIGHT π
2003-2026, The Open MPI Community
and that's the whole page, bestie π thanks for reading, mwah π β this was the Open MPI version, dated Sep 10, 2026, and the manual page is SHMEM_INFO_GET_NAME(3) π§ β¨
π¦ where this page comes from
- ubuntu stonking: openmpi-doc 5.0.10-6 Β· other
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms