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 |
| 73 | http://code.google.com/p/pypar/ Use svn to get the most recent version of the code. |
| 74 | The tarred version is a little old. |
| 75 | |
| 76 | (There is also an old version on sourceforge, do not use that) |
| 77 | |
| 78 | From your home directory run the command |
| 79 | {{{ |
| 80 | svn checkout http://pypar.googlecode.com/svn/ pypar |
| 81 | }}} |
| 82 | |
| 83 | This produces a directory |
| 84 | {{{ |
| 85 | /home/username/pypar |
| 86 | }}} |
| 87 | |
| 88 | Change to the {{{/home/username/pypar/source}}} directory, and then run the command |
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 | | |