コード例 #1
0
def example_01():
    driver = ToolDriver("my-exe --config")
    resource_types = (ResourceTypes.TMP_DIR, ResourceTypes.LOG_FILE)
    p = get_pbparser("pbcommand.tools.example", "0.1.2", "My Description",
                     driver, TaskTypes.DISTRIBUTED, SymbolTypes.MAX_NPROC,
                     resource_types)
    return _example_options(p)
コード例 #2
0
def get_contract_parser():
    nproc = SymbolTypes.MAX_NPROC
    resource_types = (ResourceTypes.TMP_DIR,)
    # Commandline exe to call "{exe}" /path/to/resolved-tool-contract.json
    driver_exe = "python -m pbfalcon.cli.task_hgap_run --resolved-tool-contract "
    desc = 'pbcommand wrapper for ' + TOOL_ID
    name = 'Tool task_hgap_run'
    p = get_pbparser(TOOL_ID, __version__, name, desc, driver_exe,
            is_distributed=False, nproc=nproc, resource_types=resource_types)
    add_args_and_options(p)
    return p
コード例 #3
0
def get_contract_parser():
    # Number of processors to use, can also be SymbolTypes.MAX_NPROC
    nproc = 1
    # Log file, tmp dir, tmp file. See ResourceTypes in models, ResourceTypes.TMP_DIR
    resource_types = ()
    # Commandline exe to call "{exe}" /path/to/resolved-tool-contract.json
    driver_exe = "python -m pbfalcon.cli.task_gen_config --resolved-tool-contract "
    desc = "Generate FALCON cfg from pbcommand options."
    name = 'Tool FalconConfigGenerator'
    p = get_pbparser(TOOL_ID, __version__, name, desc, driver_exe,
            is_distributed=False, nproc=nproc, resource_types=resource_types)
    add_args_and_options(p)
    return p
コード例 #4
0
def get_contract_parser():
    # Number of processors to use, can also be SymbolTypes.MAX_NPROC
    nproc = SymbolTypes.MAX_NPROC
    # Log file, tmp dir, tmp file. See ResourceTypes in models, ResourceTypes.TMP_DIR
    resource_types = ()
    # Commandline exe to call "{exe}" /path/to/resolved-tool-contract.json
    driver_exe = "python -m pbfalcon.cli.task_hgap_prepare --resolved-tool-contract "
    desc = "XXX Experimental HGAP.5"
    name = 'XXX Experimental HgapConfigGenerator'
    p = get_pbparser(TOOL_ID, __version__, name, desc, driver_exe,
            is_distributed=True, nproc=nproc, resource_types=resource_types)
    add_args_and_options(p)
    return p
コード例 #5
0
def get_contract_parser():
    # Number of processors to use, can also be SymbolTypes.MAX_NPROC
    nproc = SymbolTypes.MAX_NPROC
    # Log file, tmp dir, tmp file. See ResourceTypes in models, ResourceTypes.TMP_DIR
    resource_types = ()
    # Commandline exe to call "{exe}" /path/to/resolved-tool-contract.json
    driver_exe = "python -m pbfalcon.cli.task_hgap_prepare --resolved-tool-contract "
    desc = "XXX Experimental HGAP.5"
    name = 'XXX Experimental HgapConfigGenerator'
    p = get_pbparser(TOOL_ID,
                     __version__,
                     name,
                     desc,
                     driver_exe,
                     is_distributed=True,
                     nproc=nproc,
                     resource_types=resource_types)
    add_args_and_options(p)
    return p
コード例 #6
0
def get_contract_parser():
    # Number of processors to use, can also be SymbolTypes.MAX_NPROC
    nproc = 1
    # Log file, tmp dir, tmp file. See ResourceTypes in models, ResourceTypes.TMP_DIR
    resource_types = ()
    # Commandline exe to call "{exe}" /path/to/resolved-tool-contract.json
    driver_exe = "python -m pbfalcon.cli.task_gen_config --resolved-tool-contract "
    desc = "Generate FALCON cfg from pbcommand options."
    name = 'Tool FalconConfigGenerator'
    p = get_pbparser(TOOL_ID,
                     __version__,
                     name,
                     desc,
                     driver_exe,
                     is_distributed=False,
                     nproc=nproc,
                     resource_types=resource_types)
    add_args_and_options(p)
    return p
コード例 #7
0
def example_01():
    driver = ToolDriver("my-exe --config")
    resource_types = (ResourceTypes.TMP_DIR, ResourceTypes.LOG_FILE)
    p = get_pbparser("pbcommand.tools.example", "0.1.2", "My Description", driver, TaskTypes.DISTRIBUTED, SymbolTypes.MAX_NPROC, resource_types)
    return _example_options(p)