Using-sooner

From Education

Jump to: navigation, search

Building and Running Programs on Sooner


Copy the example files to your directory:

$ cp ~charliep/SIGCSE/* .

Setup your environment by either typing these commands manually:

$ export MPI_COMPILER=gcc
$ export MPI_INTERCONNECT=ib
$ export MPI_VENDOR=openmpi
$ export LSF_PJL_TYPE=openmpi

Or, execute the shell script that you copied to your account earlier:

$ source setup.sh

To build and run your program:

$ mpicc -O mpihello.c -o mpihello
$ echo 'mpirun.lsf ./mpihello' | bsub -I -n 2 -R "span[ptile=2]"
Personal tools
SC Education sites