Changeset 137


Ignore:
Timestamp:
04/07/09 12:33:39 (7 years ago)
Author:
mmckerns
Message:

added better docs for how to setup; added setup helper script

Files:
3 added
5 edited

Legend:

Unmodified
Added
Removed
  • mystic/examples/README

    r133 r137  
    4141 - test_mogi_anneal.py: tests with scipy simulated annealing, but hasn't been tuned, so again, doesn't work at all. 
    4242 - test_mogi2.py: two mogi sources 
    43  - test_mpimogi.py: mpi version of test_mogi.py, default uses 4 proc 
    44  - test_mpimogi2.py: mpi version of test_mogi2.py, default uses 4 proc 
    4543 - test_mogi3.py: reimplements test_mogi  
    4644 
  • pyina/applications/Make.mm

    r136 r137  
    2323    machines.py \ 
    2424    mpiversion.py \ 
     25    mpi_world.py \ 
    2526 
    2627export:: export-binaries release-binaries 
  • pyina/examples_other/Make.mm

    r136 r137  
    2323    hello.py \ 
    2424    pypi.py \ 
     25    test_mpi_world.py \ 
    2526    test0.py \ 
    2627    test1.py \ 
  • pyina/examples_other/README

    r88 r137  
    1 To launch an mpipython job, do, for example, 
     1= notes on pyina examples = 
     2Dependencies: 
     3 - ... 
    24 
    3 mpirun -np 4 `which mpipython.exe` python_script 
     5Exceptions to the rule: 
     6 - ... 
    47 
    5 extrapolate as needed. 
    6  
    7 if jobs exit uncleanly, you may need to run 
    8  
    9 /opt/mpich/gnu/sbin/cleanipcs; cluster-fork /opt/mpich/gnu/sbin/cleanipcs 
    10  
    11 also 
    12  
    13 cluster-fork killall mpipython.exe 
     8Special examples: 
     9 - ... 
    1410 
    1511 
    16 adapted from pyina CVS 2008-07-07 
    17 requires pyre.mpi built as in svn@danse.us/pyre/branches/mpi-lib 
     12------------------------------------------------------------------------------- 
     13 
     14Notes on the "ezmap" examples: 
     15 - ... 
     16 
     17Notes on the "mogi" examples: 
     18 - ... 
     19 
     20 
     21------------------------------------------------------------------------------- 
     22 
     23Notes on the examples in the "../examples" directory: 
     24 - ... 
     25 - test_mpimogi.py: mpi version of mystic's test_mogi.py, default uses 4 proc 
     26 - test_mpimogi2.py: mpi version of mystic's test_mogi2.py, default uses 4 proc 
     27 
    1828 
    1929# end of file 
  • pyina/pyina/README

    r88 r137  
    1 To launch an mpipython job, do, for example, 
     1This package contains the beginnings of a parallel-mapping implementation 
     2of the mystic inversion framework.  The core launcher uses mpi. 
    23 
    3 mpirun -np 4 `which mpipython.exe` python_script 
     4This package was adapted from the pyina CVS 2008-07-07. 
     5It requires: 
     6 - numpy 
     7 - mystic 
     8 - pyre.mpi (built from svn@danse.us/pyre/branches/mpi-lib) 
     9 - journal (part of pythia-0.8; see http://danse.us/trac/pyre) 
    410 
    5 extrapolate as needed. 
    611 
    7 if jobs exit uncleanly, you may need to run 
     12############################################################################## 
    813 
    9 /opt/mpich/gnu/sbin/cleanipcs; cluster-fork /opt/mpich/gnu/sbin/cleanipcs; cluster-fork killall mpipython.exe 
     14WARNING: 
     15To run all of the examples in the "examples" directory, 
     16you _must_ copy some files from mystic/examples. 
    1017 
    11 adapted from pyina CVS 2008-07-07 
     18 * Change to the pyina root directory 
     19     $ cd .. 
     20 * Copy the files: 
     21     $ ./mystic_files.py  
     22 * Remove the files: 
     23     $ ./mystic_files.py -clean 
     24 
     25 
     26WARNING: 
     27To run pyina code, you _must_ have your console configured for MPI. 
     28  * Start mpd 
     29     $ mpd & 
     30  * Configure master and slaves 
     31     $ mpi_world.py -slaves [node1,node2,node3] 
     32 
     33 
     34NOTE: 
     35It is convienent to set a shell alias for the launch of 
     36the mpipython jobs.  Something like the following (for bash): 
     37    $ alias mpython1='mpiexec -np 1 `which mpipython.exe`' 
     38    $ alias mpython2='mpiexec -np 2 `which mpipython.exe`' 
     39    $ ... 
     40 
     41 
     42NOTE: 
     43There's also a convienent script to tear down your mpi environment. 
     44  * Kill all 
     45      $ mpi_world -kill 
     46 
     47 
     48NOTE: 
     49If jobs exit uncleanly, you may need to run some cleanup scripts. 
     50  * Clean up 
     51      $ /opt/mpich/gnu/sbin/cleanipcs 
     52      $ cluster-fork /opt/mpich/gnu/sbin/cleanipcs 
     53      $ cluster-fork killall mpipython.exe 
     54 
    1255 
    1356# end of file 
Note: See TracChangeset for help on using the changeset viewer.