Go to the first, previous, next, last section, table of contents.


Initialization and termination functions

C function: void shmem_initialize (int *argc, char ***argv)
This function, which is not part of the SGI/Cray SHMEM library, initializes the local SHMEM system. It must be called before any of the other SHMEM functions are called. It modifies argc and argv, removing the -np and -key arguments. All nodes synchronize on this call.

The function also initializes the FM system, which makes it possible for FM error messages to result from calling this function.

C function: void shmem_finalize (void)
This function, which is not part of the SGI/Cray SHMEM library, is used to shut down FM and remove all of the FM data structures.


Go to the first, previous, next, last section, table of contents.