hpcflow.sdk.submission.jobscript#

Model of information submitted to a scheduler.

Functions

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.

jobscripts_to_list

Convert the jobscripts dict to a list, normalising jobscript indices so they refer to list indices; also remove resource_hash.

merge_jobscripts_across_tasks

Try to merge jobscripts between tasks.

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.