source: pypar/contrib/fra_DOUG.husk3 @ 900

Last change on this file since 900 was 85, checked in by ole, 19 years ago

Added pypar files

File size: 3.7 KB
RevLine 
[85]1Hi Ole,
2
3Sorry I don't have the original handy and I'm running out of the house, but
4here's the affected line... shouldn't be hard to find.  It's around line
5472 in mpiext.c.  I'll let you know how things go as I start to use it more!
6
7   /* Reconstruct C-commandline */
8   /*                           */
9   argc = PyList_Size(input); //Number of commandline arguments
10- argv = (char**) malloc((argc)*sizeof(char*));
11+ argv = (char**) malloc((argc+1)*sizeof(char*));
12
13   for (i=0; i<argc; i++)
14     argv[i] = PyString_AsString( PyList_GetItem(input, i) );
15
16+ argv[i] = NULL;
17
18
19
20
21At 06:53 PM 8/29/2003 +1000, Ole Moller Nielsen wrote:
22>Hi Doug
23>
24>Thank you so much for your input.
25>I'll put it into the todo list.
26>I will be teaching a high performamnce course next semester in Thailand
27>and updating pypar is on the agenda.
28>
29>I gather that youi got it to work by fixing pypar to honor
30>the 'NULL' assumption you mentioned, right?
31>And, yes, I'd be very happy to see the diff or even the fixed version
32>if you don't mind.
33>
34>(I'll add you to the growing list of contributors)
35>
36>
37>Cheers
38>Ole
39>
40>On Thu, Aug 28, 2003 at 03:22:00PM -0400, Doug Orr wrote:
41> >
42> > Hey Ole,
43> >
44> > One more suggestion -- it's obvious in retrospect, but it would be useful
45> > to note in your install docs that you need to have Numeric, pypar, and
46> > python 2.3 (for the current version of Numeric, anyway) installed on all
47> > hosts.  It's what I *thought*, but trying without that set up produced no
48> > valuable diagnostic indicating why I was losing.  I would have saved a
49> > little time if I had gone ahead and done all of the installs as my first
50> > step...
51> >
52> > Not a big deal, but it's always good to hear from the people currently
53> > enduring pain, since they always for get what the pain was after it's over
54> > :)
55> >
56> >         -Doug
57> >
58> > At 09:57 PM 8/28/2003 +1000, Ole Moller Nielsen wrote:
59> > >Hi Doug
60> > >
61> > >Thank you very much for your mail
62> > >
63> > >May I ask what platform you are using: Solaris, Linux, Windows?
64> > >
65> > >Pypar was tested on all the platforms I had access to when I wrote it.
66> > >These days I use it exclusively with Linux.
67> > >
68> > >Cheers
69> > >Ole
70> > >
71> > >
72> > >On Wed, Aug 27, 2003 at 11:59:29PM -0400, Doug Orr wrote:
73> > >> hi ole,
74> > >>
75> > >> I'm trying pypar with lam7.0 and it was crashing in MPI_Init.  it looks
76> > >> like they're assuming the last argument in the argv list is NULL.
77> > >>
78> > >> I assume someone has probably already pointed this out, but just in
79> > >case...
80> > >>
81> > >>       -doug
82> > >>
83> > >
84> > >--
85> > >-------------------------------------------------------------------
86> > >Ole Nielsen                     | Email: Ole.Nielsen@anu.edu.au
87> > >-------------------------------------------------------------------
88> > >Mathematical Sciences Institute | Phone: +61 2 6125 3873 (Direct)
89> > >Australian National University  | Fax:   +61 2 6125 5549
90> > >Canberra ACT 0200               |
91> > >Australia                       |
92> > >-------------------------------------------------------------------
93> > >ANU CRICOS # 00120C
94> > >-------------------------------------------------------------------
95> >
96>
97>--
98>-------------------------------------------------------------------
99>Ole Nielsen                     | Email: Ole.Nielsen@anu.edu.au
100>-------------------------------------------------------------------
101>Mathematical Sciences Institute | Phone: +61 2 6125 3873 (Direct)
102>Australian National University  | Fax:   +61 2 6125 5549
103>Canberra ACT 0200               |
104>Australia                       |
105>-------------------------------------------------------------------
106>ANU CRICOS # 00120C
107>-------------------------------------------------------------------
108
Note: See TracBrowser for help on using the repository browser.