List Info

Thread: LAM: mpiexec bug




LAM: mpiexec bug
country flaguser name
United States
2007-06-29 13:16:19
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

mpiexec script does not pass $ssi_args to lamboot (it passes
them to
mpirun though).

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org


iD8DBQFGhUxzPp1Qsf2qnMcRAjfPAJ9vSqU3Kb+RITzBZHC2KY1qUANZJACg
rS4a
CLJCYGI4K7VX34V1zKnOoQ8=
=5ssc
-----END PGP SIGNATURE-----
_______________________________________________
This list is archived at http://www.l
am-mpi.org/MailArchives/lam/

Re: LAM: mpiexec bug
country flaguser name
United States
2007-06-29 13:26:06
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Sam Steingold wrote:
> mpiexec script does not pass $ssi_args to lamboot (it
passes them to
> mpirun though).

here is the fix:

2007-06-29  Sam Steingold  <sdsgnu.org>

	* mpiexec (parse_global_args): quote ssi option values
	to allow multi-word values such as boot_rsh_agent "ssh
-x"
	(few): pass $ssi_args to lamboot

- --- /home/sds/mpiexec   2005-03-08 16:55:36.000000000
-0500
+++ /usr/bin/mpiexec    2007-06-29 14:22:12.000000000 -0400
 -413,8
+413,8 
        } elsif ($ARGV[$arg_index] eq "-tv") {
            $tv_mode = "-tv";
        } elsif ($ARGV[$arg_index] eq "-ssi") {
- -            $ssi_args = "$ssi_args -ssi " .
$ARGV[++$arg_index] . " " .
- -                $ARGV[++$arg_index];
+            $ssi_args = "$ssi_args -ssi " .
$ARGV[++$arg_index] . " "" .
+                $ARGV[++$arg_index] . """;
        } elsif ($ARGV[$arg_index] eq "-h") {
            show_help();
            exit(0);
 -777,7
+777,7 
            if ( $prefix_boot == 1) {
                $prefix_arg = "-prefix
$prefix_path";
            }
- -           exec("lamboot $boot_flag $verbose_mode
$debug_mode $bootargs
$prefix_arg $machinefile")
+           exec("lamboot $ssi_args $boot_flag
$verbose_mode $debug_mode
$bootargs $prefix_arg $machinefile")
                || die "mpiexec cannot exec lamboot
$machinefile: $!n";
        }

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org


iD8DBQFGhU6+Pp1Qsf2qnMcRAgA6AJwKmFTmmADGCXIR2zOR4vJQ0adPCACd
HouL
gZyt72ODi6EaAlcf1ScrJcE=
=mz0q
-----END PGP SIGNATURE-----
_______________________________________________
This list is archived at http://www.l
am-mpi.org/MailArchives/lam/

Re: LAM: mpiexec bug
country flaguser name
United States
2007-07-02 22:47:56
On Jun 29, 2007, at 2:16 PM, Sam Steingold wrote:

> mpiexec script does not pass $ssi_args to lamboot (it
passes them to
> mpirun though).

Thanks, you're correct that there is a problem with how
mpiexec  
passes SSI arguments to lamboot (or doesn't, as the case may
be).   
There's also a problem with how arguments are escaped, which
causes  
problems for arguments like "ssh -x".  I have
fixed both these issues  
in our subversion repository.  They will be part of the next
LAM/MPI  
release.

Thanks for bringing this to our attention,

Brian

-- 
   Brian Barrett
   LAM/MPI Developer
   Make today a LAM/MPI day!


_______________________________________________
This list is archived at http://www.l
am-mpi.org/MailArchives/lam/

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )