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
- Copyright (c) 2015 University of Houston. All rights reserved
- Copyright (c) 2015 Mellanox Technologies, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms