Exemple #1
0
def main(argv: typing.List[str]) -> None:
    '''
    Bueno run script for SN Application Proxy (SNAP).
    '''
    # Program description
    desc = 'bueno run script for SNAP experiments.'

    # Default values
    defaults = experiment.CannedCLIConfiguration.Defaults
    defaults.csv_output = './data.csv'
    defaults.description = desc
    defaults.executable = '~/SNAP_build/src/gsnap'
    defaults.input = './experiments/config'
    defaults.name = 'snap'
    defaults.runcmds = (4, 6, 'mpiexec -n %n', 'nidx')

    # Initial configuration
    config = experiment.CannedCLIConfiguration(desc, argv, defaults)
    config.addargs(AddArgsAction)

    # Parse provided arguments.
    config.parseargs()
    for genspec in experiment.readgs(config.args.input, config):
        # Note that config is updated by readgs each iteration.
        exp = Experiment(config)
        exp.run(genspec)
        exp.report()
def main(argv: typing.List[str]) -> None:
    '''
    Bueno run script for Ember Pattern Library
    '''
    # Program description
    desc = 'bueno run script for Ember experiment'

    # Default values
    defaults = experiment.CannedCLIConfiguration.Defaults
    defaults.name = 'ember'
    defaults.description = desc
    defaults.executable = '~/ember/mpi/halo3d/halo3d'
    defaults.input = './experiments/config'
    defaults.csv_output = './data.csv'
    defaults.runcmds = (4, 6, 'mpirun -n %n', 'nidx')

    # Initial configuration
    config = experiment.CannedCLIConfiguration(desc, argv, defaults)
    config.addargs(AddArgsAction)

    # Parse provided arguments.
    config.parseargs()
    for genspec in experiment.readgs(config.args.input, config):
        # Note that config is updated by readgs each iteration.
        exp = Experiment(config)
        exp.run(genspec)
        exp.report()
def main(argv: typing.List[str]) -> None:
    '''
    Bueno run script for Branson Monte Carlo transport mini-app
    '''
    # Program description
    desc = 'bueno run script for the Branson mini-app'

    # Default values
    defaults = experiment.CannedCLIConfiguration.Defaults
    defaults.csv_output = './data.csv'
    defaults.description = desc
    defaults.executable = '~/branson/BRANSON'
    defaults.input = './experiments/config'
    defaults.name = 'branson'
    defaults.runcmds = (4, 6, 'mpiexec -n %n', 'nidx')

    # Initial configuration
    config = experiment.CannedCLIConfiguration(desc, argv, defaults)
    config.addargs(AddArgsAction)

    # Parse provided arguments.
    config.parseargs()
    for genspec in experiment.readgs(config.args.input, config):
        # Note that config is updated by readgs each iteration.
        exp = Experiment(config)
        exp.run(genspec)
        exp.report()
Exemple #4
0
def main(argv: typing.List[str]) -> None:
    '''
    Setup and start experiment.
    '''
    # Program description.
    desc = 'bueno run script for PENNANT experiments.'

    # Default Configuration.
    defaults = experiment.CannedCLIConfiguration.Defaults
    defaults.name = 'pennant'
    defaults.description = desc
    defaults.input = './experiments/config.txt'
    defaults.executable = '~/PENNANT/build/pennant'
    defaults.runcmds = (2, 2, 'mpirun -n %n', 'nidx + 1')
    defaults.csv_output = 'data.csv'

    # Compile and parse configuration.
    config = experiment.CannedCLIConfiguration(desc, argv, defaults)
    config.addargs(AddArgsAction)
    config.parseargs()

    for genspec in experiment.readgs(config.args.input, config):
        # Update config after each iteration
        exp = Experiment(config)
        exp.run(genspec)
        exp.report()
Exemple #5
0
def main(argv):
    # Program description
    desc = 'bueno run script for Laghos experiments.'
    # Default values
    defaults = experiment.CannedCLIConfiguration.Defaults
    defaults.csv_output = 'data.csv'
    defaults.description = experiment.name()
    defaults.executable = '/AMG/test/amg'
    defaults.input = 'experiments/quick'
    defaults.name = 'AMG'
    defaults.runcmds = (0, 2, 'srun -n %n', 'nidx + 1')
    # Initial configuration
    config = experiment.CannedCLIConfiguration(desc, argv, defaults)
    # Parse provided arguments
    config.parseargs()
    for genspec in experiment.readgs(config.args.input, config):
        # Note that config is updated by readgs after each iteration.
        exprmnt = Experiment(config)
        exprmnt.run(genspec)
        exprmnt.report()
Exemple #6
0
def main(argv):
    # Program description
    desc = 'bueno run script for Laghos experiments.'
    # Default values
    defaults = experiment.CannedCLIConfiguration.Defaults
    defaults.csv_output = 'data.csv'
    defaults.description = experiment.name()
    defaults.executable = '/laghos/Laghos/laghos'
    defaults.input = 'experiments/quick-sedov-blast2D'
    defaults.name = 'laghos'
    defaults.runcmds = (0, 2, 'srun -n %n', 'nidx + 1')
    # Initial configuration
    config = experiment.CannedCLIConfiguration(desc, argv, defaults)
    # Update configuration to include extra arguments
    if utils.module_imported('icaptdb'):
        config.addargs(icaptdb.AddArgsAction)
    # Parse provided arguments
    config.parseargs()
    for genspec in experiment.readgs(config.args.input, config):
        # Note that config is updated by readgs after each iteration.
        exprmnt = Experiment(config)
        exprmnt.run(genspec)
        exprmnt.report()
 def __init__(self, desc, argv):
     super().__init__(desc, argv)
     # Get and process any arguments provided. Do this as early as possible
     # to see an up-to-date version of the config.
     if not utils.emptystr(self.args.input):
         experiment.readgs(self.args.input, self)