source: anuga_core/source/pypar-numeric/FAQ @ 6226

Last change on this file since 6226 was 5779, checked in by steve, 16 years ago

Added the old version of pypar which works with Numeric. Necessary for parallel code until we move anuga to numpy (and then we can use pypar as distribute via sourceforge).

File size: 1.7 KB
Line 
1
2Q: If I broadcast a general structure how can I specify a
3   suitable buffer for the receiving processes?
4
5A: You must create something large enough to acccommodate the
6   structure (e.g a list conating blanks of sufficent size [' ']*N).
7   The size of N must be estimated but it is OK to be larger   
8   than the broadcasted structure.
9   
10   
11Q: If I broadcast a general structure and specify a string as buffer
12   I receve only garbage.
13   
14A: If you specify a string or a Numerical array as receive buffer
15   you must use vanilla=True in the broadcast call. Otherwise the
16   receiving processes will think that they are receiving data with
17   the type of the specified buffer.     
18
19Q: Why do I have to specify a buffer in broadcast?
20A: Issuing the command broadcast(x,  root=0) on all processors
21   will send the object x from processor 0 to x in every other
22   processor.
23   The same command is issued on all processors so x doubles as
24   send buffer on root and receive buffer on the receiving processors.
25
26   
27
28INSTALLATION
29--------------
30
31
32Q: I installed the pypar package exactly as instructed, everything compiled
33   fine etc.  However, when I run python and enter `import pypar '  it says
34   that mpiext.c hasn't been compiled, even though there is an mpiext.so
35   sitting right in the directory.  I installed it with  --prefix=~.
36
37A: Because you are installing into your own home directory
38   you need to update your PYTHONPATH so that python can find the installed modules.
39   It should be set to ~/python by adding something like the following to
40   your startup script (here bash)
41
42      export PYTHONPATH=.:$HOME/python:${PYTHONPATH}
43
44
45   This is not specific to pypar but general for all packages installed locally.
46   
Note: See TracBrowser for help on using the repository browser.