User guide
6–SHMEM Description and Configuration
SHMEM Programs
IB0054606-02 A 6-3
By default QLogic SHMEM is installed with a prefix of /usr/shmem/qlogic into the
following directory structure:
/usr/shmem/qlogic
/usr/shmem/qlogic/bin
/usr/shmem/qlogic/bin/mvapich
/usr/shmem/qlogic/bin/mvapich2
/usr/shmem/qlogic/bin/openmpi
/usr/shmem/qlogic/lib64
/usr/shmem/qlogic/lib64/mvapich
/usr/shmem/qlogic/lib64/mvapich2
/usr/shmem/qlogic/lib64/openmpi
/usr/shmem/qlogic/include
QLogic recommends that /usr/shmem/qlogic/bin is added onto your $PATH.
If it is not on your $PATH, then you will need to give full pathnamescd to find the
shmemrun and shmemcc wrapper scripts.
SHMEM Programs
Basic SHMEM Program
Following is an example of a basic SHMEM program:
% cat shmem_world.c
#include <shmem.h>
#include <stdio.h>
int main ()
{
shmem_init();
printf("Hello from PE %d out of %d\n", my_pe(), num_pes());
return 0;
}
NOTE
There are subdirectories inside of bin for each MPI that are supported.
These contain SHMEM benchmark programs that are linked directly against
the MPI libraries as well as the SHMEM libraries.