hpcflow.sdk.submission.jobscript#

Model of information submitted to a scheduler.

Functions

ensure_max_array_size

For array jobscripts, if the array size is greater than the permitted size, stack actions on top of each other (i.e. wrap the jobscript elements around) to ensure compliance.

generate_EAR_resource_map

Generate an integer array whose rows represent actions and columns represent task elements and whose values index unique resources.

group_resource_map_into_jobscripts

Convert a resource map into a plan for what elements to group together into jobscripts.

is_jobscript_array

Return True if a job array should be used for the specified ElementResources.

merge_jobscripts_across_tasks

Try to merge jobscripts between tasks.

resolve_jobscript_blocks

For contiguous, dependent, non-array jobscripts with identical resource requirements, combine into multi-block jobscripts.

resolve_jobscript_dependencies

Discover concrete dependencies between jobscripts.

Classes

Jobscript

A group of actions that are submitted together to be executed by the underlying job management system as a single unit.

JobscriptBlock

A rectangular block of element-actions to run within a jobscript.