Last change
on this file since 7177 was
5779,
checked in by steve, 17 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.4 KB
|
Rev | Line | |
---|
[5779] | 1 | Dear Ole Nielsen, |
---|
| 2 | |
---|
| 3 | I saw your announcement of Pypar on comp.lang.python.announce. In our |
---|
| 4 | programs, we are using Konrad Hinsen's Scientific Python module. I |
---|
| 5 | have a small technical question. You write that one advantage of your |
---|
| 6 | approach is, that one does not need a special version of the Python |
---|
| 7 | executable, just the pypar module. In Scientific Python it is |
---|
| 8 | necessary to modify Python because MPI requires that MPI_Init is |
---|
| 9 | called before the program looks at its command line arguments, and |
---|
| 10 | Python needs to look at its command line arguments to figure out which |
---|
| 11 | script to run. How do you bypass this problem? I know there are MPI |
---|
| 12 | implementations where this is not a problem as MPI only adds extra |
---|
| 13 | stuff to the command-line on the non-master nodes, but there are some |
---|
| 14 | implementation (MPICH, for example) where the whole command line is |
---|
| 15 | replaced with MPI stuff and the command line is only restored when |
---|
| 16 | MPI_Init is called. |
---|
| 17 | |
---|
| 18 | I am very interested to hear if you have found an elegant way to solve |
---|
| 19 | this, as it is slightly annoying to have to have an extra version of |
---|
| 20 | the Python executable. |
---|
| 21 | |
---|
| 22 | |
---|
| 23 | Best regards |
---|
| 24 | |
---|
| 25 | Jakob Schiotz |
---|
| 26 | |
---|
| 27 | |
---|
| 28 | -- |
---|
| 29 | Jakob Schiotz, Ph.D. ! Email: schiotz@fysik.dtu.dk |
---|
| 30 | CAMP, Department of Physics ! WWW: http://www.fysik.dtu.dk/~schiotz/ |
---|
| 31 | Technical University of Denmark ! Phone: (+45) 45 25 32 28 |
---|
| 32 | DK-2800 Lyngby, Denmark ! Fax: (+45) 45 93 23 99 |
---|
| 33 | |
---|
Note: See
TracBrowser
for help on using the repository browser.