#1 mpich options on linux confuse python getopt() loop

closed
nobody
None
5
2001-05-30
2001-01-17
Martin Casado
No

When running mpi on linux (mpirun -np2 foo), mpich creates a
temporary host.list file and points to it via the -p4pg option. This,
when passed to the patchedmain.c file, confuses the getopt() loop, resulting
int an error which looks like the following.

tc03{casado}43: ./pyMPI -p4pg
./pyMPI: illegal option -- p
usage: ./pyMPI [option] ... [-c cmd | file | -] [arg] ...
Options and arguments (and corresponding environment variables):
-d : debug output from parser (also PYTHONDEBUG=x)
........ etc.

** Solution?

Break initmpi() into two parts, the first which contains MPI_Init() or pyAlternateMPIStartup() and executes before the getopt() loop. The second
initializes all the python objects and must be called after python has been initizliazed.

Discussion

  • Martin Casado
    Martin Casado
    2001-02-01

    Fixed it, check out the task list

     
  • Martin Casado
    Martin Casado
    2001-05-30

    • status: open --> closed