MPI on the SGI machines using IMSL
Sample mpi application using fortran 90 and IMSL on our sgi machines can
be found in the directory:
/u00/job-examples/mpi/sgi/fortran/imsl-mpi
In this directory you you will find a Makefile and a sample fortan 90
program. Before you attempt to compile this code you must setup your
IMSL evironment as follows:
ccs1> source /usr/local/vni/CTT4.0/ctt/bin/cttsetup.csh
Once the code is compiled you can run it:
ccs1> mpirun -np 2 $PWD/parallel_ex02
The option "-np 2" will run this on 2 CPUs.
MPI on the Linux cluster
Sample mpi application using C on the oneSIS Linux cluster can be found
in the directory:
/u00/job-examples/mpi/oneSIS/
In this directory you you will find a sample C
program(cpi.c) and a job submission script for the oneSIS cluster.
Before you attempt to compile this code you must setup your
MPI evironment as follows:
ares> module load gcc/4.1.0
ares> module load openmpi/1.1.1-1_gcc
Once the code is compiled you can run it as follows:
ares> bsub
Keep in mind each node can have 2 or 4 cpu cores. For more information on this please look at the oneSIS documentation
here.