MCPcopy Create free account
hub / github.com/It4innovations/hyperqueue / create_submit_script_header

Function create_submit_script_header

benchmarks/src/submit/submit.py:29–43  ·  view source on GitHub ↗
(directory: Path, options: PBSSubmitOptions)

Source from the content-addressed store, hash-verified

27
28
29def create_submit_script_header(directory: Path, options: PBSSubmitOptions):
30 stdout = directory / "stdout"
31 stderr = directory / "stderr"
32 name = options.name or f"bench-{directory.name}"
33
34 project = f"#PBS -A {options.project}" if options.project else ""
35
36 # PBS -l select={options.nodes},walltime={format_pbs_time(options.walltime)}
37 return f"""#!/bin/bash
38#PBS -q {options.queue}
39#PBS -N {name}
40#PBS -o {stdout}
41#PBS -e {stderr}
42{project}
43""".strip()
44
45
46def create_submit_script_body(

Callers 1

submitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected