Cbb/Baobab/examples

From Computer Science Wiki
Revision as of 14:47, 6 November 2014 by Rhunter (talk | contribs) (Created page with "Hello example mpi program: <PRE> </PRE> <HR> How to compile: First: Setup your environment to use mpi <PRE> module add openmpi-x86_64 </PRE> I generally recommend you add th...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Hello example mpi program:



How to compile:

First: Setup your environment to use mpi

module add openmpi-x86_64

I generally recommend you add this to your .bashrc file.

Second: Compile your program

mpicc -o hello hello.c

Third: Edit your submit script to match how you want to run your parallel program.

vi sub_script

Forth: Submit your script into the queue

qsub sub_script