[Ocfs2-test-devel] [PATCH 1/6] ocfs2-test: write_torture - Converted from LAM/MPI to OpenMPI.

tristan.ye tristan.ye at oracle.com
Mon Jan 5 17:38:30 PST 2009


On Mon, 2009-01-05 at 12:27 -0800, Marcos Matsunaga wrote:
> Signed-off-by: Marcos Matsunaga <Marcos.Matsunaga at oracle.com>
> ---
>  programs/write_torture/run_write_torture.py |    8 +++++---
>  1 files changed, 5 insertions(+), 3 deletions(-)
> 
> diff --git a/programs/write_torture/run_write_torture.py b/programs/write_torture/run_write_torture.py
> index 3781393..a61bc78 100755
> --- a/programs/write_torture/run_write_torture.py
> +++ b/programs/write_torture/run_write_torture.py
> @@ -208,12 +208,14 @@ for z in range(options.count):
>  	0, 
>  	'')
>  #
> -	o2tf.StartMPI(DEBUGON, options.nodelist, logfile)
> -	o2tf.lamexec(DEBUGON, options.procs, config.WAIT, 
> +	o2tf.OpenMPIInit(DEBUGON, options.nodelist, logfile, 'ssh')
> +	o2tf.openmpi_run(DEBUGON, options.procs,
>  		str('%s -b %s -l %s -s %s -f %s' % (cmd, 
>  		options.blocksize, 
>  		options.logfile, 
>  		options.seconds, 
>  		os.path.join(options.directory, filename) ) ), 
>  		options.nodelist, 
> -		options.logfile)
> +		'ssh',
> +		options.logfile,
> +		'WAIT')

We'd better capture the return code of openmpi_run to keep a consistency
among all python launcher, such as

ret = o2tf.openmpi_run(...)

if not ret:
	o2tf.printlog('run_write_torture: main - execution successful.',
                logfile, 0, '')



Tristan.





More information about the Ocfs2-test-devel mailing list