[mvapich-discuss] mpiexec_cr (small) issue

Qi Gao gaoq at cse.ohio-state.edu
Fri Mar 2 09:58:25 EST 2007


Hi,

Thanks for trying MVAPICH2 and providing this patch to fix the problem!

I'll incorporate this patch to our svn.

Thanks,
--Qi
  ----- Original Message ----- 
  From: xb 
  To: mvapich-discuss at cse.ohio-state.edu 
  Sent: Friday, March 02, 2007 8:09 AM
  Subject: [mvapich-discuss] mpiexec_cr (small) issue


  Hello all,

  Trying to run mpiexec with cr enabled, I hit a (small) problem where running mpiexec without specifying a path to the command, I get a "command line too long" message. Command works OK if we specify a path before the command name.
  Hereafter a patch that fixes this (small) problem.

  xavier


  traces ----------------------------------------------------------------------------------

  # mpiexec -n 2 ./cpi
  command line too long
  # /usr/local/mvapich2/bin/mpiexec -n 2 ./cpi
  Process 0 of 2 is on woodcr1
  Process 1 of 2 is on woodcr1
  pi is approximately 3.1415926544231318, Error is 0.0000000008333387
  wall clock time = 0.223271
  #
  Patched command:
  # mpiexec -n 2 ./cpi
  Process 0 of 2 is on woodcr1
  Process 1 of 2 is on woodcr1
  pi is approximately 3.1415926544231318, Error is 0.0000000008333387
  wall clock time = 0.224422
  # 

  Patch ---------------------------------------------------------------------------------------
  --- mvapich2-trunk-2007-03-01/src/pm/mpd/mpiexec_cr.c~    2007-02-16 21:17:51.000000000 +0100
  +++ mvapich2-trunk-2007-03-01/src/pm/mpd/mpiexec_cr.c    2007-03-02 13:51:11.000000000 +0100
  @@ -435,7 +435,8 @@
       CR_Init();
       /*replace the command line to mpiexec*/
       rchar = strrchr(argv[0],'/');
  -    length = rchar+1-argv[0];
  +    /* strrchr returns NULL if char is not found */
  +    length = rchar ? rchar+1-argv[0] : 0;
       if (length+strlen(MPIRUN)>MAX_PATH_LEN) {
           fprintf(stderr,"command line too long\n");
           exit (1);





------------------------------------------------------------------------------


  _______________________________________________
  mvapich-discuss mailing list
  mvapich-discuss at cse.ohio-state.edu
  http://mail.cse.ohio-state.edu/mailman/listinfo/mvapich-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.cse.ohio-state.edu/pipermail/mvapich-discuss/attachments/20070302/5396c31d/attachment.html


More information about the mvapich-discuss mailing list