Changes between Version 23 and Version 24 of AnugaParallel


Ignore:
Timestamp:
Jan 13, 2012, 8:10:56 AM (12 years ago)
Author:
steve
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AnugaParallel

    v23 v24  
    6666
    6767
    68 
    69 ==== PYPAR ====
     68==== pypar ====
    7069
    7170
    7271
    7372We use pypar as the interface between mpi and python. The most recent version of PYPAR is available from
    74 http://code.google.com/p/pypar/
    75 
    76 (There is an old version on sourceforge, do not use that)
    77 
    78 Install pypar following the instructions in the download. You should be able use the standard command
    79 
    80 {{{
    81 python setup.py install
    82 }}}
    83 
    84 or maybe
     73http://code.google.com/p/pypar/ Use svn to get the most recent version of the code.
     74The tarred version is a little old.
     75
     76(There is also an old version on sourceforge, do not use that)
     77
     78From your home directory run the command
     79{{{
     80svn checkout http://pypar.googlecode.com/svn/ pypar
     81}}}
     82
     83This produces a directory
     84{{{
     85/home/username/pypar
     86}}}
     87
     88Change to the {{{/home/username/pypar/source}}} directory, and then run the command
    8589
    8690{{{
     
    8892}}}
    8993
    90 from the source directory in the pypar distribution.
     94This should install pypar.
    9195
    9296Fire up python and see if you can {{{import pypar}}}
     
    103107
    104108
    105 ==== Problem with pypar Installation ====
    106 
    107 We have been seeing the following error when trying to import {{{pypar}}}.
    108 
    109 {{{
    110 >>> import pypar
    111 Traceback (most recent call last):
    112   File "<stdin>", line 1, in <module>
    113   File "pypar.py", line 863, in <module>
    114     mpi = CDLL('libmpi.so.0', RTLD_GLOBAL)
    115   File "/usr/lib/python2.6/ctypes/__init__.py", line 353, in __init__
    116     self._handle = _dlopen(self._name, mode)
    117 OSError: libmpi.so.0: cannot open shared object file: No such file or directory
    118 }}}
    119 
    120 For us this was caused by there not being a file {{{libmpi.so.0}}} in the {{{/usr/lib}}} directory. This is really a {{{pypar}}} bug, but as a work around we created a link from the file {{{/usr/lib/libmpi.so}}} to {{{/usr/lib/libmpi.so.0}}} via the command
    121 
    122 {{{
    123 sudo ln /usr/lib/libmpi.so /usr/lib/libmpi.so.0
    124 }}}
    125 
    126 Then {{{import pypar}}} should produce the following
    127 
    128 {{{
    129 >>> import pypar
    130 Pypar (version 2.1.4) initialised MPI OK with 1 processors
    131 }}}
    132 
    133109By the way, it is sometimes useful to fire up a new console to see if these
    134110installations work in a clean console.
    135111
    136 === PYMETIS ===
    137 
     112=== pymetis ===
    138113
    139114In the anuga_parallel directory there is a subdirectory pymetis.
     
    155130
    156131
    157 === anuga_parallel  ===
     132=== Running anuga_parallel  ===
    158133
    159134You should now be ready to run some parallel anuga code. Go back to the anuga_parallel directory and run test_all.py