Open MPI logo

MTT Devel Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all MTT Devel mailing list

Subject: Re: [MTT devel] mpi_details section with different scenarios for command line params
From: Ethan Mallove (ethan.mallove_at_[hidden])
Date: 2008-11-03 10:45:56


On Mon, Nov/03/2008 09:34:07AM, Mike Dubman wrote:
> Hello Guys,
>
> Please suggest the proper way to handle the following:
>
> Is there any way to run "test run" section with a list
> of "mpi_details" sections?

Mike,

There is currently no way to iterate over multiple
mpi_details sections, but there might be an acceptable
workaround. You can create a simple wrapper script to
iterate over variations of your MPI details section using
command line INI file overrides (see
https://svn.open-mpi.org/trac/mtt/wiki/INIOverrides). E.g.,
say you have the following MPI details section:

  [MPI details: Open MPI]
  foo = some default value
  bar = some default value
  exec = mpirun @foo@ @bar@ ...
  
Using command-line INI overrides, you can iterate over a
series of values for "foo" and/or "bar":

  $ client/mtt --scratch /some/dir ...
  $ client/mtt --scratch /some/dir --test-run foo=abc ...
  $ client/mtt --scratch /some/dir --test-run foo=def ...
  $ client/mtt --scratch /some/dir --test-run bar=uvw ...
  $ client/mtt --scratch /some/dir --test-run bar=xyz ...
  ...

Note in the above example, we use the same scratch directory
for all the runs, and we run only the test run phase (via
the --test-run option) since we do not need to reinstall or
rebuild anything as we iterate over different command lines.

Could the above be of use for what you're trying to do?

-Ethan

>
> Or how to execute specific "Test run" section against
> specific "mpi_details" section, where "mpi_details" can
> have many different scenarios of command line
> parameters (i.e. single mpi_details should be executed
> a number of times equal to the number of available
> scenarios for this mpi_details)? Is that possible? (it
> is similar to the @np param treatment available inside
> mpi_details section)
>
> Thanks
>
> Mike.

> _______________________________________________
> mtt-devel mailing list
> mtt-devel_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/mtt-devel