2004-05-12 05:00:53 +00:00
|
|
|
Execute the following instructions to install the Open MPI system from within the directory at the top of the tree:
|
|
|
|
|
2004-06-07 21:10:17 +00:00
|
|
|
./autogen.sh (if this fails read the HACKING file)
|
2004-05-12 05:00:53 +00:00
|
|
|
./configure --prefix=/where/to/install
|
|
|
|
make install
|
|
|
|
|
|
|
|
To run an MPI program:
|
|
|
|
|
|
|
|
mpicc your-code.c
|
|
|
|
|
|
|
|
In order to run the program, you need to set some envs (use export for bash etc)
|
|
|
|
|
2004-07-01 19:46:39 +00:00
|
|
|
setenv OMPI_MCA_oob_cofs_dir /tmp/cofs
|
|
|
|
setenv OMPI_MCA_pcm_cofs_cellid 1
|
|
|
|
setenv OMPI_MCA_pcm_cofs_jobid 1
|
2004-05-12 05:00:53 +00:00
|
|
|
|
2004-07-01 19:46:39 +00:00
|
|
|
Then if you need to run say N nodes you need to set:
|
|
|
|
setenv OMPI_MCA_pcm_cofs_num_procs N
|
2004-05-12 05:00:53 +00:00
|
|
|
|
|
|
|
Then in the shell for each you would set
|
|
|
|
|
2004-07-01 19:46:39 +00:00
|
|
|
setenv OMPI_MCA_pcm_cofs_procid MYRANK
|
2004-05-12 05:00:53 +00:00
|
|
|
|
|
|
|
where MYRANK is 0 in one, 1 in the next etc
|
|
|
|
|
2004-07-01 19:46:39 +00:00
|
|
|
Or - you can use the mpirun shell script which sets these for you...
|
2004-05-12 05:00:53 +00:00
|
|
|
|
2004-03-26 21:34:01 +00:00
|
|
|
This is the world's greatest MPI, version 10.0a1r975.
|
2004-07-01 19:46:39 +00:00
|
|
|
|