Function
create_submit_script_header
(directory: Path, options: PBSSubmitOptions)
Source from the content-addressed store, hash-verified
| 27 | |
| 28 | |
| 29 | def 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 | |
| 46 | def create_submit_script_body( |
Tested by
no test coverage detected