## shmem_init

#### Purpose

Called at the beginning of a program to enable the use of IBM openshmem library.

#### C syntax

    #include <shmem.h>

    void shmem_init(void);

#### Description

The function shmem_init initialises the Shmem library.

The shmem_init call must me made before any other Shmem library calls. The function shmem_init should only be called once for each process.

#### C examples

    #include <shmem.h>

    int main(int argc, char *argv[])
    {
      shmem_init(void);
    }

#### Related information

Subroutines: num_pes, my_pe

OpenSHMEM API Index